Description
Use this function to calculate the internal rate of return for a schedule of cash flows that is not necessarily periodic.
XIRR returns the internal rate of return for a schedule of cash flows occurring at irregular intervals.
Syntax
XIRR(values, dates, [guess])
Inputs
This function accepts the following arguments:
| Name | Required | Description | Valid input |
|---|---|---|---|
values |
Yes | A series of cash flows that corresponds to a schedule of payments in dates. | A number, a reference to a cell containing a number, a cell range that includes numbers, or a formula which results in any of these. |
dates |
Yes | A schedule of payment dates that corresponds to the cash flow payments. | A date, a reference to a cell containing a date, a cell range that includes dates, or a formula which results in any of these. |
guess |
No | A number that you guess is close to the result of XIRR. | A number. If omitted, guess is assumed to be 0.1 (10%). |
Example
Sample data
| A | B | |
|---|---|---|
| 1 | Date | Cash Flow |
| 2 | 1/1/2023 | -$6000.00 |
| 3 | 3/1/2023 | -$2750.57 |
| 4 | 10/30/2023 | $4250.55 |
| 5 | 2/15/2024 | $3250.68 |
| 6 | 4/1/2024 | $4755.58 |
Sample Formulas
| Use case | Formula | Explanation and Result |
|---|---|---|
| Calculate the internal rate of return for the specified cash flow and date ranges, with no initial guess value specified. | =XIRR(B2:B6, A2:A6) |
This formula works in the following manner:
For this data set, the formula returns the percentage value 39.4158870%. |
| Calculate the internal rate of return for the specified cash flow and date ranges, with a specified initial guess value. | =XIRR(B2:B6, A2:A6, 0.42) |
This formula works in the following manner:
For this data set, the formula returns the percentage value 39.4158861%. |
Notes
- The XIRR function uses an iterative technique for calculating the internal rate of return.
- The specified
valuesanddatesranges must be the same size. - The
datesrange must only contain dates. - The
valuesrange must only contain numeric values. - If XIRR can't find a result that works after 100 tries, it returns the #NUM! error value.
- The first value in the cash flow series must be negative (representing an initial investment) for the calculation to work properly.
- Dates should be entered using a recognized date format, such as "1/1/2023" or "1-Jan-2023".
- The calculation is sensitive to the order of cash flows. Ensure that dates (and associated values) are entered in chronological order.
Tips
- Use XIRR for investments or projects with irregular cash flows, such as real estate investments or venture capital projects.
- XIRR is particularly useful when cash flows occur at uneven intervals, unlike the IRR function which assumes regular periodic cash flows.
- If you're analyzing multiple investment options, use XIRR to compare their potential returns.
- You can combine XIRR with other financial functions such as NPV (net present value) for a more comprehensive investment analysis.