IRR and XIRR Errors in Excel: Fixing #NUM!, #VALUE! and Answers That Make No Sense

An analyst pastes a project’s cash flows into the capital request template and the IRR cell shows #NUM!. They change the guess, it returns 10%. They change it again, it returns 20%. Both are mathematically correct. The investment committee meets in an hour.

IRR is the rate that sets NPV to zero. Excel finds it by trial and error, and the search can fail, can find more than one answer, or can find an answer that is right and still misleading. This post covers each failure, how to diagnose it, and when to replace IRR with something that cannot fail. Excel 2021 or 365.

How IRR finds its answer

IRR starts at a guess (10% if you leave it out), calculates the NPV, adjusts the rate, and repeats. Microsoft’s documentation says it gives up after 20 tries if it has not found a rate accurate to 0.00001%. XIRR works the same way with actual dates. Both return #NUM! when the search fails.

Every error below is a reason the search fails, or a reason it succeeds on the wrong question.

#NUM!: no sign change

IRR needs at least one negative and one positive cash flow. If every value is positive, there is no rate that brings NPV to zero, and Excel returns #NUM!.

This usually means the signs are wrong, not the project. A schedule that shows the investment as a positive capex line, or a summary that pulls absolute values, gives IRR nothing to solve. Fix the source so outflows are negative:

=IRR(-Capex + OperatingCashFlow)

Or build a dedicated cash flow row for the IRR, with the investment negative, so the template does not depend on how the P&L presents costs.

#NUM!: the search did not converge

Projects with very high or very low returns can defeat the default guess. A 1,000 outlay returning 5,000 a year later has an IRR of 400%. Starting from 10%, the search may not get there in 20 steps. Give IRR a better starting point:

=IRR(B2:B12, 0.5)

The same applies in reverse. A project that never pays back, such as -50,000 followed by two years of 20,000, has an IRR of -13.7%. Negative IRRs are where XIRR most often fails or returns a meaningless value near zero. Supply a negative guess:

=XIRR(B2:B4, A2:A4, -0.1)

If a guess fixes it, check the result with NPV at that rate. It should be zero, or close enough to round to zero.

Two correct answers

Cash flows of -100, +230, -132 have two IRRs: 10% and 20%. Both set NPV to zero. Excel returns whichever one is closest to the guess, so the same model can show 10% on one machine and 20% on another if someone changed the guess.

This happens whenever the cash flow changes sign more than once: a mine with closure costs at the end, a lease with a large restoration payment, a project with a mid-life refit. Each sign change can add another root. Count them:

=SUMPRODUCT(--(SIGN(B3:B12)<>SIGN(B2:B11)))

Zero years count as a change in this formula, so read it with the row in view. More than one real sign change means IRR may not be unique, and the honest answer is to stop using it for the decision. Use NPV at the hurdle rate, which always has one answer, or MIRR, which assumes outflows are financed at one rate and inflows reinvested at another, and returns a single number. MIRR on the example at 10% for both rates returns 10%.

#VALUE! and XIRR’s own errors

XIRR has failure modes IRR does not, because it reads dates.

  • #VALUE!: a date that is not a valid date. Text dates from a system export are the usual cause. Test with =ISNUMBER(A2).
  • #NUM!: the values and dates ranges are different sizes, or a date falls before the first date. The first date is day zero, so the investment must be first or dated earliest.
  • #NUM!: no sign change, same as IRR.

XIRR also annualizes everything with a 365-day year, so its answer on annual flows differs slightly from IRR. On the -500,000 project from the NPV vs XNPV post, IRR returns 17.09% and XIRR 17.08%. That gap is not an error.

Monthly IRR is not annual IRR

IRR returns the rate per period of the data. Feed it 25 monthly cash flows, -120,000 then 24 payments of 6,000, and it returns 1.51%. That is a monthly rate. Multiplying by 12 gives 18.2%, which understates the annual equivalent:

=(1+IRR(B2:B26))^12 - 1

The correct annual figure is 19.75%. Or use XIRR with month-end dates, which returns the annual rate directly.

The answers that calculate and still mislead

Small projects with huge IRRs. The 400% project above creates about 3,500 of value at a 10% rate. A 5,000,000 project at 18% creates far more. IRR ranks by rate, not by value, so a committee sorting by IRR will pick the wrong one when capital is limited. Show NPV next to IRR on every summary.

The reinvestment assumption. IRR implicitly assumes interim cash flows earn the IRR itself. A 40% IRR project throwing off cash in year one is assumed to reinvest it at 40%. MIRR replaces that with a stated reinvestment rate and is usually closer to what the business will actually earn.

Blank cells. IRR ignores blank cells, so a year with no cash flow left blank shifts every later year one period earlier and inflates the rate. Use zeros.

A review checklist

Before an IRR goes in front of a committee:

  1. The first cash flow is the investment, negative, dated earliest.
  2. No blanks in the range; zero years show 0.
  3. Count sign changes. If more than one, report NPV and MIRR as the decision metrics.
  4. NPV at the reported IRR is zero.
  5. Monthly or quarterly IRRs are annualized by compounding, not multiplication.
  6. NPV sits next to IRR so the size of the opportunity is visible.

The IRR and XIRR function pages cover the syntax; the checklist is what keeps the result defensible.

Similar Posts