On tab 1, I have a column where each cell in that column has a group of numbers, and another column where that group of numbers is associated with a name.
Example:
In order to achieve a true match, you must enforce the condition that each value looked for will begin and end with a comma. This string concatenation together with the wildcards will necessitate an array formula.
The array formula in E1 is =INDEX('Tab 1'!$B$1:$B$4,MATCH("*,"&D1&",*",","&'Tab 1'!$A$1:$A$4&",",0))
. This requires Ctrl+Shift+Enter rather than simply Enter. Once entered correctly, it can be filled down as necessary. You may wish to apply an IFERROR
wrapper to show an empty string instead os #N/A
.
Entered as an array formula (Ctrl-Shift-Enter) and copied down, this works:
=INDEX($B$1:$B$4,MATCH(TRUE,ISNUMBER(SEARCH(","&D8&",",","&$A$1:$A$4&",")),0))