In this article, you will learn how to use the XIRR formula in Google Sheets.
The XIRR function in Google Sheets calculates the internal rate of return (IRR) for a series of cash flows that occur at irregular intervals. This function is similar to the IRR function, but allows you to specify the dates for each cash flow, rather than assuming that the cash flows occur at regular intervals.
The syntax for the XIRR function is as follows:
values is a range of cells that contain the cash flows for each period.
dates is a range of cells that contain the dates for each cash flow.
guess (optional) is an initial estimate for the IRR. If this argument is omitted, Google Sheets will use a default value of 0.1.
The cash flows in the values range must be in the same order as the dates in the dates range. The values and dates arguments must be the same length.
For example, if you wanted to calculate the IRR of a series of cash flows with the dates in cells A1:A5 and the corresponding cash flows in cells B1:B5, you could use the following formula:
This would calculate the IRR of the cash flows using the dates in cells A1:A5.
The XIRR and IRR functions in Google Sheets are similar, but there is one key difference between them: the IRR function assumes that the cash flows occur at regular intervals, while the XIRR function allows you to specify the dates for each cash flow.
Are you learning this formula to visualize financial data, build a financial model, or conduct financial analysis? If so, LiveFlow may help you to automate manual workflows and keep numbers updated in real time. You can access more than fifty financial templates here, from the simple Income Statement to Multi-Currency Consolidated Financial Statement. You can also customize these templates as you want without breaking the automated data inflow.
To learn more about LiveFlow, book a demo.
Learn how to do this step-by-step in the video below 👇