Forum Discussion
Neenalou
Jan 07, 2022Copper Contributor
How to remove #NUM from DATEDIF negative formula
Hi, I have a quick query re DATEDIF. I am using the function to calculate the difference in years between each employee's start date, and the start of our annual leave calendar (Jan 1st 2022) to show...
OliverScheurich
Jan 07, 2022Gold Contributor
=IFERROR(DATEDIF(A4,B4,"Y"),"start date greater end date")
or
=IFERROR(DATEDIF(A4,B4,"Y"),"")
Maybe with one of the above formulas, depending on the expected error response.
Neenalou
Jan 07, 2022Copper Contributor
OliverScheurich Thank you! Appreciate it