Mar 01, 2017 09:42 PM
Hi,
I have a row with several expiration dates in different columns. I’d like a cell to calculate which of these dates in the row is next date to Expire. I’ve tried MIN() but it doesn’t recognise date values.
Any suggestions?
Thanks.
Mar 01, 2017 10:03 PM
Use nested IF statements to create an IF/ELSE/ELSE along with the DATETIME_DIFF() and TODAY() or NOW() methods.
IF (
DATETIME_DIFF(...) >DATETIME_DIFF(...),
"First field is greatest",
IF (
DATETIME_DIFF(...) > DATETIME_DIFF(...),
"Second field is greatest",
"Third field is greatest"
)
)
Mar 09, 2017 07:44 PM
It’s not working. I can’t even get the cell to show if the date is < or > than today in a standard IF formula.
I am using LOCAL date format.
Mar 09, 2017 08:04 PM
I’ve changed it a little and now calculating the months and using MIN so it is working now.
Thanks for the response.