I’m trying to extend a function that I previously got some help with on this forum.
My use case is a base for storing details on art exhibitions, with fields for a start and end date for each exhibition.
With help, I got the formula working when it was only checking 3 conditions - Has it started? Is it currently running? Has it finished?
I’ve now tried to nest another IF to test whether the exhibition will end soon (a certain number of days to the End_date), but I can’t get it to work. I’m wondering whether it’s even possible to do what I want!
The closest I’ve got are these two. The following will flag all currently open exhibitions as “Ending soon” even if they’re not.
IF(IS_AFTER({Start_date},TODAY()),
“Not yet started”,
IF(DATETIME_DIFF(TODAY(),{End_date},‘days’)<=3,
“Ending soon”,
IF(IS_AFTER({End_date},TODAY()),
“Currently running”,
“Already finished”)))
The following will flag all open exhibitions as “Currently running” even if they’re due to finish within 3 days.
IF(IS_AFTER({Start_date},TODAY()),
“Not yet started”,
IF(IS_AFTER({End_date},TODAY()),
“Currently running”,
IF(DATETIME_DIFF(TODAY(),{End_date},‘days’)<=3,
“Ending soon”,
“Already finished”)))
