Sep 24, 2021 01:44 PM
Hello-
I’d like to create a formula that allows me to track expiration dates status (three possibilities):
I’ve been able to create this with the first two status items, but not the third (“Late”). Here’s what I have:
IF(
AND(
DATETIME_DIFF({Expiration}, NOW(), “days”) < 28,
DATETIME_DIFF({Expiration}, NOW(), “days”) > 0
), “Yes”
)
Thanks!
Solved! Go to Solution.
Oct 01, 2021 05:31 PM
agh it has :face_with_symbols_over_mouth: smart quotes in it. you need to retype all the quotes. see if this works, if not just literally delete the quotes and retype them.
IF(AND(DATETIME_DIFF({Expiration}, NOW(),‘days’)<28,
DATETIME_DIFF({Expiration}, NOW(), ‘days’)>0),‘YES’, IF(DATETIME_DIFF({Expiration},NOW(),‘days’)<0,‘LATE’))
Sep 24, 2021 08:32 PM
you need something that says like
IF(AND(
DATETIME_DIFF({Expiration}, NOW(),‘days’)<28,
DATETIME_DIFF({Expiration}, NOW(), ‘days’)>0),‘YES’, IF(DATETIME_DIFF({Expiration},NOW(),‘days’)<0,‘LATE’))
Oct 01, 2021 09:00 AM
Hmm. This is giving me an error, but I’ll see if I can tweak it. Thank you!!
Oct 01, 2021 05:31 PM
agh it has :face_with_symbols_over_mouth: smart quotes in it. you need to retype all the quotes. see if this works, if not just literally delete the quotes and retype them.
IF(AND(DATETIME_DIFF({Expiration}, NOW(),‘days’)<28,
DATETIME_DIFF({Expiration}, NOW(), ‘days’)>0),‘YES’, IF(DATETIME_DIFF({Expiration},NOW(),‘days’)<0,‘LATE’))
Oct 02, 2021 08:50 PM
Worked like a charm. Thank you thank you thank you.