YEARFRAC in Apple Numbers
Short answer: YEARFRAC returns the number of years between two dates as a decimal. Syntax:
YEARFRAC(start-date, end-date, basis)Explanation
YEARFRAC returns the number of years between two dates as a decimal. Six months is 0.5.
Syntax
YEARFRAC(start-date, end-date, basis)Example
What fraction of a year lies between 1 January and 1 July 2026?
Formula: =YEARFRAC(DATE(2026,1,1),DATE(2026,7,1))
Result: 0.5
Frequently asked questions
What does YEARFRAC do in Apple Numbers?
YEARFRAC returns the number of years between two dates as a decimal. Six months is 0.5.
What is the syntax of YEARFRAC?
The syntax is YEARFRAC(start-date, end-date, basis).
More in this category
- DATE + MONTH
- DATEDIF + DATE
- WEEKDAY + DATE
- MONTH + EDATE + DATE
- DAY + EOMONTH + DATE
- HOUR + TIME
- YEAR
- DATEVALUE + DAY
Practise it yourself
Type the formula yourself in a real exercise and see right away if your answer is correct. The first exercises are free.
Start practising