Google Sheets: How to Calculate Date Differences with DATEDIF

Use natural language to write 'calculate age' with AI

Google Sheets: How to Calculate Date Differences with DATEDIF

The DATEDIF Formula in Google Sheets

The DATEDIF formula in Google Sheets calculates the difference between two dates in days, months, or years.

To use the DATEDIF formula, you need to input the start date, end date, and the unit of time you want to calculate the difference in. The syntax for the formula is =DATEDIF(start_date, end_date, unit).

For example, if you want to calculate the number of days between January 1, 2021, and January 10, 2021, you would use the formula =DATEDIF("1/1/2021", "1/10/2021", "D"). This will return the result as 9 days.

You can also use different units such as "M" for months or "Y" for years to calculate the difference in those units. Just make sure to format your dates correctly and specify the unit of time you want to calculate.

Now you can use simple words to process data. It's at CapGo AI Sheet. For Google Sheet formula '=DATEDIF(A1, B1, "y"):

You can write a simple instruction "Calculate the number of complete years between #A and #B."

In 1 second, all your data is processed!

Try it now at CapGo.AI

Read more