Excel Error Codes

Fix the #NUM! Error in Excel IRR and XIRR Calculations

Steve KSteve K Dec 2, 2026 869 views

Question details

Find out why an Excel IRR or XIRR formula returns #NUM! and how to troubleshoot it.

Fix the #NUM! Error in Excel IRR and XIRR Calculations
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.
Before you start

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.

Solution 1Recommended

Check Cash Flows and Dates, Then Test a Rate Guess

Use these checks to correct common input problems and help Excel find a return.

1
Check the cash-flow signs

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.

2
Check XIRR dates

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.

3
Add a guess

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.

4
Review the model

Inspect the referenced cells for missing, duplicated, or incorrectly signed cash flows. Correct the entries and recalculate the formula.

Check Cash Flows and Dates, Then Test a Rate Guess
Iterative calculation is not the fix: Excel's iterative calculation setting is for intentional circular references. IRR and XIRR use their own calculation methods and do not require that setting.
Free Microsoft Office alternative

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.

Review cash flows and test IRR or XIRR formulas in a spreadsheetOpen and edit Microsoft Excel XLS and XLSX filesUse a familiar interface for a smoother move from Microsoft OfficeWork with a free, lightweight Office alternative
microsoft office alternative - wps office

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.