Formulas > =YEARFRAC()

How to Use YEARFRAC() in Google Sheets

Description

Returns the number of years, including fractional years, between two dates using a specified day count convention.

How To Actually Use YEARFRAC() in Sheets

YEARFRAC(start_date, end_date, [day_count_convention])

Try YEARFRAC yourself

Use the YEARFRAC formula to calculate the number of years between the dates in cells A1 and B1. The result should be displayed in cell C1.

Hints (2)

Looking for a video tutorial? Members can email me anytime! Check out the blogs below for more info on this formula. Or generate your formula. Find more formulas here at BetterSheets.co/formulas

Transcript-matched member videos for YEARFRAC(). Click through to watch.

Browse more tutorials
REGEXMATCH Formula Generator for Google Sheets

REGEXMATCH Formula Generator for Google Sheets

Revolutionize the way you handle data with the BetterSheets REGEXMATCHER...
Write Apps Script to Create a New Google Sheets Formula

Write Apps Script to Create a New Google Sheets Formula

Create a brand new custom formula in Apps Script. We'll do this for our ...
One Weird Google Sheet Formula for Bulk Publishing With AI

One Weird Google Sheet Formula for Bulk Publishing With AI

'll show you a game-changing Google Sheet formula that will make your da...
Create a Trello Board with Transpose Formula in Google Sheets

Create a Trello Board with Transpose Formula in Google Sheets

Use Transpose() to create a web-based, Kanban style, list-making applica...

Learn more about the YEARFRAC() formula:

Generate a YEARFRAC() formula for your needs

Describe your task in plain English and get a paste-ready formula that uses YEARFRAC(). 2 free AI generations, no signup. Members get unlimited use.

Generate a YEARFRAC() formula