IF statement based on cells in same row
I have a sheet where every row requires two approvals before it's fully approved. What would the formula be to make this work?
For example, approval column 1 is named "initial approval" and approval column 2 is named "COHS approval". Both cells are dropdowns with the options pending, approved, or denied.
I want the first column of the sheet to be "status" and this would say pending, approved, or denied, based on the formula pulling from the other two cells.
Best Answer
-
Hi @Jodi C your formula would be something like this:
=IF(AND([initial approval]@row = "approved", [COHS approval]@row = "approved"), "approved", IF(OR([initial approval]@row = "denied", [COHS approval]@row = "denied"), "denied", "pending"))Basically if both are approved then it equals approved, if one or the other equals denied then the status shows as denied, in any other case besides those two the status is pending.
Answers
-
Hi @Jodi C your formula would be something like this:
=IF(AND([initial approval]@row = "approved", [COHS approval]@row = "approved"), "approved", IF(OR([initial approval]@row = "denied", [COHS approval]@row = "denied"), "denied", "pending"))Basically if both are approved then it equals approved, if one or the other equals denied then the status shows as denied, in any other case besides those two the status is pending.
-
@ericncarr, that worked, thanks!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.1K Get Help
- 414 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!