Combining AND & OR in a formula
I have a sheet with the following three columns:
--Was the question asked
--Answer 1 y/n
--Answer 2 y/n
I want the formula to turn the flag red (cell already formatted for flags) if the question was asked, and either answer 1 or answer 2 were no (aka, i need all the no's from everyone who was asked the question).
So far I was able to build the OR piece but I can't figure out how to add in the AND.
I have: =IF(OR([Answer 1]@row = 0, [Answer 2]@row = 0), 1, 0)
Thank you for your help!
Best Answer
-
Hi Emma,
Try something like this.
=IF(AND(OR([Answer 1 y/n]@row = 0; [Answer 2 y/n]@row = 0); [Was the question asked]@row = 1); 1)
The same version but with the below changes for your and others convenience.
=IF(AND(OR([Answer 1 y/n]@row = 0, [Answer 2 y/n]@row = 0), [Was the question asked]@row = 1), 1)
Depending on your country you’ll need to exchange the comma to a period and the semi-colon to a comma.
Did that work?
I hope that helps!
Be safe and have a fantastic week!
Best,
Andrée Starå
Workflow Consultant / CEO @ WORK BOLD
✅Did my post help or answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
Answers
-
Hi Emma,
Try something like this.
=IF(AND(OR([Answer 1 y/n]@row = 0; [Answer 2 y/n]@row = 0); [Was the question asked]@row = 1); 1)
The same version but with the below changes for your and others convenience.
=IF(AND(OR([Answer 1 y/n]@row = 0, [Answer 2 y/n]@row = 0), [Was the question asked]@row = 1), 1)
Depending on your country you’ll need to exchange the comma to a period and the semi-colon to a comma.
Did that work?
I hope that helps!
Be safe and have a fantastic week!
Best,
Andrée Starå
Workflow Consultant / CEO @ WORK BOLD
✅Did my post help or answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
Thank you so much, Andrée, that worked perfectly!
-
Excellent!
Happy to help!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
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
- 142 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!