You’ll value Ridgeline Coffee Co., a made-up coffee company, the way an analyst would: project its free cash flow, work out its cost of capital, add a terminal value and land on what one share is worth. Every number is fictional, so you can focus on the mechanics.
START
Get set up
Download both files. Open the starter on a laptop in Excel or Google Sheets, and keep the answer key closed until you’re done or truly stuck.
Starter workbook
The file you fill in. 123 yellow cells and 50 checks that mark your work.
The file follows the same color code banks use, so learn it now:
10%Blue text: inputs. Leave them alone for now.
=A1Green text: links to another tab, done for you.
Yellow cells: your turn. Type a formula.
=A1Black text: formulas already done.
How checking works
Each row has a Check cell. It stays blank until the whole row is filled in, then shows ✓ Correct, ✗ Check again or ✗ Fix the error.
STEP 1
Read the assumptions
Open the Assumptions tab. Nothing to type here yet. Every formula you write later points back to these inputs, so know what each one is before you start.
Input
Value
What it means
2025 revenue
$500.0mm
The last actual year. Projections start from here.
Revenue growth, 2026–2030
10% → 6%
Base case. Growth slows each year as the company matures. It comes from the Scenarios tab (step 2).
EBITDA margin
18.0% → 20.0%
Base case. Profit before D&A, interest and tax, per dollar of sales. Also from the Scenarios tab.
D&A / capex
4% / 5% of revenue
Capex above D&A means the company is still investing to grow.
Increase in NWC
10% of Δ revenue
Cash tied up in inventory and receivables as sales grow.
Tax rate
25%
Share price / diluted shares
$16.00 / 50.0mm
Market value of equity: $800mm.
Debt / cash
$300.0mm / $100.0mm
Net debt of $200mm.
Risk-free rate / ERP / beta
4.25% / 5.50% / 1.10
Inputs to the cost of equity.
Pre-tax cost of debt
6.50%
Terminal growth / exit multiple
2.5% / 8.5x
Two ways to value the years after 2030.
STEP 2
Set up the scenario switch
Real models carry more than one set of assumptions. Open the Scenarios tab. It has three cases for revenue growth and EBITDA margin: Base, Upside and Downside. One cell, C5, is the switch: 1 picks Base, 2 picks Upside, 3 picks Downside.
Your job is the two yellow “live case” rows. Each one uses CHOOSE to pull the number from whichever case the switch picks. The live rows feed the Assumptions tab, and the Assumptions tab feeds the DCF, so do this step first. Leave the switch on 1 while you build.
Row
Cell
Formula
Note
Live revenue growth
C12
=CHOOSE($C$5,C9,C10,C11)
done for you
Live EBITDA margin
C18
=CHOOSE($C$5,C15,C16,C17)
How CHOOSE works.CHOOSE(n, a, b, c) returns the nth item: a when n is 1, b when n is 2, c when n is 3. Lock the switch with $C$5 so it stays put when you copy the formula right. Keep the cases in the same order as the switch: base, upside, downside.
Checkpoint
With the switch on 1: 2026 growth 10.0% · 2030 growth 6.0% · 2026 margin 18.0% · 2030 margin 20.0%. The check cells on this tab test the live rows against whichever case the switch picks.
STEP 3
Revenue to free cash flow
On the DCF tab, fill rows 6 to 20 for 2026 through 2030. You’re building unlevered free cash flow: the cash the business makes before paying lenders, so it belongs to debt and equity holders together.
The 2026 revenue cell is done for you. Copy it across to 2030, then work down. Write each formula once in column C and copy it right.
Row
Cell
Formula
Note
Revenue
C6
=B6*(1+C5)
done for you
EBITDA
C8
=C6*C7
D&A
C10
=C6*C9
EBIT
C11
=C8-C10
Taxes on EBIT
C13
=C11*C12
NOPAT
C14
=C11-C13
Add back D&A
C15
=C10
Capex
C17
=C6*C16
Increase NWC
C19
=(C6-B6)*C18
Unlevered FCF
C20
=C14+C15-C17-C19
Why tax EBIT and not net income? Unlevered free cash flow pretends the company has no debt, so you tax operating profit directly. The benefit of interest being tax-deductible shows up later, in the after-tax cost of debt inside WACC.
WACC is the return investors expect, blended across debt and equity. It’s the discount rate for unlevered free cash flow. Fill the yellow cells on the WACC tab.
Row
Cell
Formula
Note
Cost of equity (CAPM)
C8
=C5+C6*C7
rf + beta × ERP
After-tax cost of debt
C13
=C11*(1-C12)
Equity value
C16
=Assumptions!C7*Assumptions!C8
Total capital
C18
=C16+C17
Equity weight
C19
=C16/C18
Debt weight
C20
=C17/C18
WACC
C22
=C19*C8+C20*C13
Checkpoint
Cost of equity 10.30% · after-tax cost of debt 4.88% · weights 72.7% / 27.3% · WACC 8.82%
Use market values. Weight equity at share price × shares, not the book equity on the balance sheet. Interviewers ask about this.
STEP 5
Discount each year
Back on the DCF tab, row 22 already counts the years: 1 for 2026, up to 5 for 2030. Turn each into a discount factor, then multiply by that year’s free cash flow.
Row
Cell
Formula
Note
Discount factor
C23
=1/(1+WACC!$C$22)^C22
PV of FCF
C24
=C20*C23
Lock the WACC cell. The $ signs keep WACC!$C$22 fixed when you copy the formula right. Press F4 in Excel on Windows, Cmd+T in Excel on a Mac, or type the $ signs yourself.
A company doesn’t stop in 2030, so you add a terminal value for every year after. The Valuation tab does it two ways side by side: perpetuity growth in column C, exit multiple in column D.
Row
Cell
Formula
Note
Sum of PVs
C5
=SUM(DCF!C24:G24)
Terminal value
C11
=C6*(1+C8)/(C10-C8)
FCF × (1+g) ÷ (WACC − g)
D11
=D7*D9
2030 EBITDA × 8.5x
PV of terminal value
C13
=C11*C12
Enterprise value
C14
=C5+C13
Equity value
C22
=C14-C20+C21
EV − debt + cash
Value per share
C24
=C22/C23
Enterprise value$1,050.8mmPerpetuity growth
Value per share$17.02$17.09 with the exit multiple
Upside to $16.006.3%6.8% with the exit multiple
Sanity-check it. Terminal value is 77.5% of enterprise value, inside the usual 60% to 80%. The perpetuity method implies an 8.5x exit multiple, and the exit method implies 2.53% growth, so the two methods agree.
STEP 7
Sensitivity table
Bankers never show one number. The Sensitivity tab shows value per share for WACCs of 8% to 10% down the side and growth rates of 1.5% to 3.5% across the top. The first cell is done; copy it across and down.
The formula only works when you copy it if the row input is locked by column ($B5) and the column input is locked by row (C$4). Getting those mixed references right is the whole exercise.
Look at the spread: from about $12 to $25 a share, just from moving two inputs a point or so. That’s why DCFs come with a range.
STEP 8
Run the cases
Now use the switch. Back on the Scenarios tab, type 2 in C5 and watch every tab update. Read the value per share off the live row (row 25) and type it into the Upside row of the table below it, to the cent. Do the same with 3 for Downside and 1 for Base.
Type the numbers in rather than linking them. A link would change every time you flip the switch, and the point is to see all three cases side by side.
Case
2026 → 2030 growth
2030 margin
Value per share (perpetuity)
Value per share (exit multiple)
1 = Base
10% → 6%
20.0%
$17.02
$17.09
2 = Upside
13% → 9%
21.5%
$21.84
$21.79
3 = Downside
5% → 3%
17.0%
$10.25
$10.82
Expect ✗ while you flip. The checks on the DCF, WACC, Valuation and Sensitivity tabs are set for the base case, so they show ✗ Check again while the switch is on 2 or 3. That’s normal. Set the switch back to 1 when you’re done and they turn green again.
Checkpoint
Against today’s $16.00 share price, the perpetuity growth method runs from about 36% downside to 37% upside. The base case sits in between at about 6% upside.
That spread is the story you’d tell a client: the stock looks fairly priced if the plan holds, and the case you believe in matters far more than a few tenths of a point of WACC.
AFTER
Say it in an interview
“Walk me through a DCF” is one of the most common technical questions. Now that you’ve built one, you can answer from experience:
Project the company’s unlevered free cash flow for five to ten years: EBIT after tax, plus D&A, minus capex, minus the increase in working capital.
Discount those cash flows at WACC, the blended cost of debt and equity.
Estimate a terminal value with a perpetuity growth rate or an exit multiple, and discount it back too.
Add them up for enterprise value, subtract net debt for equity value, and divide by diluted shares for value per share.
Then try changing an input, like a case’s 2026 growth on the Scenarios tab, and watch every tab update. For more practice, the app’s Valuation & DCF module has the follow-up questions interviewers ask next. You can also read 10 free valuation and DCF interview questions with model answers.