This is how your formula should look:
IF(
DATETIME_DIFF(TODAY(),{Date of last check},'days') >= 7,
"Bad","Good"
)
Also, you can’t change another field with a formula. You will get “Bad” or “Good” as the result of this formula in the formula field itself.
If you need to change other fields, then you will need to use automations.
Wow, awesome, thanks ScottWorld!
Is there a way to have the field be blank if there’s no date yet listed in the Date of last check field?
Wow, awesome, thanks ScottWorld!
Is there a way to have the field be blank if there’s no date yet listed in the Date of last check field?
You could just change it to this:
IF(
{Date of last check},
IF(
DATETIME_DIFF(TODAY(),{Date of last check},'days') >= 7,
"Bad","Good"
))
Thanks again, I have one more tweak if I am thinking long term. You’ve been a saint with this help, thanks!
There is a field for frequency, daily, monthly, weekly, quarterly, yearly.
Is there a way to adapt this formula so that 7, would be variable depending on what is in the frequency field?
Thanks again, I have one more tweak if I am thinking long term. You’ve been a saint with this help, thanks!
There is a field for frequency, daily, monthly, weekly, quarterly, yearly.
Is there a way to adapt this formula so that 7, would be variable depending on what is in the frequency field?
You could replace the number 7 with a Switch function like this:
SWITCH(
{Frequency},
"Daily",1,
"Monthly",30,
"Weekly",7,
"Quarterly",120,
"Yearly",365
)
This would count days, since you specified ‘days’ as the unit specifier in the formula. The formula would be more complex if you wanted to switch the unit specifier to something different besides ‘days’ — you could potentially add another switch statement for the unit specifier.