Home › Functions › Date & Time › YEARFRAC
fx
YEARFRAC
Date & Time  ·  Since: Excel 2003  ·  9 languages

YEARFRAC calculates the fraction of the year represented by the number of whole days between two dates (the start_date and the end_date ). For instance, you can use YEARFRAC to identify the proportion of a whole year's benefits, or obligations to assign to a specific term.

🌐 Translations

English YEARFRAC
Deutsch BRTEILJAHRE
Français FRACTION.ANNEE
Español FRAC.AÑO
Italiano FRAZIONE.ANNO
Português FRAÇÃOANO
Nederlands JAAR.DEEL
Polski CZĘŚĆ.ROKU
Русский ДОЛЯГОДА

📦 Availability

Excel versionAvailable
Excel 2007 ✓
Excel 2013 ✓
Excel 2019 ✓
Excel 2021 ✓
Microsoft 365 ✓
Translate a formula with this function
fx EN
fx DE

⌨ Syntax

YEARFRAC(start_date,end_date,[basis])

Arguments

start_date (required) — A date that represents the start date.
end_date (required) — A date that represents the end date.
basis (optional) — The type of day count basis to use.

▶ Examples

=YEARFRAC(A2,A3)
=YEARFRAC(A2,A3,1)
=YEARFRAC(A2,A3,3)

Related functions

Copied to clipboard