Combine 2 IF CONTAINS formulas searching 2 ranges
Needing some help.
I am running 2 sheets a master project sheet and an audit sheet populated off a form.
I have an IF CONTAINS formula that works to check a checkbox on the master project sheet when an audit is populated in the audit sheet with a unique number. =IF(CONTAINS(UN@row, {Audit Template Range 1}), 1, 0)
I want to in the master sheet check another check box when 2 criteria in that audit sheet are met on the same site. The unique number and review required. I tried the below and it check the checkbox but the second criteria does match Review Required
=IF(AND(CONTAINS(UN@row, {Audit Template Range 1}), CONTAINS("Review Required", {Audit Template Range 2})), 1, 0)
Best Answer
-
You would need a COUNTIFS instead.
=IF(COUNTIFS({Range 1}, CONTAINS(UN@row, @cell), {Range 2}, CONTAINS("Review Required", @cell))> 0, 1)
Answers
-
You would need a COUNTIFS instead.
=IF(COUNTIFS({Range 1}, CONTAINS(UN@row, @cell), {Range 2}, CONTAINS("Review Required", @cell))> 0, 1)
-
Thanks Paul that worked!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!