Forum Discussion
geneseesquire
Nov 09, 2020Copper Contributor
DATEDIF returning #NAME?
I'm using Microsoft Office 365. I've discovered the DATEDIF formula in this forum, but it's not to working for me. I've tried several variations and get the #NAME? error. Examples: DATEDIF(AB2,...
HansVogelaar
Nov 09, 2020MVP
The first two arguments must be dates: references to cells containing dates, or expressions that evaluate to dates.
The third argument must be a string: text enclosed in quotes, or a reference to a cell containing a string, or an expression that evaluates to a string.
For example:
=DATEDIF(AB2,AA4,"D")
=DATEDIF(DATE(1984,1,1),TODAY(),"Y")