The IRR function in Excel is used to calculate the internal rate of return for a series of cash flows.