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
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!