EXCEL YEARFRAC FUNCTION

The YEARFRAC Function is classified as a DATE/TIME function. YEARFRAC in Excel will give the number of days between two dates as a year percent.

Syntax :

=YEARFRAC(start_date, end_date, [basis])

Parameters:

  • Start date (required parameter) – This is the period’s start date. In computations, the function takes the commencement date into account.
  • End date (required parameter) – This is the period’s end date. In computations, the function takes the end date into account.
  • [basis] (optional parameter) Specifies the day count basis to be utilized.

Step By Step Guide of YEARFRAC Function

Example :

  •  #NUM! error – This occurs when the provided base argument is less than zero or higher than four.
  •  #VALUE! error – Occurs when either the start date or end date parameters are invalid dates.
  •  The [base] option provided is not numeric.

Related Functions

HLOOKUP Function

HLOOKUP Function

Explore Now

VLOOKUP Function

VLOOKUP Function

Explore Now

INDEX Function

INDEX Function

Explore Now

MATCH Function

MATCH Function

Explore Now

DATE Function

DATE Function

Explore Now

IF Function

IF Function

Explore Now

OR Function

OR Function

Explore Now

AND Function

AND Function

Explore Now

RANK Function

RANK Function

Explore Now

SUMIF Function

SUMIF Function

Explore Now

XIRR Function

XIRR Function

Explore Now

WORKDAYS Function

WORKDAYS Function

Explore Now