=IRR(values, [guess])
=IRR(A2:A6)
This calculates the internal rate of return for an investment after four years.
=IRR(A2:A7)
This calculates the internal rate of return after five years.
=IRR(A2:A4,-10%)
This calculates the internal rate of return after two years. The guess for the IRR is -10%.
The IRR function calculates the internal rate of return for a set of cash flows that are not necessarily even.