XIRR
The XIRR function in Google Sheets calculates the internal rate of return of an investment based on a specified series of potentially irregularly spaced cash flows. This powerful function is essential for financial analysis and investment evaluations.
Function Syntax and Parameters
Syntax: XIRR(cashflow_amounts, cashflow_dates, [rate_guess])
Parameters:
cashflow_amounts: An array or range containing the cash flow amounts for the investment.cashflow_dates: An array or range containing the corresponding dates of the cash flows.[rate_guess]: [Optional] An initial guess for the rate of return. If omitted, the function uses 0.1 (10%) as the default rate guess.
Step-by-Step Tutorial
-
Using
XIRRwith cash flow amounts and dates:- Example: If
A2:A6contains the cash flow amounts[1000, -100, -200, 300, 500], andB2:B6contains the corresponding dates,XIRR(A2:A6, B2:B6)will calculate the internal rate of return.
- Example: If
-
Using
XIRRwith a rate guess:- Example: If the rate guess is 0.05, use the syntax
XIRR(A2:A6, B2:B6, 0.05).
- Example: If the rate guess is 0.05, use the syntax
-
Using
XIRRwith irregularly spaced cash flows:- Example: If the cash flows occur on 01-Jan-2022, 15-Feb-2022, and 31-Dec-2022, use the syntax
XIRR(A2:A4, B2:B4).
- Example: If the cash flows occur on 01-Jan-2022, 15-Feb-2022, and 31-Dec-2022, use the syntax
Use Cases and Scenarios
- Investment Analysis: Evaluate the profitability of an investment based on irregular cash flows.
- Loan Calculations: Determine the internal rate of return for loan repayment schedules.
- Portfolio Performance: Calculate returns on investment portfolios with variable cash flows.
Related Functions
IRR: Returns the internal rate of return for a series of cash flows that occur at regular intervals.NPV: Calculates the net present value of an investment based on a series of future cash flows.