Hi!
I want a field to show one of three values (Active, Expires in a week or Expired) depending on if the field “Startdatum” is after today, within a week or before today. How do I solve this?
Thanks!
Hi!
I want a field to show one of three values (Active, Expires in a week or Expired) depending on if the field “Startdatum” is after today, within a week or before today. How do I solve this?
Thanks!
Best answer by Kamille_Parks11
You need three nested IF() statements: one to check if the date field is filled in, one to test if its expired, and another to differentiate between those expiring within a week or sometime in the future.
IF(
{Startdatum},
IF(
{Startdatum} < TODAY(),
"Expired",
IF(
DATETIME_DIFF({Startdatum}, TODAY(), "days") <= 7,
"Expires in a week",
"Active"
)
),
"No date"
)
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.