IF(AND(OR
Hello,
I am trying to turn a traffic light green based on the following criteria:
EMV Ready? = Yes
Payment Platform from Dispensers can only include Gilbarco FlexPay II and Gilbarco FlexPay IV.
Trying the following and getting an #INCORRECT ARGUMENT SET
=IF(AND([EMV Ready?]@row = "Yes", [Payment Platform from Dispenser]@row = "Gilbarco FlexPay IV", [Payment Platform from Dispenser]@row = "Gilbarco FlexPay II", "Green", "Red"))
Have tried using IF(AND(OR and didn't have much luck
Any help would be appreciated.
Sharon
Best Answer
-
Try this:
=IF(AND([EMV Ready?]@row = "Yes", OR([Payment Platform from Dispenser]@row = "Gilbarco FlexPay IV", [Payment Platform from Dispenser]@row = "Gilbarco FlexPay II")), "Green", "Red")
You have to close the AND statement and Include the OR embedded in the And statement and close them both before you can do the THEN, ELSE statements.
Let me know if that solved your issue.
Answers
-
Try this:
=IF(AND([EMV Ready?]@row = "Yes", OR([Payment Platform from Dispenser]@row = "Gilbarco FlexPay IV", [Payment Platform from Dispenser]@row = "Gilbarco FlexPay II")), "Green", "Red")
You have to close the AND statement and Include the OR embedded in the And statement and close them both before you can do the THEN, ELSE statements.
Let me know if that solved your issue.
-
Thank you so much. I struggle with IF(AND(OR statements. Starting to get a little clearer each time though.
-
Absolutely! Glad I could help.
Basically any And statement has to be enclosed AND( this, that) and any OR Statement has to be enclosed OR(This, that) before you can jump into the rest of the IF statement. But if you put one in inside the other, you have to close them both before completing the OR statement.
AND(this, this, OR(this, that))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!