YEARFRAC
Function helps user to calculate years between two dates. YEARFRAC is an inbuilt Excel function and can be very helpful to calculate fraction between two dates.
Syntax
=YEARFRAC(start_date, end_date, [basis])
Basis
- US (NASD) 30/360 this is default
- Actual/actual
- Actual/360
- Actual/365
- European 30/360
Example

Output

Next >> List All Name Ranges in Excel using VBA