IF OR IF Returning two different values based on cell input
I have one cell that can have multiple values. I need a formula to return one value if one set of criteria are met, another value if only one of those values is different. I know it's a syntax issue that I'm not quite understanding correctly.
I have the following formula working:
=IF(AND(Priority@row = "1 Urgent", [Update Required]@row = 1, [ECN/PCN Compliant]@row = 0), 1, "")
=IF(AND(Priority@row = "2 High", [Update Required]@row = 1, [ECN/PCN Compliant]@row = 0), 2, "")
Priority is a drop down, Update Required and ECN/PCN compliant are both checkboxes.
I would like them to both be in the same formula with it returning the value 1, 2 or BLANK.
Best Answer
-
Try something like this...
=IF(AND([Update Required]@row = 1, [ECN/PCN Compliant]@row = 0), IF(Priority@row = "1 Urgent", 1, 2))
Answers
-
Try something like this...
=IF(AND([Update Required]@row = 1, [ECN/PCN Compliant]@row = 0), IF(Priority@row = "1 Urgent", 1, 2))
-
Awesome. This is so much simpler than what I was trying to conjure up myself. Thank you, Paul!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 494 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!