XIRR(cashflow_amounts, cashflow_dates, [rate_guess])One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
cashflow_amounts:
The range of cash flow amounts, which can include both positive (inflows) and negative (outflows) values, corresponding to the cash flows at specific dates.
cashflow_dates:
The range of dates that correspond to each cash flow amount in cashflow_amounts. Each date must be in a valid date format.
rate_guess:
An optional parameter that represents your guess for the expected internal rate of return. If omitted, Google Sheets uses a default value of 0.1 (or 10%).
The XIRR function in Google Sheets is a financial function used to calculate the internal rate of return for a series of cash flows that occur at irregular intervals. It is particularly useful for evaluating investments or projects where cash inflows and outflows do not happen at regular time intervals. Unlike the regular IRR function, which assumes equal time periods between cash flows, XIRR takes into account the actual dates of each cash flow.
In simpler terms, XIRR allows you to determine the annualized return on an investment based on the timing and amount of cash flows.
Imagine you are tracking an investment where you have made several cash inflows and outflows over time:
| Date | Cash Flow |
|---|---|
| 2023-01-01 | -10000 |
| 2023-06-01 | 3000 |
| 2023-12-01 | 4000 |
| 2024-06-01 | 5000 |
In this table, the negative cash flow represents the initial investment, while the positive cash flows represent returns from the investment.
To calculate the internal rate of return for this investment, you would use the XIRR function as follows:
=XIRR(B2:B5, A2:A5)In this formula:
B2:B5 is the range containing the cash flow amounts.A2:A5 is the range containing the corresponding dates of each cash flow.When you apply the XIRR formula to the Cash Flow Table, it will return the internal rate of return for the investment. For example, if the result is 0.15, this indicates an annualized return of 15%.
XIRR is beneficial because it provides a more accurate representation of the return on investment when cash flows occur at irregular intervals. It allows investors and financial analysts to assess the performance of investments more effectively, considering the timing of cash flows. This makes it an essential tool for financial modeling and investment analysis.
XIRR is an essential function for anyone involved in finance or investment analysis, providing a powerful way to evaluate the profitability of investments over time.
Happy investing!
You have a table with investment cash flows in Column A and corresponding dates in Column B. Use the XIRR formula to calculate the annualized return on investment, allowing for a clear understanding of profitability over time, even with irregular cash flows.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.