XIRR
returns internal rate for irregular cash flows · from excel · excel: not yet compared · sheets: not yet compared
signature
XIRR(values, dates, [guess])
returns: number
| argument | required |
|---|---|
| values | required |
| dates | required |
| guess | optional |
examples
formula and result, taken from the engine's own test suite — every result below is asserted in CI, not written by hand.
| K | L | |
|---|---|---|
| 1 | -100000 | 2026-01-01 |
| 2 | 30000 | 2026-06-01 |
| 3 | 40000 | 2026-12-01 |
fx
=XIRR(K1:K3, L1:L3) -0.3926316839764362 errors
error values observed from the engine — each with a call that produces it.
| error | produced by |
|---|---|
| #VALUE! | =XIRR(A1:A3, DATE(2026,1,15)) |
related
- ACCRINT accrued interest for a security paying periodic interest
- ACCRINTM accrued interest for a security paying at maturity
- AMORDEGRC depreciation per period, French accounting, degressive
- AMORLINC depreciation per period, French accounting, linear
- COUPDAYBS days from coupon period start to settlement
- COUPDAYS days in the coupon period containing settlement