Fix the #NUM! Error in Excel IRR and XIRR Calculations
Question details
Find out why an Excel IRR or XIRR formula returns #NUM! and how to troubleshoot it.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Calculating an internal rate of return from a series of cash flows using IRR or XIRR.
- Observed behavior
- The formula returns #NUM!, and enabling iterative calculation does not resolve the error.
Locate the formula and identify its cash-flow range and, for XIRR, its corresponding date range. Confirm whether the cash flows occur at regular intervals, which calls for IRR, or on specific dates, which calls for XIRR.
Check Cash Flows and Dates, Then Test a Rate Guess
Use these checks to correct common input problems and help Excel find a return.
Select the cells referenced by the IRR or XIRR formula. Make sure the range contains at least one negative value, such as an investment, and one positive value, such as a return.
For XIRR, check that the date range has one valid Excel date for each cash flow in the same row. The first date must not be later than any other date in the range.
Edit the formula in the formula bar to include a starting rate, such as =XIRR(B2:B6,A2:A6,0.1) or =IRR(B2:B6,0.1). If 10% does not work, try other plausible guesses.
Inspect the referenced cells for missing, duplicated, or incorrectly signed cash flows. Correct the entries and recalculate the formula.

Use an NPV Table to Find Promising Rate Guesses
Use a table of discount rates when several guesses fail or the cash-flow pattern may have more than one return.
Review Cash-Flow Models in WPS Spreadsheet
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and compatibility with Excel files, making it easy to move cash-flow models between applications. It does not change Excel's calculation behavior, and the same input problems can still affect a formula.

Frequently Asked Questions
Why does XIRR return #NUM! even when my cash flows have both signs?
Excel may be unable to find a result from the starting guess, or a date may precede the first date in the formula's date range. Check the dates and try a different guess in the third argument, such as =XIRR(B2:B6,A2:A6,0.2).
Should I turn on iterative calculation for IRR?
No. The iterative calculation setting applies to intentional circular references, not the normal operation of IRR or XIRR. Instead, check the inputs and test a different guess.
What is the difference between IRR and XIRR?
Use IRR for cash flows at regular intervals. Use XIRR when cash flows occur on specific dates, and supply a matching date for each cash flow.
Can a cash-flow series have more than one IRR?
Yes. Some cash-flow patterns can produce multiple returns. Create an NPV-versus-rate table and look for sign changes, then test guesses near those ranges.




