DCF Analysis in Excel: Step-by-Step Model, Formulas, and Checks
A DCF analysis in Excel estimates a company's intrinsic value by projecting unlevered free cash flows, calculating a terminal value, and discounting both to today at the weighted average cost of capital (WACC). Per Microsoft Support's NPV documentation, Excel's =NPV() function assumes cash flows occur at regular end-of-period intervals starting 1 period after the valuation date, so any Day 1 cash flow stays outside the formula while irregular stub dates require =XNPV() on a 365-day basis. Subtracting net debt and non-equity claims from enterprise value and dividing by diluted shares gives the implied share price.
Updated
How a DCF model works in Excel
A discounted cash flow (DCF) model values a business on the cash it can generate rather than how peer stocks trade today. In FASB Statement of Financial Accounting Concepts No. 7 (as amended December 2021), the objective of present value is to capture the economic difference between sets of estimated future cash flows, since without discounting a $1,000 cash flow due tomorrow and a $1,000 cash flow due in 10 years appear the same. The statement defines present value with the formula X/(1 + i)^n and lists 5 elements that separate cash flows economically: estimated future cash flows, expectations about variations in amount or timing, the time value of money represented by the risk-free rate, the price for bearing uncertainty, and market factors such as illiquidity.
Corporate valuation models in Excel normally use the traditional approach, discounting 1 baseline cash flow forecast at a single risk-adjusted rate (WACC). When a business faces binary regulatory or clinical outcomes, you can apply the expected cash flow approach by weighting multiple cash flow scenarios by explicit probabilities before discounting.
Candidates preparing for investment banking interview questions and timed modeling tests use this layout so reviewers can audit assumptions quickly.
- Block 1 (Assumptions and WACC): Valuation date, tax rate, CAPM inputs, pre-tax debt cost, capital weights, perpetual growth rate, and exit multiple.
- Block 2 (Unlevered Free Cash Flow): EBIT, taxes, depreciation and amortization, capital expenditures, and changes in net working capital.
- Block 3 (Terminal Value): Gordon Growth and Exit Multiple calculations side by side with implied cross-checks.
- Block 4 (Discounting schedule): Period numbers, discount factors, and present values summed to Enterprise Value.
- Block 5 (Enterprise to Equity bridge): Cash, debt, preferred stock, noncontrolling interest, and diluted shares.
- Block 6 (Sensitivity matrices): Two-variable Excel Data Tables testing WACC against terminal assumptions.
Step 1 to Step 3: Forecasting UFCF, WACC, and terminal value
Start with unlevered free cash flow (UFCF, or free cash flow to the firm), which measures cash available to all capital providers before debt service. Add back D&A, subtract capital expenditures (CapEx), and subtract the increase in net working capital (NWC): =NOPAT + DA, CapEx, (Ending_NWC, Beginning_NWC). Define NWC as non-cash current assets minus non-debt current liabilities so receivables or inventory growth reduces cash.
In your final forecast column, normalize CapEx close to D&A and align working capital with steady-state revenue growth. Leaving high-growth CapEx far above D&A penalizes perpetuity value forever, while setting CapEx below D&A assumes perpetual growth on a shrinking asset base.
Compute Cost of Equity via CAPM as =Risk_Free_Rate + (Beta * Equity_Risk_Premium). For a private company, unlever peer public betas for debt and taxes, then relever the median asset beta to your target's capital structure.
Compute Terminal Value at Year N using both methods. Under the Gordon Growth method, grow final-year UFCF by perpetual growth rate g and divide by WACC minus g: =UFCF_Final * (1 + g) / (WACC, g). Under the Exit Multiple method, multiply final-year EBITDA by a peer multiple: =EBITDA_Final * Exit_Multiple. Cross-check both by calculating the implied exit multiple (=TV_Gordon / EBITDA_Final) and implied perpetual growth rate (=(TV_Exit * WACC, UFCF_Final) / (TV_Exit + UFCF_Final)).
Step 4: Discounting with NPV, XNPV, mid-year convention, and stub dates
The most common Excel DCF mistake comes from how =NPV() indexes time. In Microsoft's function specifications, NPV(rate, value1, value2, ...) accepts 1 to 254 equally spaced end-of-period cash flows, and the investment begins 1 period before the value1 date.
NPV Example 2 in that documentation shows the exact impact: with a 0.08 annual discount rate, a -40,000 initial cost in cell A3, and 5 annual inflows of 8,000, 9,200, 10,000, 12,000, and 14,500 in A4:A8, the formula =NPV(A2, A4:A8)+A3 returns $1,922.06 (or ($3,749.47) with a sixth-year loss of -9,000). By our calculation from those NPV Example 2 inputs, the 5 inflows alone equal $41,922.06, whereas placing A3 inside =NPV(A2, A3:A8) returns $1,779.69, understating value by $142.37.
Keep any Exit Multiple terminal value discounted by the full N periods (=TV_Exit / (1 + WACC)^N), because the exit transaction happens at year-end.
For mid-year transaction closings with a partial stub period, =XNPV(rate, values, dates) discounts on a 365-day year basis, treating the first date as Day 0 without discounting it. Excel stores January 1, 1900 as serial number 1 and January 1, 2008 as serial number 39448, and XNPV requires at least 1 positive and 1 negative cash flow (returning $2,086.65 on its 9 percent example from -$10,000 on 1/1/2008 to $2,750 on 4/1/2009). When all UFCFs are positive, avoid XNPV sign errors by discounting with =(Cash_Flow_Date, $Valuation_Date) / 365. When checking returns against a negative Day 1 purchase price, =XIRR(values, dates) returns 37.34% (0.373362535) using the default 10% guess on that same schedule. Institutional contracts rely on this exact function: a September 11, 2024 SEC Exhibit 10.3 filing between Liquidia Technologies, Inc. and Healthcare Royalty Partners IV, L.P. defines its IRR True-Up Payment Amount as an 18% internal rate of return on prior tranches ($32,500,000 initial funding plus $10,000,000 funded July 27, 2023 and $25,000,000 funded January 4, 2024) and 16% on a subsequent $32,500,000 tranche calculated using the XIRR function in Excel.
Excel Financial Functions for DCF Valuation and Return Checks
| Function and Syntax | Cash Flow Timing | Documented Rule or Limit | Primary DCF Role |
|---|---|---|---|
| NPV(rate, value1, value2, ...) | Periodic, equally spaced, period-end | 1 to 254 arguments. Starts 1 period before value1. Keep Period 0 outside. | Discounting full-year UFCF schedules |
| XNPV(rate, values, dates) | Irregular calendar dates (365-day year) | First date is Day 0. Needs at least 1 positive and 1 negative value. | Stub-period and exact-date project valuation |
| PV(rate, nper, pmt, fv, type) | Constant annuity or single lump sum | Constant payments only. Type = 0 for period-end, 1 for period-start. | Constant lease streams or single lump sums |
| IRR(values, guess) | Periodic, equally spaced intervals | Needs 1 positive and 1 negative value. Up to 20 tries to 0.00001% accuracy (0.1 default guess). | Periodic return check against WACC |
| XIRR(values, dates, guess) | Irregular calendar dates (365-day year) | Needs 1 positive and 1 negative value. Up to 100 tries to 0.000001% accuracy (0.1 default guess). | Exact-date IRR on mid-year deals |
| MIRR(values, finance_rate, reinvest_rate) | Periodic, equally spaced intervals | Returns #DIV/0! without 1 positive and 1 negative value. Separate finance and reinvest rates. | Return check assuming reinvestment at WACC |
Step 5 and Step 6: Enterprise value bridge and diluted share price
Summing the present value of explicit UFCFs and the present value of Terminal Value produces Implied Enterprise Value. To isolate common equity value, add cash, marketable securities, and unconsolidated investments, then subtract total debt (including finance leases), preferred stock, and noncontrolling interest: =Enterprise_Value + Cash, Total_Debt, Preferred_Stock, Noncontrolling_Interest.
Divide Implied Equity Value by fully diluted shares rather than basic shares. Add restricted stock units and in-the-money convertibles to get total diluted shares. Explaining these bridge adjustments clearly alongside structured consulting case study examples strengthens how you defend valuation conclusions under time pressure.
Worked example: 5-year DCF valuation in Excel
Worked example written by our team. Northstar Packaging is an invented company and all figures below are case data built to show every formula step.
Assume a Year 0 valuation date, 25.0% tax rate, 4.5% risk-free rate, 1.30 beta, and 5.0% equity risk premium, giving a CAPM Cost of Equity of 4.5% + (1.30 * 5.0%) = 11.0%. Pre-tax debt cost of 8.0% yields 6.0% after tax. At 80.0% equity and 20.0% debt, WACC is (0.80 * 11.0%) + (0.20 * 6.0%) = 10.0%. Notice in Year 5 that CapEx ($12.00M) aligns closely with D&A ($11.50M).
- Explicit Present Value: =NPV(10.0%, Year1:Year5) equals $133.93M under year-end discounting (or $140.46M multiplying by (1 + 0.10)^0.5 for mid-year).
- Gordon Growth Terminal Value (2.5% g): $48.00M * 1.025 / (0.10, 0.025) = $656.00M in Year 5, discounting to $407.32M today (=656.00 / 1.10^5).
- Enterprise Value and Cross-Check: $133.93M + $407.32M = $541.25M (75.26% from Terminal Value, implying 8.46x Year 5 EBITDA of $77.50M). An 8.0x Exit Multiple gives $620.00M Terminal Value ($384.97M PV) and $518.90M Enterprise Value.
- Equity Bridge and Share Price: $541.25M + $38.75M cash, minus $100.00M debt, minus $10.00M preferred and noncontrolling interest = $470.00M Equity Value. With 22.50M basic shares and 2.00M options at an $8.00 strike vs $16.00 current price ($16.00M proceeds buying back 1.00M shares), diluted shares equal 23.50M for a $20.00 implied share price (25.0% upside).
Worked Example: Northstar Packaging 5-Year UFCF Schedule ($M, Invented Case Data, Year-End Discounting)″
| Line Item | Year 1 | Year 2 | Year 3 | Year 4 | Year 5 |
|---|---|---|---|---|---|
| EBIT | $40.00 | $48.00 | $56.00 | $62.00 | $66.00 |
| NOPAT (25.0% tax rate) | $30.00 | $36.00 | $42.00 | $46.50 | $49.50 |
| Plus: D&A | $8.00 | $9.00 | $10.00 | $11.00 | $11.50 |
| Less: CapEx | ($12.00) | ($13.00) | ($13.00) | ($12.50) | ($12.00) |
| Less: Increase in NWC | ($2.00) | ($2.00) | ($2.00) | ($1.50) | ($1.00) |
| Unlevered Free Cash Flow | $24.00 | $30.00 | $37.00 | $43.50 | $48.00 |
| Discount Factor (10.0% WACC) | 0.9091 | 0.8264 | 0.7513 | 0.6830 | 0.6209 |
| Present Value of UFCF | $21.82 | $24.79 | $27.80 | $29.71 | $29.80 |
Step-by-step two-variable sensitivity tables in Excel
Per Microsoft's What-If Analysis documentation, Excel offers 3 native tools: Scenarios, Goal Seek, and Data Tables. A Data Table displays outcomes in 1 grid and accepts unlimited test values, though it tests at most 2 variables (1 row input cell and 1 column input cell).
- Step 1 (Corner link): In cell C30 of an empty range C30:H35, link directly to your Implied Share Price cell (=C26).
- Step 2 (Hardcoded headers): Type hardcoded WACC values down C31:C35 (9.0% to 11.0%) and hardcoded perpetual growth rates across D30:H30 (1.5% to 3.5%). Never link header cells back to active inputs.
- Step 3 (Open Data Table): Highlight C30:H35 and click Data, What-If Analysis, Data Table.
- Step 4 (Assign inputs): Select your model's Perpetual Growth cell as Row input cell and your WACC input cell as Column input cell, then click OK.
- Step 5 (Control recalculation): Because Data Tables recalculate whenever a worksheet recalculates even if data has not changed, adjust File, Options, Formulas calculation settings on heavy models and press F9 to refresh tables manually.
Excel DCF audit checklist and error flags
Place a compact Audit Checks block at the top of your worksheet using this 5-point checklist written by our team to catch silent logic flaws. Candidates who pair technical accuracy with behavioral interview preparation stand out when explaining how they pressure-test their own models.
- Period 0 excluded from =NPV(): Confirm =NPV() starts in Year 1, never Period 0.
- Terminal Value weight flag: Track =PV_of_TV / Enterprise_Value and extend the forecast horizon if Terminal Value dominates.
- Terminal reinvestment ratio: Check =CapEx_Final / DA_Final so perpetuity growth is funded.
- Working capital sign check: Confirm rising receivables or inventory reduces UFCF.
- Serial date order check: Test =ISNUMBER(Date_Cell) and verify all XNPV dates follow the Day 0 valuation date.
From Microsoft Support: NPV Function, Microsoft Support: XNPV Function, Microsoft Support: PV Function, Microsoft Support: IRR Function, Microsoft Support: XIRR Function, Microsoft Support: MIRR Function, Microsoft Support: Calculate Multiple Results by Using a Data Table, Microsoft Support: Introduction to What-If Analysis, FASB Statement of Financial Accounting Concepts No. 7 (As Amended December 2021) and U.S. SEC EDGAR Exhibit 10.3: Liquidia Technologies, Inc. Fifth Amendment (September 11, 2024).
1 practice question and sample answer
Say your answer out loud first, then read the sample answer.
Practice question
Walk me through how you discount cash flows in an Excel DCF model, including when you use XNPV instead of NPV and how you handle mid-year discounting.
Sample answer. Example answer written by our team. The applicant is invented. When I build a DCF in Excel, I start with projected unlevered free cash flows and WACC, then match the discounting formula to the calendar. For full fiscal years starting tomorrow, Excel's standard NPV function works, provided I only highlight Year 1 through Year 5 inside the parentheses and keep any Day 1 cash flow outside, since Excel discounts the first cell inside NPV by one full period. In practice, I write an explicit discount period row instead. Because businesses collect cash throughout the year rather than all on December 31, I set the discount period to period minus 0.5 for mid-year convention and discount each column manually. I keep an exit-multiple terminal value at the full Year 5 period so I do not overstate the exit sale. When a deal closes mid-year with a stub period, I use XNPV with exact calendar dates on a 365-day basis, placing the valuation date first so Day 1 stays undiscounted.
It walks through the exact Excel mechanics in order, catches the Period 0 NPV trap, separates mid-year operating cash flows from year-end exit multiples, and explains how XNPV handles irregular stub dates.
Practice your interview answers out loud
Soreno's AI interviewer asks behavioral and case questions out loud, follows up like a real interviewer, and scores every answer, quoting your own words.
Questions people ask
Why is my Excel NPV formula giving the wrong DCF value?
Excel's =NPV() function assumes the investment begins 1 period before value1 and all listed cash flows occur at period-end. Including a Period 0 cash flow inside =NPV() discounts the entire stream by 1 extra period, so add Period 0 outside the parentheses: =NPV(rate, Year1:Year5) + Year0.
When should you use XNPV instead of NPV in an Excel DCF model?
Use =NPV() only when cash flows occur at equal intervals such as full fiscal years. Use =XNPV(rate, values, dates) or explicit (Date, Valuation_Date)/365 factors when valuing a mid-year stub period, since XNPV discounts exact calendar dates on a 365-day year.
How do you calculate mid-year discounting in Excel?
Subtract half a period from each forecast year in a dedicated discount period row and discount annual UFCF with =UFCF / ((1 + WACC)^Discount_Period). Keep any Exit Multiple terminal value at the full Year N period because the exit sale occurs at year-end.
Why does Excel XNPV or XIRR return a #NUM! or #VALUE! error?
Both XNPV and XIRR return #NUM! if the values range lacks at least 1 positive and 1 negative cash flow, if any date precedes the starting date, or if XIRR fails to converge within 0.000001 percent after 100 tries. Both return #VALUE! when a date cell holds text instead of a valid serial date.
How many variables can an Excel Data Table test in a DCF sensitivity analysis?
An Excel Data Table can test at most 2 variables at once (1 row input cell and 1 column input cell), with as many test values on each axis as needed. To analyze more than 2 variables simultaneously across Upside, Base, and Downside cases, use Scenarios (up to 32 changing values).
What is the difference between traditional discounting and expected cash flow discounting?
Under FASB Concepts Statement No. 7, the traditional approach discounts 1 baseline cash flow forecast at a single risk-adjusted rate such as WACC. The expected cash flow approach weights multiple cash flow scenarios by explicit probabilities before discounting.
More guides
- Best Brain Teaser Apps in 2026: Free and Paid Compared
- Blackstone Digital Interview: Process, Timelines & Prep
- Brevan Howard Interview Questions and Process (2026)
- Bridgewater Internship: Investment Associate Prep (2027)
- HireVue On-Demand Interview: Meaning, Questions & Prep
- Interview Questions for Bankers: Prep by Track and Round
- Technical Project Manager Interview Questions and Answers
- Investment Management Interview Questions
- Jane Street Interview Questions and Process by Role (2026)
- JP Morgan Interview Process: Stages & Questions (2026Maz?)
- Mental Math: Shortcuts, Examples, and Interview Math
- Negative Feedback Interview Question: Answers and Scripts