
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
βJul 03, 2020 09:17 AM
Hi,
I am a little confused with exactly how to write an IF statement that checks that all three of the following conditions are true:
- {Status} = ββ
- {Replacement Required} = βYesβ
- IF(NOW() > WORKDAY({Date Created},2)
I have the first two worked out, but when I try to add the third condition I am struggling to get it to work.
Any assistance gratefully received.
Solved! Go to Solution.
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
βJul 03, 2020 05:07 PM
I think the IF()
in your initial parameters was slightly misleading. You donβt need the IF around it for it to work. I think this should do the trick:
IF(
AND(
{Status}="",
{Replacement Required}="Yes",
NOW() > WORKDAY({Date Created}, 2)
),
"true condition",
"false condition"
)
You might need to change the names of the fields in the formula to match your actual fields, as your screenshot shows different names.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
βJul 03, 2020 10:02 AM
Try something like this:
IF(AND({Status}="", {Replacement Required}="Yes", IF(NOW()>WORKDAY({Date Created}, 2)), "true condition", "false condition")

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
βJul 03, 2020 12:24 PM
Thanks for the response. I needed to put in an extra bracket and now have:
IF(AND({Status}="", {Replacement Required}=βYesβ, IF(NOW()>WORKDAY({Date Created}, 2))), βtrue conditionβ, βfalse conditionβ)
The strange thing is I get βfalse conditionβ returned in all cases. I have broken down all three components of the test and can see that there are rows that should return true. Any ideas?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
βJul 03, 2020 12:34 PM
In case my last response was confusing, I have made visible the columns actually referred to in the formula.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
βJul 03, 2020 05:07 PM
I think the IF()
in your initial parameters was slightly misleading. You donβt need the IF around it for it to work. I think this should do the trick:
IF(
AND(
{Status}="",
{Replacement Required}="Yes",
NOW() > WORKDAY({Date Created}, 2)
),
"true condition",
"false condition"
)
You might need to change the names of the fields in the formula to match your actual fields, as your screenshot shows different names.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
βJul 04, 2020 01:23 AM
Thanks Justin! That worked a treat.
