Excel: How to Calculate Date Differences with DATEDIF
Use natural language to write 'calculate age' with AI

The DATEDIF Function in Excel
The DATEDIF function in Excel calculates the difference between two dates in days, months, or years.
To use the DATEDIF function, you need to enter the following formula into a cell:
=DATEDIF(start_date, end_date, "unit")
- start_date: The starting date of the period you want to calculate the difference from.
- end_date: The ending date of the period you want to calculate the difference to.
- unit: The unit of time you want to calculate the difference in (days, months, or years).
For example, if you want to calculate the difference in days between January 1, 2021, and January 10, 2021, you would enter the following formula:
=DATEDIF("1/1/2021", "1/10/2021", "d")
This formula would return the result of 9 days.
Now you can use simple words to process data. It's at CapGo AI Sheet. For example, for excel formula '=DATEDIF(A1, B1, "y")'
:
You can write a simple header "Calculate the number of complete years between #A and #B using the DATEDIF function."
In two seconds, all your data is processed!