Returns the ratio between days in specified interval to the number of days in a year.
Syntax
![]() |
---|
YEARFRAC( Date startDate, Date endDate, [Integer method] ) → Number |
startDate | Required. The start date of the interval. |
endDate | Required. The end date of the interval. |
method | Optional. |
This formula lets you include in calculations the proportion of specified time interval relative to whole year.
Function Reference
DAYS Function
DATEDIF Function