index match not working
I have the following formula to find the closest match to my first column from two lists extracted from different programs, i.e. Shakedown list and Exto List. I have identified the unique identifiers and was going to build nested IF(HAS(INDEX(MATCH statements to return the near matches. However, my first formular returns an error when I know the second column ends with the same 5 characters as the first, and I expected a match.
FORMULA; =IF(HAS([Shakedown List]@row, "0.5"), INDEX([Exto List]:[Exto List], MATCH(RIGHT([Shakedown List]@row, 5), [Exto List]:[Exto List], 0)), "messy")
Best Answer
-
You probably want to use INDEX & COLLECT here, something along the lines of:
=IF(CONTAINS("0.5", [Shakedown List]@row), IFERROR(INDEX(COLLECT([Exto List]:[Exto List], [Exto List]:[Exto List], CONTAINS(RIGHT([Shakedown List]@row, 5), @cell)), 1), "Messy"))
Rough data:
Hopefully this helps, any problems/questions just post them up!
Answers
-
You probably want to use INDEX & COLLECT here, something along the lines of:
=IF(CONTAINS("0.5", [Shakedown List]@row), IFERROR(INDEX(COLLECT([Exto List]:[Exto List], [Exto List]:[Exto List], CONTAINS(RIGHT([Shakedown List]@row, 5), @cell)), 1), "Messy"))
Rough data:
Hopefully this helps, any problems/questions just post them up!
-
Try a CONTAINS instead of a HAS function as well as an INDEX/COLLECT instead of an INDEX/MATCH.
-
Thanks Nick and Paul now all I have to do is make this work for all my unique Identifiers.
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!