Index/Match
I have two separate sheets that reference an employee roster, they are separated due to being different vendor company and employees on each sheet. They have the following data points.
Employee Name
Employee ID
Position
We have a roster being used by our supervisors that references details in either of these sheets when they enter a name into a specific field. I am currently using index/match on the roster to look up their Employee ID and Position. This is working perfectly; however since both "entities" are not on one sheet its giving me "no match" results for the employees not reference on the currently referenced sheet
The question is can I stack index/match function to look in separate sheets to return a matching result. For the most part, one of the sheets should always have a match that i should really never get a "no match" but i need to look and match against both sheets. Sorry if i'm rambling on
The existing function i am using is
=IF(ISBLANK([Officer Assigned]@row), "", INDEX({Roster Template Range 3}, MATCH([Officer Assigned]@row, {Roster Template Range 4}, 0)))
Answers
-
Hey @Davidp
To force the other INDEX/MATCH you can leverage the NoMatch# error using the IFERROR function. This function says execute your normal formula but if you encounter an error, 'do this'. In your case the 'do this' is the other Index/Match.
=IF(ISBLANK([Officer Assigned]@row), "", IFERROR(INDEX({Roster Template Range 3}, MATCH([Officer Assigned]@row, {Roster Template Range 4}, 0)),INDEX({other sheet equivalent to Range 3}, MATCH([Officer Assigned]@row, {other sheet equivalent Range 4},0))))
Will this work for you?
Kelly
-
@Kelly Moore Thank you so much for your incite on this. Your recommendation did the trick. I ran the line several times with no luck so I had to break it down one piece at a time to realize what I was doing wrong. Thank you so much for your assistance. I really enjoy learning this expanding on my skillset of writing functions.
🤩🤩🤩
-
I'm pleased you got it to work and even more pleased that you were able to dissect the formula to expand your own knowledge.
Kelly
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!