December 4, 2025August 4, 2022 Adam Steinfurth The YEARFRAC function calculates the number of years between two dates, returning the result as a decimal (fraction).