I'm taking a class in Data Analytics, and I'm trying to improve my Google Sheets and Excel skills. (I'm a beginner!)
I'm trying to gain fluency with using DATEDIF. When I type =DATEDIF(MM/DD/YYYY, MM/DD/YYYY, "D") it returns an error. If I put the dates into two cells first, and then type =DATEDIF (cell, cell, "D") it works just fine.
Is that just how DATEDIF is supposed to work or am I doing something wrong? I'm making sure my dates are formatted correctly, and consistently. Thank you!
I tried entering the dates in the formula, rather than in cells first.
From the documentation:
Use this syntax:
...or simply let Sheets autoconvert text strings to dates, as suggested in the comment, like this:
...or skip
datedif()altogether, like this:See Working with date and time values in Google Sheets.