Aug 30, 2023 01:45 PM
I have this IF Statement Formula:
Aug 31, 2023 03:44 AM
This is really only going to work if you only have these two options because you have to test both possible orders they can occur in within the string. The more options you add, the more possible orders you are going to need to test and the messier the formula will become.
IF({UNH Facilities}= "UNH Facilities - GH Cleared",
"🟣",
IF({UNH Facilities}= "UNH Facilities - Supplying Items",
"🟠",
IF(OR({UNH Facilities}= "UNH Facilities - Supplying Items, UNH Facilities - GH Cleared",{UNH Facilities}= "UNH Facilities - GH Cleared, UNH Facilities - Supplying Items"),
"🟣🟠",
BLANK()))
)
Sep 05, 2023 08:08 AM
Thanks for the suggestion, I really appreciate it! I do only have those options. A colleague came up with this, which seems to work too:
IF(
{UNH Facilities}= "UNH Facilities - GH Cleared",
"🟣",
IF({UNH Facilities}= "UNH Facilities - Supplying Items",
"🟠",
IF(AND(SEARCH("UNH Facilities - GH Cleared",{UNH Facilities})>0, SEARCH("UNH Facilities - Supplying Items",{UNH Facilities})>0),
"🟣 🟠 ")
)
)