Mar 13, 2021 12:00 AM
I have been trying to figure out how to write this formula:
Where Category is any of “macOS”
AND checkbox Universal is checked
OR checkbox Intel is checked.
Here are two of my approaches:
IF(Category = "macOS", AND(Universal = 1), OR(Intel = 1), "true")
IF(AND(Category = "macOS", OR(Universal = 1, Intel = 1)), "true")
Can anyone tell me what I’m doing wrong?
Solved! Go to Solution.
Mar 13, 2021 09:58 AM
IF(AND(FIND('macOS',Category & ""), OR(Universal=1, Intel=1)), 'true')
Mar 13, 2021 03:24 AM
Hi @Michael_Tchong!
Your formula works like you describe for me.
In what way do you find that it doesn’t, so I can begin to understand what you are after?
Mar 13, 2021 07:37 AM
When I use that formula, I get a blank results field, see screenshot.
Mar 13, 2021 08:37 AM
For those records that you’re showing in your screenshot, the category field is not equal to macOS.
For those records, the category field is an array of many strings, one of which is macOS.
So you can’t say:
Category = "macOS"
Instead, you will need to use the FIND function like this:
FIND("macOS",Category & "") > 0
(It might also work without the & ""
part, but I’m not sure. Adding that definitely converts the array into a searchable string.)
Mar 13, 2021 09:58 AM
IF(AND(FIND('macOS',Category & ""), OR(Universal=1, Intel=1)), 'true')
Mar 13, 2021 04:03 PM
Bingo! That worked! Thanks heaps folks, this is a great community. :clap: :slightly_smiling_face: