INDEX Match throwing incorrect answers
I am trying to use a unique identifier by column, to reference another table that has that unique identifier in it and provide it's adjacent value from another column, by row.
This is the formula I'm using and it's giving me values in that list but the wrong value:
=INDEX({Hours}, MATCH([Combined Work Description]@row, {Comb. Work Description}))
Where Hours is on another sheet and is listing the hours value I want returned. The Combined Work Description is the unique value, then the Comb. Work Description is the entire column of options for what the row's value for Combined Work Description could be. What is going on????
Best Answer
-
Try adding the "search type" parameter into your MATCH formula and setting it to zero to force it to only find exact matches. The default setting for the MATCH formula finds close matches / assumes values in the range are sorted in ascending order. So, try:
=INDEX({Hours}, MATCH([Combined Work Description]@row, {Comb. Work Description}, 0))
See the MATCH function page for details:MATCH Function | Smartsheet Learning Center
Could also review the INDEX function to make sure it's how you want it:
Answers
-
Try adding the "search type" parameter into your MATCH formula and setting it to zero to force it to only find exact matches. The default setting for the MATCH formula finds close matches / assumes values in the range are sorted in ascending order. So, try:
=INDEX({Hours}, MATCH([Combined Work Description]@row, {Comb. Work Description}, 0))
See the MATCH function page for details:MATCH Function | Smartsheet Learning Center
Could also review the INDEX function to make sure it's how you want it:
-
@Courtney S. thank you!!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!