Formula Errors

How to Troubleshoot the XIRR #NUM! Error in Excel

Huda QurayshiHuda Qurayshi Nov 3, 2026 870 views

Question details

The user needs to understand why the XIRR function is returning a #NUM! error and how to correct their cash flow model to retrieve a valid percentage result.

How to Troubleshoot an XIRR #NUM! Error in Excel
Product
Excel
Device & OS
not provided
Scenario
Calculating the internal rate of return for a series of irregular cash flows using the XIRR function.
Observed behavior
The XIRR formula returns a #NUM! error instead of a calculated return rate, indicating that a valid mathematical IRR cannot be found for the provided cash flows and dates.
Before you start

Ensure your cash flow data contains at least one positive value (income) and one negative value (payment), and verify that all associated dates are validly formatted in Excel.

Solution 1Recommended

Verify Cash Flow Data and Ending Balance

Check your investment scenario values to ensure negative and positive values are applied correctly and that the ending balance makes mathematical sense.

The #NUM! error frequently occurs when the input data represents an impossible investment scenario. If the final cash flow values do not balance out previous investments appropriately, an internal rate of return simply does not exist.

1
Check positive and negative values

Review your data column. Ensure that initial investments or payments are entered as negative numbers, while returns or withdrawals are entered as positive numbers.

2
Verify the ending balance

Check the final row of your cash flow. If your total withdrawals vastly underestimate your total investments without a proper final cash flow, XIRR will fail. Adjust the ending balance to accurately reflect the final investment value.

3
Add a guess rate to the formula

Modify your formula to include a guess rate, such as =XIRR(B1:B16, A1:A16, 0.1). This helps Excel's iterative calculation find a starting point, which can resolve calculation limits.

Verify Cash Flow Data and Ending Balance
Calculation Limits: Excel tries to calculate XIRR over 100 iterations. If a result accurate to 0.000001% isn't found, it defaults to a #NUM! error.
Solve Financial Formulas Easily

Calculate Complex Financial Formulas with WPS Spreadsheet

WPS Office provides powerful spreadsheet tools fully equipped with advanced financial functions like XIRR, NPV, and MIRR. Effortlessly model cash flows, analyze investments, and bypass complex errors with an intuitive, highly compatible interface.

  1. 1. Open WPS Spreadsheet: Launch WPS Office and open your spreadsheet containing the irregular cash flows and dates.
  2. 2. Enter the XIRR formula: Select the cell where you want the return rate to appear and type =XIRR(.
  3. 3. Select your data ranges: Highlight your cash flow values, type a comma, and highlight the corresponding dates.
  4. 4. Add a guess and calculate: Type a comma, enter a guess like 0.1, close the parenthesis, and press Enter to instantly calculate your investment's rate of return.
Free to download and use for everyday tasksFully compatible with Microsoft Excel financial formulas (.xlsx)Lightweight architecture runs smoothly on older devicesIncludes intuitive chart tools for easy NPV curve analysis
microsoft office alternative - wps office

Frequently Asked Questions

Why does the XIRR formula sometimes require a guess argument?

Excel calculates XIRR using an iterative technique, trying different rates until it zeroes in on the exact IRR. If it starts too far from the actual answer, it may reach its limit of 100 iterations before finding it. Providing a guess (like 0.1 for 10%) gives the software a closer starting point, preventing the #NUM! error.

What is the difference between IRR and XIRR?

The standard IRR function assumes that cash flows occur at perfectly regular, periodic intervals (like exactly one month or one year apart). XIRR allows you to assign specific, irregular dates to each cash flow, making it significantly more accurate for real-world investments where transactions happen on random days.

Can I hide the #NUM! error and show a blank cell instead?

Yes. You can wrap your XIRR formula in the IFERROR function to clean up your spreadsheet. Use the syntax =IFERROR(XIRR(values, dates), "") to display a completely blank cell, or replace the quotation marks with custom text like "No IRR" if the calculation fails.