How to Fix XIRR Formula Returning #NUM! or #VALUE! in Excel
Question details
The user needs to resolve an issue where the XIRR formula produces #NUM! errors, #VALUE! errors, or calculates nearly identical incorrect percentages for different cash flows.
- Product
- Spreadsheets
- Device & OS
- not provided
- Scenario
- Calculating the annualized internal rate of return for a series of irregular cash flows.
- Observed behavior
- The XIRR function fails to compute the correct rate, yielding error codes (#NUM!, #VALUE!) or unrealistic, unchanging results instead of the true annualized return.
Before troubleshooting the formula, confirm that your cash flow data contains at least one positive value (income/return) and at least one negative value (payment/investment), as XIRR mathematically requires alternating signs to calculate a return rate.
Convert Text Dates to Valid Spreadsheet Dates
XIRR requires valid date formats to calculate the precise time between cash flows. If dates are stored as text, the formula will return a #VALUE! or #NUM! error.
Spreadsheet programs often import dates from CSVs or external software as text strings. XIRR cannot perform math on text, so these must be converted to recognizable serial date numbers.
Highlight the entire column or range of cells containing the dates used in your XIRR formula.
Navigate to the 'Data' tab on the top ribbon and click on 'Text to Columns'.
Select 'Delimited' and click 'Next' twice. In the third step, select 'Date' under the Column data format section, choose your matching date format (e.g., MDY), and click 'Finish'.
Add a Guess Argument to the Formula
When dealing with extreme cash flow changes or large single-day swings, the default algorithm might fail to find a result after 100 iterations, resulting in a #NUM! error.
Verify Range Sizes and Unrealistic Values
Mismatched array sizes cause #VALUE! errors, while extremely large one-day cash flow gains can cause the annualized formula to break or return #NUM!.
Calculate XIRR Seamlessly in WPS Spreadsheet
WPS Office provides robust and highly compatible financial functions, including XIRR, IRR, and NPV. It easily manages complex cash flow calculations and helps you identify formatting errors quickly.
- 1. Open your data: Launch WPS Spreadsheet and open your financial workbook.
- 2. Enter the XIRR function: Select an empty cell and type `=XIRR(`, then highlight your cash flows followed by your dates.
- 3. Calculate the return: Add a closing parenthesis and press Enter to instantly reveal your accurate annualized return rate.

Frequently Asked Questions
What does a #NUM! error mean in an XIRR formula?
A #NUM! error in XIRR typically means the formula's iteration process could not find a valid rate within 100 attempts. This usually happens if the cash flows lack at least one positive and one negative number, or if the estimated rate is too far from the default 10% guess. Providing a custom '[guess]' argument can often fix this.
Why is my XIRR calculation returning #VALUE!?
The #VALUE! error occurs for two main reasons: either the range of cash flows is not the same size as the range of dates, or one or more dates in the selected range are formatted as text rather than valid spreadsheet serial date numbers.
Can XIRR handle multiple cash flows occurring on the exact same date?
Yes, the XIRR function can process multiple entries on the same day. However, it is a best practice to net those values into a single daily total. Extreme fluctuations on the exact same day can sometimes cause the iteration algorithm to produce errors.
Why do completely different cash flows return the exact same XIRR result?
This can happen if your spreadsheet calculation mode is set to 'Manual' instead of 'Automatic', meaning the cell simply isn't updating. Alternatively, if the differing cash flow amounts are mathematically negligible compared to a massive initial principal, the annualized percentage change may appear identical due to rounding.




