The IRR (Internal Rate of Return) function in Excel is a financial tool used to evaluate the profitability of investment opportunities. It calculates the rate at which the net present value (NPV) of a series of cash flows equals zero, allowing investors and analysts to assess the potential return on their investments over time.
Syntax
IRR(values, [guess])
- values: An array or reference to the cells that contain cash flow values. At least one cash flow must be negative (representing an investment) and one positive (return).
- guess: An optional argument that represents your estimate of what the IRR will be. If omitted, Excel uses 0.1 (10%).
Example #1
=IRR(A1:A5)
This function calculates the internal rate of return for the cash flows listed in cells A1 through A5. For instance, if A1=-5000 (initial investment) and A2 through A5 had values of 1000, 2000, 3000, and 4000 respectively, the IRR would return a value of approximately 41.4%.
Example #2
=IRR(B1:B6, 0.2)
This example computes the IRR for the cash flows in the range B1:B6, starting with an initial guess of 20% for the rate of return. If the cash flows included a -6000 as the initial investment and subsequent cash inflows of 1500, 2500, 3000, and 4000, the function would yield an IRR of approximately 36.2%.
Example #3
=IRR(C1:C8)
Here, the IRR function evaluates the cash flows in cells C1 to C8. Assuming C1=-10000 (the investment) and C2 to C8 had cash inflows that summed up to 15,000 over the years, the calculated IRR would be around 15%.
Error handling
- NUM!: This error occurs if the function does not converge on a result, which may happen if there are not enough cash flow values or if all cash flows are positive or negative.
- VALUE!: This error indicates that one or more inputs are of an incorrect type, often when the range specified does not contain numbers.
- DIV/0!: This error may arise when the calculation tries to divide by zero, typically happening if cash flows are not correctly set or if the resultant NPV equals zero without a valid IRR.