Nested If/And but need and And/Or
I am trying to have the Opportunity Status ball automatically turn green when the four columns to the right are Green OR Gray. I can get the formula to work with just "Green", but when I try to put the OR "Gray" into the formula, it results in a yellow ball or unparseable.
=IF(AND([Commercial Business Case Completed]1 = "Green", [Technical Case Provided]1 = "Green", [Legal Documents Provided]1 = "Green", [CSR's Provided]1 = "Green"), "Green", "Yellow")
Yellow ball results with following formula:
=IF(AND([Commercial Business Case Completed]@row = "Green", [Commercial Business Case Completed]@row = "Gray", [Technical Case Provided]@row = "Green", [Technical Case Provided]@row = "Gray", [Legal Documents Provided]@row = "Green", [Legal Documents Provided]@row = "Gray", [CSR's Provided]@row = "Green", [CSR's Provided]@row = "Gray"), "Green", "Yellow")
#Unparsable Result for formula below:
=IF(AND([Commercial Business Case Completed]9 = "Green"or='Gray", [Technical Case Provided]9 = "Green"or="Gray", [Legal Documents Provided]9 = "Green"or="gray", [CSR's Provided]9 = "Green"or="Gray"), "Green", "Yellow")
Thank you in advance for any help.
Best Answer
-
Hi @ShariM
In order to add in the "or Gray" instruction, you will want to do that by using the OR function for each column.
Try this:
=IF(AND(OR([Commercial Business Case Completed]@row = "Green", [Commercial Business Case Completed]@row = "Gray"), OR([Technical Case Provided]@row = "Green", [Technical Case Provided]@row = "Gray"), OR([Legal Documents Provided]@row = "Green", [Legal Documents Provided]@row = "Gray"), OR([CSR's Provided]@row = "Green", [CSR's Provided]@row = "Gray")), "Green", "Yellow")
Broken Down:
=IF(AND
(OR([Commercial Business Case Completed]@row = "Green", [Commercial Business Case Completed]@row = "Gray"),
OR([Technical Case Provided]@row = "Green", [Technical Case Provided]@row = "Gray"),
OR([Legal Documents Provided]@row = "Green", [Legal Documents Provided]@row = "Gray"),
OR([CSR's Provided]@row = "Green", [CSR's Provided]@row = "Gray")),
"Green", "Yellow")
Let me know if you would like further explanation of any of these rules. I used the following Help Center articles that you might want to take a look at: IF Function / AND Function / OR Function
Cheers!
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Answers
-
Hi @ShariM
In order to add in the "or Gray" instruction, you will want to do that by using the OR function for each column.
Try this:
=IF(AND(OR([Commercial Business Case Completed]@row = "Green", [Commercial Business Case Completed]@row = "Gray"), OR([Technical Case Provided]@row = "Green", [Technical Case Provided]@row = "Gray"), OR([Legal Documents Provided]@row = "Green", [Legal Documents Provided]@row = "Gray"), OR([CSR's Provided]@row = "Green", [CSR's Provided]@row = "Gray")), "Green", "Yellow")
Broken Down:
=IF(AND
(OR([Commercial Business Case Completed]@row = "Green", [Commercial Business Case Completed]@row = "Gray"),
OR([Technical Case Provided]@row = "Green", [Technical Case Provided]@row = "Gray"),
OR([Legal Documents Provided]@row = "Green", [Legal Documents Provided]@row = "Gray"),
OR([CSR's Provided]@row = "Green", [CSR's Provided]@row = "Gray")),
"Green", "Yellow")
Let me know if you would like further explanation of any of these rules. I used the following Help Center articles that you might want to take a look at: IF Function / AND Function / OR Function
Cheers!
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
=IF(AND(OR([Commercial Business Case Completed]9 = "Green", [Commercial Business Case Completed]9 = "Gray"), OR([Technical Case Provided]9 = "Green", [Technical Case Provided]9 = "Gray"), OR([Legal Documents Provided]9 = "Green", [Legal Documents Provided]9 = "gray"), OR([CSR's Provided]9 = "Green", [CSR's Provided]9 = "Gray")), "Green", "Yellow")
-
Perfect. It worked just as I intended. Thank you.
-
Happy to help! :)
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!