Excel What-If Analysis Tools
Goal Seek and Solver are the workhorses of professional valuation modeling. While sensitivity tables show you outcomes for different inputs, these tools let you answer the inverse question: "What would revenue growth need to be for this stock to be worth $60?" This reversal of the calculation unlocks market-embedded assumptions and validates whether your pricing is reasonable.
Quick Definition
Goal Seek is an Excel tool that finds the single input value needed to achieve a target output. Solver is a more powerful optimization engine that can adjust multiple inputs simultaneously to hit a goal, satisfy constraints, or minimize/maximize an objective. Together, they convert your three-statement DCF from a forward-looking model ("If growth is 12%, value is $48") into a reverse-engineering instrument ("If the market prices this at $65, the market is assuming 18% growth").
Key Takeaways
- Goal Seek solves for one unknown input to hit a specific output (intrinsic value, margin, WACC)
- Solver handles multiple constraints and can find optimal combinations of inputs
- Reverse-engineering market price reveals what assumptions the market is pricing in—invaluable for spotting consensus mistakes
- Sensitivity tables (data tables) show you outcome ranges; Goal Seek + Solver answer "what input makes sense?"
- Both tools live in Excel's Data ribbon under Data → What-If Analysis (Goal Seek) or installed separately (Solver, via Add-ins)
Goal Seek: Finding the Hidden Assumption
How Goal Seek Works
Goal Seek takes three inputs:
- Set cell: The output you want to hit (e.g., intrinsic value per share)
- To value: Your target (e.g., $65, the current stock price)
- By changing cell: The input that should adjust to reach that target (e.g., revenue growth rate)
Goal Seek iteratively adjusts the input until the output matches your target.
Practical Example: What Growth Does the Market Assume?
Assume your DCF model shows intrinsic value in cell B45. The stock currently trades at $65. You want to know: What revenue growth rate would justify this market price?
Steps:
- Open Data tab → What-If Analysis → Goal Seek
- Set cell: B45 (intrinsic value per share)
- To value: 65 (current market price)
- By changing cell: B8 (revenue growth rate)
- Click OK
Goal Seek adjusts B8 until B45 equals 65. Suppose it lands on 16% growth. This means the market is pricing in 16% revenue growth. If you think the company will grow at 12%, the stock is overvalued. If you think 20% growth is achievable, it's undervalued.
Common Reverse-Engineering Scenarios:
| Question | Set Cell | To Value | By Changing Cell |
|---|---|---|---|
| What growth justifies current price? | Intrinsic value | Market price | Revenue growth rate |
| What WACC implies current price? | Intrinsic value | Market price | WACC |
| What terminal margin is priced in? | Intrinsic value | Market price | Year 10 EBIT margin |
| What multiple is the market using? | Terminal value | Market cap | Exit EV/EBITDA |
| What downside risk is safe? | Intrinsic value | Entry price (margin of safety) | Margin compression % |
Solver: Multi-Constraint Optimization
What Solver Does
Solver is more sophisticated. It can:
- Optimize a target cell (maximize profit, minimize cost, hit intrinsic value)
- Subject to multiple constraints (revenue growth ≤ 15%, margin ≥ 20%, WACC ≤ 10%)
- By changing multiple input cells simultaneously
Solver uses algorithms (simplex, evolutionary, GRG nonlinear) to find optimal solutions.
Installing Solver
Solver is a built-in add-in:
- File → Options → Add-ins
- Manage: Excel Add-ins → Go
- Check "Solver Add-in" → OK
- Now appears in Data tab
Practical Example: Optimized Valuation Scenario
You're modeling a mature industrial company. You want to find the valuation scenario that's most realistic—one where all inputs move together sensibly.
Setup:
Cells to change:
- B10: Revenue growth (constrained 2–8%)
- B11: EBIT margin (constrained 12–18%)
- B12: CapEx as % of revenue (constrained 3–6%)
Constraints:
- When revenue growth ≤ 4%, margin drops 1% (slower growth + competitive pressure)
- WACC rises 50 bps if capital intensity (CapEx) exceeds 5%
- Working capital change correlates with growth: high growth requires more cash
Objective:
- Intrinsic value (set to maximize? minimize? or equal to market price $45?)
Steps in Solver:
- Data tab → Solver
- Set Objective: $B$50 (intrinsic value per share)
- To: Value Of: 45 (we want to find inputs consistent with $45 fair value)
- By Changing Cells: $B$10:$B$12
- Subject to Constraints:
- $B$10 >= 0.02, $B$10 <= 0.08 (revenue growth bounds)
- $B$11 >= 0.12, $B$11 <= 0.18 (margin bounds)
- $B$12 >= 0.03, $B$12 <= 0.06 (CapEx bounds)
- $B$50 >= 44, $B$50 <= 46 (tolerance on intrinsic value)
- Select solving method: GRG Nonlinear (for smooth, continuous functions)
- Click Solve
Solver returns the realistic combination of growth, margin, and CapEx that produces a fair value near $45.
Advanced Use: Reverse-Engineering Market Assumptions
Scenario: The Market is Pricing in Something You Don't Understand
The stock trades at $100, but your DCF base case gives $65. Two possibilities:
- You're wrong (margin expansion, faster growth, lower risk than you think)
- The market is wrong (overvaluation)
Use Solver to find what combination of assumptions would justify $100:
Setup:
- Objective: Intrinsic value = $100
- Changing cells: Revenue growth, terminal margin, WACC
- Constraints: Growth ≤ 25% (industry realistic), margin ≤ 30% (peer max), WACC ≥ 6% (reasonable minimum)
Run Solver. It returns the set of assumptions baked into that $100 price. If Solver says "25% growth + 30% margin + 6% WACC," and you think the company will grow 15%, compress to 22%, and faces 8% WACC, you've found your edge: the stock is overvalued.
Diagram: The Reverse-Engineering Workflow
Sensitivity Table vs. Goal Seek vs. Solver
Each tool answers a different question:
| Tool | Question | Direction | Use Case |
|---|---|---|---|
| Data Table (Sensitivity) | "If growth is 10%, 12%, 14%, what's intrinsic value?" | Forward | Explore outcome ranges |
| Goal Seek | "If I want intrinsic value = $65, what growth rate?" | Reverse, single input | Quick market assumption check |
| Solver | "Given constraints on growth, margin, WACC, what combo gives $65?" | Reverse, multiple inputs | Realistic stress scenario |
Common Mistakes
Goal Seek Overshooting If your model has discontinuities or jumps (e.g., piecewise logic, IF statements), Goal Seek may fail or give nonsensical results. Smooth your model; use linear assumptions where possible.
Forgetting Feasibility Constraints Solver may find a mathematically perfect answer that's economically impossible (200% WACC, negative margins). Add logical constraints: "If growth > 20%, add 100 bps to WACC (reflects higher risk)."
Interpreting Solver Results as Prediction Solver finds an optimal input combo, not a forecast. It answers "What scenario is internally consistent and hits your target?" not "What will actually happen." Use it for sanity-checking, not prophecy.
Not Documenting the Reversal When you reverse-engineer $100 price and find it assumes 25% growth, document that finding. Write it down. Compare it to your base case. A month later, you'll forget what you discovered.
Confusing Solver Constraints with Reality You can tell Solver "WACC ≥ 6%," but that doesn't make 6% reasonable. Use constraints to reflect real bounds (margins can't exceed 40% given industry competition, growth can't exceed industry rate), not arbitrary limits.
Step-by-Step: Reverse-Engineering Your Stock
- Price the market: Note current stock price (e.g., $78)
- Set up Goal Seek: Intrinsic value = $78, change one key input (usually revenue growth or terminal margin)
- Interpret: "Market assumes 14% growth." Write it down.
- Stress with Solver: "If growth is only 11% but everything else adjusts optimally, what's fair value?" (Constraints: margin max 25%, WACC min 8%)
- Compare scenarios:
- Market scenario (14% growth): $78
- Conservative scenario (11% growth): $62
- Bull scenario (17% growth): $95
- Decide: Is the margin between market price and conservative scenario large enough? If $78 vs. $62 conservative = $16 upside if wrong, that's your risk/reward.
FAQ
Q: Can Goal Seek handle multiple inputs at once? A: No; Goal Seek changes one cell. Use Solver for multiple inputs.
Q: Should I use Solver to optimize profit (maximize) or match price (constraint)? A: For valuation, match price using a constraint. Don't "maximize" intrinsic value—that's mathematically meaningless. Constrain it to market price (or target price) and solve for realistic inputs.
Q: What if Solver doesn't converge? A: Your problem may be non-convex or have no solution given constraints. Relax one constraint and rerun. Or simplify your model (too many feedback loops confuse solvers).
Q: Is Goal Seek accurate? A: For linear models, exact. For complex models with many formulas, Solver is more reliable. Goal Seek's iterative approach can miss edge cases.
Q: Can I use these tools on Google Sheets? A: Goal Seek is available in Sheets (Tools → Goal Seek). Solver requires third-party add-ins (e.g., MaxMind). Excel remains superior for advanced modeling.
Q: How do I set reasonable constraint bounds? A: Use historical data and peer analysis. If peers' revenue growth ranges 8–16%, set your constraint bounds at 5–20% (slightly wider to allow for company-specific outperformance or underperformance).
Related Concepts
- Sensitivity Analysis: Single-variable outcome ranges; often precedes Goal Seek
- Scenario Analysis: Discrete Bull/Base/Bear cases; can validate Solver outputs
- Constraint Programming: Mathematical framework underlying Solver
- Optimization: Broader field of finding best solutions; Solver is one tool
- Reverse Valuation: Extracting market assumptions from market prices
Summary
Goal Seek and Solver convert your DCF from a mechanical calculator into a reasoning engine. They let you ask the right questions: "What does the market assume?" and "Is that realistic?" By reverse-engineering market price and running constrained optimizations, you surface consensus mistakes and validate whether the market's embedded assumptions are grounded in reality or fantasy.
Use Goal Seek for quick sanity checks (current price assumes X growth—do I agree?). Use Solver for nuanced stress-testing (what realistic inputs justify this valuation given real-world constraints?). Both tools separate investors who understand what they're buying from those who just chase price momentum.
Next Steps
Your models now forecast forward and reverse-engineer backward. The final layer is discipline: Documenting Your Model ensures assumptions are transparent, repeatable, and defensible. A model you can explain to a skeptic is a model you should trust.