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
- Smartsheet Customer Resources
- 63.1K Get Help
- 382 Global Discussions
- 212 Industry Talk
- 444 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 450 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 291 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!