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
- 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!