How to Troubleshoot the XIRR #NUM! Error in Excel
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.

- 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.
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.
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.
Review your data column. Ensure that initial investments or payments are entered as negative numbers, while returns or withdrawals are entered as positive numbers.
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.
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.

Analyze the NPV Curve
Calculate the Net Present Value (NPV) across different discount rates to determine if an IRR actually exists.
Use Alternative Financial Metrics
Switch to Modified Internal Rate of Return (MIRR) or a Simple Annualized Return if standard XIRR calculations are mathematically impossible for your data.
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. Open WPS Spreadsheet: Launch WPS Office and open your spreadsheet containing the irregular cash flows and dates.
- 2. Enter the XIRR formula: Select the cell where you want the return rate to appear and type =XIRR(.
- 3. Select your data ranges: Highlight your cash flow values, type a comma, and highlight the corresponding dates.
- 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.

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.




