Difference in Days – DATEDIF
DATEDIF is handy for formulas which find the difference in dates. Particularly, I use it most to quickly find the days from an event or to one.
The DATEDIF syntax:
=DATEDIF(EarlierDate, LaterDate, Format) =DATEDIF(A3,B3,"d")
For more on the DATEDIF Formats and usage, check out Pearson Consulting: DATEDIF
The following is a picture example that demonstrates using DATEDIF to determine the days to and from an event. The first calculates the days since Tom Quit smoking and the second calculates the days to a wedding.

(Note: 58 days until I attempt a 5k race
Can't get the tutorial to work for you? Need help with your code?
Get answers right away at our AE Excel Support Forums!
Get answers right away at our AE Excel Support Forums!



Note that when trying to find the difference in days, specifically, it is much easier to just use
=B3-A3
Juan, thanks for stopping by.
I use datedif because additional formatting isn’t required.
If I simply subtract the two dates, the result is another date, which isn’t what I’m after.
Good to see you’re still running
Good luck in the race
yep good luck Mark
Thanks all!