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.
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
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
- Smartsheet Customer Resources
- 63K Get Help
- 380 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 305 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!