Skip to content
p.mba

Type to search tools, guides, glossary terms, frameworks, formula sheets and pages.

Menu

Valuation & modeling · Flagship guide

Excel and Sheets modeling conventions: layout, signs, timing, NPV, IRR and error checks

The spreadsheet conventions that decide whether a finance model is right: layout, colour coding, signs, timing, NPV vs XNPV, IRR pitfalls and error checks.

Updated

Key takeaways

  • Lay a model out as inputs → calculations → outputs, with time running left to right and one consistent formula across each row. Hard-coded numbers live only on the inputs sheet.
  • Pick a sign convention and label it. Excel’s TVM functions treat cash paid out as negative and cash received as positive, so PMT on a positive loan amount comes back negative.
  • NPV() is not net present value. It discounts its first argument by a full period. Use =NPV(r, CF1:CFn) + CF0, or XNPV with the valuation date as the first date.
  • IRR and XIRR return one root, found by iteration from a guess. Cash flows that change sign more than once can have several IRRs, and the one you get depends on the guess. Always plot or tabulate the NPV profile.
  • For mid-year discounting, build a discount-factor row with exponent t − 0.5 and use SUMPRODUCT. Don’t try to make NPV() do it.
  • Avoid circular references by design (interest on opening balances, or a clearly labelled circuit breaker). Don’t silently switch on iterative calculation.
  • Every serious model needs an error-check panel that rolls up to one cell, plus a single scenario switch that drives every case.

The theory in a corporate finance formula sheet is clean. Spreadsheets add timing offsets, sign flips and iterative solvers that fail without telling you. This guide collects the conventions that bankers, consultants and finance faculty expect, plus the function-level details that trip people up in problem sets, case write-ups and modeling tests. Every number in the examples is hypothetical.

1. Layout: make the model readable by someone else

The three-zone structure

  1. Inputs (assumptions). Every hard-coded number goes here: growth rates, margins, the discount rate, dates and scenario values. Give each input a label, a unit and a source note.
  2. Calculations. Pure formulas that reference inputs. No typed constants, not even “×12” or “/100”. If a conversion factor matters, make it a labelled input.
  3. Outputs. NPV, IRR, valuation summary, charts and sensitivity tables. Outputs reference calculations; calculations never reference outputs.

On a small model these can be blocks on one sheet. On a larger one, use separate tabs in the same left-to-right order.

Row and column discipline

  • Time runs left to right, one column per period, with the same column representing the same period on every sheet. If column F is year 1 on the income statement, it is year 1 everywhere.
  • One formula per row. Write the formula once in the first period and copy it across. A row that changes formula mid-way (for example a different growth rate typed into year 4) is the most common hidden error in student models. If year 4 really is different, drive it from an input row.
  • A units column next to each label (USD m, %, x, days) prevents the classic thousands-versus-millions mix-up.
  • A header block at the top of each calculation sheet with the period number, period start and end dates, a year fraction and timing flags. Every other row then references this block rather than recomputing time.

Colour coding (and why colour alone is not enough)

A widely used convention in banking and consulting models:

Cell contentFont colourWhy
Hard-coded inputBlueTells a reviewer this is an assumption they may change
Formula on the same sheetBlackCalculated; do not overwrite
Link to another sheet or fileGreenShows a dependency that can break

Colour is a reviewer’s shortcut, not a control. Also give inputs a cell style (a light fill or border) and a label, so the convention survives printing, colour-blind readers and dark-mode screenshots. Never type a number over a black formula cell. A “hard-code in a formula” such as =B7*1.05 is worse, because it looks like a formula and hides an assumption.

2. Sign conventions

There are two different sign worlds, and models break where they meet.

Excel’s TVM world. In the time-value functions (PV, FV, PMT, RATE, NPER), money you pay out is negative and money you receive is positive, from the point of view of whoever holds the spreadsheet (Microsoft Support). That is why =PMT(6%/12, 60, 30000) returns a negative payment: you receive the loan (+) and pay it back (−).

The presentation world. In an operating model you have two options:

  • Option A: costs as positive numbers that are subtracted in the formulas (Revenue − COGS − Opex). This is easier to read and matches financial statements.
  • Option B: costs stored as negative numbers that are summed (SUM(Revenue:Opex)). This is less error-prone in long builds, but harder to read.

Either works. Mixing them doesn’t. State the convention in the inputs header. When a TVM function needs a sign flip, do it explicitly at the boundary (=-PMT(...)) with a comment.

3. Timing conventions

Decide, and write down, three things.

  • Where t = 0 is. Usually the valuation or decision date. Cash at t = 0 is not discounted.
  • When cash arrives within a period. End of period (the textbook default and Excel’s default), beginning (annuity due, type = 1 in PMT/PV/FV), or mid-period (the mid-year convention).
  • Period length and rate match. A monthly cash flow needs a monthly rate. Microsoft’s PMT and RATE pages show the pattern: annual rate divided by 12 and years times 12 for monthly payments (Microsoft Support). Strictly, dividing a quoted APR by 12 gives the periodic rate only when the APR is compounded monthly. If you start from an effective annual rate, convert with (1+EAR)1/12−1(1+EAR)^{1/12}-1.

Build timing flags in the header block: a period counter (1, 2, 3…), a 1/0 flag for “operating period”, and a year-fraction row for stub periods. Formulas then multiply by flags instead of using IF chains, for example =Revenue * OperatingFlag.

4. NPV vs XNPV vs the t = 0 convention

FunctionTiming it assumesRate it expectsCommon trap
NPV(rate, v1, v2, …)Equal periods; every value at the end of its period, so v1 is discounted one full periodPer-periodIncluding the t = 0 outlay inside the range
XNPV(rate, values, dates)Actual dates; discounts by days elapsed from the first date on a 365-day basisAnnual effectiveFirst date is not the valuation date
Manual SUMPRODUCT(CF, DF)Whatever your discount-factor row saysYour choiceNone if the DF row is right; the most transparent option

Microsoft’s own guidance is that a cash flow at the start of the first period should be added to the result of NPV, not included in it (Microsoft Support). XNPV treats the first date as the start of the schedule, so the first value is not discounted. Later dates must not fall before it, otherwise you get #NUM! (Microsoft Support). Google Sheets’ XNPV takes the same argument order (Google Docs Editors Help).

Example: The off-by-one NPV (hypothetical)

A project costs 1,000 today and returns 450 at the end of each of the next three years. The discount rate is 10%.

  • Right: =NPV(10%, C5:E5) + B5 gives about +119.1.
  • Wrong: =NPV(10%, B5:E5) discounts the whole stream one extra year and gives about +108.3. That is the right answer divided by 1.10.

The gap grows with the rate, and because the sign does not change it is easy to miss.

XNPV trap: if your first dated cash flow is three months after the valuation date, XNPV values everything as of that first date, not today. Put a zero cash flow on the valuation date as the first row.

5. IRR and XIRR pitfalls

IRR and XIRR solve for the rate that makes NPV zero by iteration from a starting guess. If you leave the guess out, Excel starts at 10%. If there is more than one acceptable answer, it returns only the first one it finds, and a different guess can return a different rate (Microsoft Support). XIRR discounts on a 365-day year and returns #NUM! if it fails to converge, if values and dates have different counts, or if the flows lack a sign change (Microsoft Support). Google Sheets’ XIRR takes amounts, then dates, then an optional guess (Google Docs Editors Help).

Example: Two IRRs from one project (hypothetical)

Cash flows: −100 today, +230 in year 1, −132 in year 2 (a clean-up cost). Setting NPV to zero gives a quadratic with roots at 10% and 20%. NPV is positive between the two and negative outside them. Starting IRR from different guesses can return either root. Neither tells you whether to invest at a 15% cost of capital. NPV does: it is slightly positive.

How to protect yourself:

  • Count sign changes. More than one change in sign (−, +, −) means more than one IRR is possible. Use NPV at your cost of capital as the decision rule, and report MIRR if someone insists on a rate.
  • Build an NPV profile. A small table of NPV at rates from 0% to, say, 40% shows every root and whether IRR means anything.
  • Annualize periodic IRRs. IRR on monthly flows returns a monthly rate. Annualize with =(1+IRR(...))^12-1, not ×12. A 1% monthly IRR is about 12.7% effective annual, not 12%. XIRR already returns an annual effective rate.
  • Don’t use IRR to rank exclusive projects of different size or timing. Rank on NPV.
  • Watch for blank or text cells. NPV ignores them, which silently shifts later cash flows one period earlier. Use explicit zeros.

6. PMT, RATE and NPER signs and units

  • =PMT(rate, nper, pv, [fv], [type]) returns the level payment that covers principal and interest (no fees or taxes). On a positive pv it returns a negative number.
  • =RATE(nper, pmt, pv, ...) needs pmt and pv of opposite signs. =RATE(60, -580, 30000) returns a monthly rate. Multiply by 12 for an APR, or compound it for an EAR. RATE iterates too. Microsoft notes it may have zero or several solutions and returns #NUM! if it does not converge, in which case try a different guess (Microsoft Support).
  • type = 1 means payments at the beginning of each period (rent, leases, tuition instalments). type = 0 or omitted means the end.

Example: Loan payment round trip (hypothetical)

Borrow 30,000 for five years at 6% APR, monthly. =PMT(6%/12, 60, 30000) returns about −579.98. Feed that back: =RATE(60, -579.98, 30000)*12 returns about 6%. If you get #NUM!, check that the payment and the principal have opposite signs.

7. Mid-year discounting in a spreadsheet

The mid-year convention assumes a year’s operating cash flow arrives, on average, halfway through the year. So year t is discounted by (1+r)t−0.5(1+r)^{t-0.5} instead of (1+r)t(1+r)^{t}.

Build it explicitly:

  1. Header row: period number t (1, 2, 3…).
  2. Discount-period row: =t - 0.5, or =t - 0.5*StubFraction logic for stubs. The valuation conventions guide covers stub periods.
  3. Discount-factor row: =1/(1+WACC)^DiscountPeriod.
  4. PV row: =FCF * DF. Total: =SUMPRODUCT(FCF_row, DF_row).

With a 10% rate, the year-1 factor rises from about 0.909 to about 0.953, so every operating cash flow gains about 4.9% (the square root of 1.10). Equivalently, =NPV(r, CF1:CFn)*(1+r)^0.5 gives the same total for evenly spaced periods. The explicit row is easier to audit and handles stubs. Use a switch cell (1 = mid-year, 0 = end-of-year) in the discount-period formula so you can show both.

Two rules: apply mid-year only to flows that really accrue through the year (operating cash), not to point-in-time items like an acquisition price at t = 0. And keep the terminal value’s timing consistent with the convention you chose (see valuation conventions).

8. Avoiding circularity

Circular references usually come from interest on average debt or cash balances. Interest depends on the ending balance, which depends on cash flow, which depends on interest. They also appear with fees sized on a total that includes the fees, and with share counts that depend on a share price the model outputs.

Options, from most to least preferred:

  • Compute interest on opening balances. No circularity, small error, and transparent. This is the default for coursework.
  • Use a circuit breaker. An input cell (1/0) multiplies the average-balance interest term, so you can set it to 0 to break the loop when the model blows up with #REF! or #VALUE! cascades.
  • Iterative calculation (File → Options → Formulas in Excel) only as a deliberate, documented choice. It is a workbook-wide setting that also hides accidental circular references elsewhere.

9. Error checks

Add a checks panel on the outputs sheet. Each check returns 0 when fine, and a master cell sums the absolute values and turns red with a text flag (“CHECK”) when non-zero.

  • Balance sheet balances in every period (assets − liabilities − equity = 0).
  • Cash on the balance sheet equals ending cash on the cash flow statement.
  • Sources equal uses (transactions and LBOs).
  • Debt schedule ending balance is never negative. Revolver draw stays within the limit.
  • NPV(IRR) ≈ 0 for every IRR you report. Microsoft documents this identity.

Use IFERROR sparingly. Wrapping a formula in IFERROR(…,0) turns a broken link into a plausible zero.

10. Scenario switches and sensitivities

  • One selector cell (1 = base, 2 = upside, 3 = downside) on the inputs sheet. Each driver row has the three cases side by side, plus a “live” column =CHOOSE(Selector, Base, Up, Down) or =INDEX(Base:Down, Selector). Calculations reference only the live column.
  • Sensitivity grids (WACC × growth, price × volume): in Excel, What-If Analysis → Data Table. Keep the table on the same sheet as its inputs, and set calculation to “automatic except data tables” only if you know to recalculate. If your spreadsheet lacks a data-table feature, build the grid with the formula written explicitly in each cell.

Common mistakes checklist

  • NPV() range includes the t = 0 cash flow.
  • Monthly flows discounted at an annual rate, or a monthly IRR reported as annual.
  • XNPV first date is not the valuation date.
  • RATE or IRR fed same-sign flows, giving #NUM!.
  • Multiple sign changes with a single IRR reported and no NPV profile.
  • Hard-coded numbers inside formulas, or typed over formula cells.
  • A row whose formula changes partway across.
  • Iterative calculation on with no circuit breaker.
  • Mixed sign conventions between the operating model and TVM functions.
  • Mid-year convention applied to a t = 0 purchase price.

Use the tool

  • TVM, NPV, IRR, XIRR and MIRR calculator uses Excel sign conventions, lists all IRR roots and shows the NPV profile. Use it to check a spreadsheet answer.
  • DCF builder shows end-of-year versus mid-year discounting and both terminal-value methods side by side.
  • WACC calculator builds the discount rate you feed into the model.
  • LBO model for practising debt schedules and sources-and-uses checks.
  • The time value of money workbook has NPV, IRR, MIRR, XNPV and XIRR as live formulas with spreadsheet sign conventions, to compare against your own sheet.

For FCFF vs FCFE, terminal value and the equity bridge, read DCF and valuation conventions.

Sources

  1. Microsoft Support, Go with the cash flow: Calculate NPV and IRR in Excel (opens in a new tab) · accessed Nov 7, 2026
  2. Microsoft Support, XNPV function (opens in a new tab) · accessed Nov 7, 2026
  3. Microsoft Support, XIRR function (opens in a new tab) · accessed Nov 7, 2026
  4. Microsoft Support, PV function (opens in a new tab) · accessed Nov 7, 2026
  5. Microsoft Support, PMT function (opens in a new tab) · accessed Nov 7, 2026
  6. Microsoft Support, RATE function (opens in a new tab) · accessed Nov 7, 2026
  7. Google Docs Editors Help, XIRR (opens in a new tab) · accessed Nov 7, 2026
  8. Google Docs Editors Help, XNPV (opens in a new tab) · accessed Nov 7, 2026