Sub topic 3
Laying out cash flows: timeline and signs
Every NPV or IRR calculation starts from a list of cash flows. If the list has the wrong signs, the wrong timing, or gaps, the functions still return numbers, and those numbers are wrong. This chapter covers how to lay the list out so that NPV, IRR, XNPV, and XIRR can use it correctly.
It assumes you can enter formulas and reference ranges in Excel, you are comfortable with percentages and compound interest, and you can enter dates as real Excel dates. Earlier chapters covered the time value of money and discount rates. Later chapters cover the functions themselves.
The timeline
A cash flow timeline is an ordered list of amounts, each tied to a point in time. Time zero (t=0) is the valuation date, usually today or the date the investment is made. Every other cash flow sits at a later point: t=1, t=2, and so on.
Two conventions matter:
- Periods are equal. Periodic functions like
NPVandIRRassume each step is the same length: a month, a quarter, or a year. They never see dates. They see only the position of each value in the range. - Flows land at period end. A cash flow at t=1 is treated as arriving at the end of period 1. If your real cash arrives throughout the year, the model still books it at year end, which is an approximation you should know you are making.
The diagram shows the project used in this chapter.
The sign convention
Money leaving you is negative. Money arriving is positive. Apply this rule to every row, with no exceptions.
- An investment, a purchase, or an operating cost is an outflow and carries a minus sign.
- Revenue, savings, a sale price, or a salvage value is an inflow and carries a plus sign.
The functions do not know what your numbers mean. IRR looks for the rate at which the positive and negative flows balance. That only works if the signs reflect real direction. If you enter your investment as a positive number and your returns as positive numbers, there is nothing to balance, and IRR returns #NUM!.
The sign is the only thing marking direction, so choose one perspective and keep it. Here that perspective is the investor's. A loan you take out looks different from the lender's side: the borrower sees an inflow at t=0 and outflows afterward. The signs flip, and that is correct.
Building the layout in Excel
Keep inputs separate from the net line the functions read. A common structure is one row per period, with separate columns for inflows and outflows and a net column computed from them.
| Column | Contents |
|---|---|
| A | Period number (0, 1, 2, ...) |
| B | Period-end date, if you will use XNPV or XIRR |
| C | Cash inflows, entered as positive numbers |
| D | Cash outflows, entered as positive costs |
| E | Net cash flow, computed |
Entering costs as positive numbers in column D is easier to audit. The subtraction in column E then applies the sign in one visible place:
Row 2 headers: A2: Period B2: Date C2: Inflows D2: Outflows E2: Net
A3: 0 C3: 0 D3: 10000 E3: =C3-D3
A4: 1 C4: 5000 D4: 2000 E4: =C4-D4
A5: 2 C5: 6000 D5: 2000 E5: =C5-D5
A6: 3 C6: 6000 D6: 2000 E6: =C6-D6
A7: 4 C7: 5000 D7: 2000 E7: =C7-D7
Fill E3 down to E7. The net column is -10000, 3000, 4000, 4000, 3000.The functions then read only column E. Putting the t=0 row in the first cell of the range keeps the layout consistent with the NPV handling covered in the chapter on the t=0 pitfall.
A quick sanity check on the net column is the undiscounted total:
=SUM(E3:E7)Here it returns 4000. If this total is positive, the project returns more cash than it costs before discounting. That does not make it a good project, but a total that contradicts your expectation usually means a sign error.
Checking that signs can produce an IRR
IRR and XIRR need at least one negative and one positive value. Test for that before you rely on either function:
=AND(COUNTIF(E3:E7,"<0")>0, COUNTIF(E3:E7,">0")>0)The formula returns TRUE when both signs are present. A FALSE result tells you that #NUM! is coming for a structural reason, not a convergence problem.
Gaps, blanks, and zeros
This is the most common timeline error, and it produces no error message.
NPV and IRR ignore empty cells, text, and logical values inside a referenced range. They do not treat them as zero. Ignoring a cell removes that period from the sequence, so every later cash flow moves one period earlier.
Suppose year 2 has no cash flow, and you leave the cell empty:
B4: 3000
B5: (empty)
B6: 4000
B7: 3000
Wrong: =NPV(8%, B4:B7) treats the flows as three periods: 3000, 4000, 3000
Correct: put 0 in B5, then =NPV(8%, B4:B7) sees four periods: 3000, 0, 4000, 3000The empty version discounts the 4000 by two periods instead of three. The result is too high, and nothing flags it. Enter an explicit 0 in every period with no flow. A formula that returns an empty string "" is also text and is also skipped, so a net column built from IF should return 0, not "".
Period length must match the rate
The discount rate you apply must be per period, in the same unit as the spacing of your rows. If the rows are months, the rate must be monthly. Using an annual 8% on monthly rows overstates the discounting effect. The reverse mistake understates it.
Converting an annual rate to a monthly one is a compounding calculation, not a simple division:
Monthly rate from an annual effective rate in B1:
=(1 + B1)^(1/12) - 1Dividing 8% by 12 gives 0.667% per month. That is a nominal rate, and it compounds to about 8.3% per year. Whichever you choose, state which one your model uses.
Dates for irregular flows
If cash flows do not fall at equal intervals, a period-number timeline no longer describes them. Keep column B with real Excel dates, not text that merely looks like dates, and use XNPV and XIRR. A later chapter covers those functions. For now, design the layout so both are possible: date and amount in adjacent, equal-length columns, with the first row holding the t=0 date.
Layout checklist
| Check | Why it matters |
|---|---|
| First row is t=0, the valuation date | Keeps the t=0 flow identifiable |
| Equal period spacing, or real dates | Periodic functions assume equal spacing |
| Outflows negative, inflows positive | `IRR` needs both signs |
| Zeros in empty periods | Blanks shift later flows earlier |
| Rate matches period length | Prevents under- or over-discounting |
| One net column feeds every function | Avoids two functions reading different data |
Exercise
A project has net cash flows by year-end of -5000 (t=0), 2000 (t=1), blank (t=2), 2500 (t=3), and 2500 (t=4). The blank cell is part of the range B4:B7 you pass to NPV for the flows after t=0. What is wrong with the layout, and how do you fix it?
Show answer
NPV ignores the empty cell at t=2, so it sees only three flows after t=0 (2000, 2500, 2500) and discounts them as years 1, 2, and 3 instead of 1, 3, and 4. The later flows are discounted too little, so the value is overstated. Fix it by entering 0 in the t=2 cell so the range contains four numeric values: 2000, 0, 2500, 2500. The t=0 flow of -5000 stays outside the range and is added separately.