Site icon ExcelNotes

How to Use YEARFRAC Function

The YEARFRAC function is to return the fraction of the year between the start_date and the end_date.

Formula:

= YEARFRAC(start_date, end_date, [basis])

Explanations:

Cautions:

Example 1: The time between 1/18/2016 and 6/18/2016 is 0.41667 years if we use US 30/360 day count basis.

=YEARFRAC(A2,B2)

Example 2: The time between 1/18/2016 and 6/18/2016 is 0.41644 years if we use Actual/365 day count basis.

=YEARFRAC(A5,B5,3)

Download: YEARFRAC Function

Exit mobile version