Hello! How can I work an OR statement into this formula? I need it to look at 6 different columns.

=IFERROR(INDEX(COLLECT({Provider being reviewed}, {MRN 1}, CONTAINS(@cell, MRN@row)), 1), "")
Best Answer
-
Hi @Lea722,
It is probably easier to do this with a helper JOIN formula column:
=JOIN([MRN 1]@row:[MRN 6]@row, " ")
You can then use a single formula to grab the provider name from finding the MRN value in this column:
=INDEX(COLLECT({Provider being reviewed}, {Join column}, CONTAINS(MRN@row, @cell)), 1)
Sample data:
Sample lookup sheet:
Hope this helps, but if you've any problems/questions then just let us know!
Answers
-
Hi @Lea722,
It is probably easier to do this with a helper JOIN formula column:
=JOIN([MRN 1]@row:[MRN 6]@row, " ")
You can then use a single formula to grab the provider name from finding the MRN value in this column:
=INDEX(COLLECT({Provider being reviewed}, {Join column}, CONTAINS(MRN@row, @cell)), 1)
Sample data:
Sample lookup sheet:
Hope this helps, but if you've any problems/questions then just let us know!
-
Thank you, Nick! This worked like a charm :)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.9K Get Help
- 429 Global Discussions
- 147 Industry Talk
- 487 Announcements
- 5.2K Ideas & Feature Requests
- 86 Brandfolder
- 151 Just for fun
- 74 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 305 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!