Sub topic 12
Using XIRR
Assume you know Excel cell references, percentages, ranges, and how to enter real Excel dates. You should also understand that a cash outflow is negative and a cash inflow is positive. Use XIRR when cash flows occur on specific dates rather than at regular monthly, quarterly, or annual intervals.
What XIRR measures
XIRR is the annualized rate that makes the present value of dated cash flows equal to zero. Unlike IRR, which assumes equal periods, XIRR uses the actual number of days between dates.
Excel applies this relationship:
\[ 0=\sum{i=0}^{n}\frac{CFi}{(1+r)^{(di-d0)/365}} \]
Here, CF is a cash flow, r is the annual rate, and d is a date. The first date is the reference date. The 365-day basis means that XIRR reports an annual rate even when the gaps between cash flows are irregular.
Preparing the input
Put dates and cash flows in parallel ranges. The ranges must contain the same number of cells. Sort the rows by date so that the cash flow timeline is easy to inspect.
| Date | Cash flow | Meaning |
|---|---|---|
| 2026-01-15 | -10000 | Initial investment |
| 2026-07-15 | 2500 | Interim receipt |
| 2027-01-15 | 8500 | Final receipt |
The cash flow range must include at least one negative value and one positive value. A project with only inflows or only outflows has no rate that can make its present value zero.
A2:A4 contain real Excel dates
B2:B4 contain -10000, 2500, and 8500
Annualized return:
=XIRR(B2:B4, A2:A4)
Cross-check:
=XNPV(XIRR(B2:B4, A2:A4), B2:B4, A2:A4)The cross-check should return zero or a very small rounding difference, such as 0.0001. Format the XIRR result as a percentage. Format the XNPV check as a number with enough decimal places to reveal errors.
Convergence and the guess argument
XIRR uses an iterative numerical method. Excel tries rates until it finds one that makes XNPV close to zero. With unusual cash flows, the default starting point might fail to converge and return #NUM!.
Supply a third argument to try a different starting point:
=XIRR(B2:B4, A2:A4, 0.10)The 0.10 value is a 10% starting guess. It does not force the answer to be 10%. Try another reasonable guess if the formula still returns #NUM!.
A #VALUE! error usually indicates text in the date or cash flow range, an invalid date, or ranges with different sizes. Confirm that dates are stored as dates rather than text. Also check that every cash flow is numeric.
Exercise
Cash flows are in B2:B6 and dates are in A2:A6. XIRR returns #NUM!. Name two checks or changes you should try.
Show answer
Check that the ranges contain at least one negative and one positive value, that the ranges have equal lengths, and that the dates and cash flows are valid numeric values. Then try a reasonable third argument such as 0.10 as the starting guess.