Want to get in on a secret? The DATEDIF() Function is a well-kept secret in Excel. You will not find it in the list of Excel Functions. And, you will not find any documented Help for it from Microsoft! Amazing, because it is a great function to use. Be sure to bookmark this video, because this may be the only help that you get for the DATEDIF Function!
DATEDIF() has three required arguments: Start_Date, End_Date, Date Code.
Six Date Codes
- “Y” – Gives you the difference in “years” between the starting and ending dates.
- “M” – Gives you the difference in “months” between the starting and ending dates.
- “D” – Gives you the difference in “days” between the starting and ending dates.
- “YM” – Ignores the years and days to give you the difference in “months” between the starting and ending Months.
- “YD” – Ignores the years to give you the difference in “days” between the starting and ending Days and Months.
- “MD” – Ignores both the years and the months to give you the difference in “days” between the “day” of the Start_date and the “day” of the End_date.
You can add “clarifications” to the results by using the “&” (Ampersand) and a “text label.”
I use DATEDIF frequently – for example to find out a person’s exact age or to document the number of years an employee has been worked for you.
Follow this link to visit my Archive of Video Lessons for Time and Date Functions in Excel
Click here to watch this Excel Video Lesson in High Definition, Full Screen Mode on YouTube.
Learn how to “Master Excel in Minutes – Not Months!”