May 17 2024 12:56 PM - edited May 17 2024 12:56 PM
Hi there,
I have a dataset where there are three different columns with names. I would like VLOOKUP or INDEX, etc to use those names (in 3 different columns) and search for all 3 against one column in another sheet. Once the matches are found, I'd like to get the contents in the column 8 rows to the right for all 3 names in one cell (so merged). Example, if I have names Sam, Sophia and Liz and the columns 8 rows to the right had the following
Sam - Jungle Group
Sophia - Safari Group
Liz - Forest Group
I'd like the input to return to be Jungle Group, Safari Group, Forest Group
Let me know if this is possible.
May 18 2024 06:46 AM
it is possible to achieve this in Excel using a combination of functions such as INDEX, MATCH, and TEXTJOIN (if you are using Excel 2016 or later, or Excel for Microsoft 365). Here is how you can set it up:
Step-by-Step Solution
Example
Assume the following structure:
Sheet1:
A | B | C |
Sam | Sophia | Liz |
... | ... | ... |
Sheet2:
A | ... | I |
Sam | ... | Jungle Group |
Sophia | ... | Safari Group |
Liz | ... | Forest Group |
... | ... | ... |
Formula
In Sheet1, use the following formula to get the combined groups for the names in columns A, B, and C:
=TEXTJOIN(", ", TRUE, INDEX(Sheet2!I:I, MATCH(A1, Sheet2!A:A, 0)), INDEX(Sheet2!I:I, MATCH(B1, Sheet2!A:A, 0)), INDEX(Sheet2!I:I, MATCH(C1, Sheet2!A:A, 0)))
Explanation:
Steps to Implement:
Notes:
This approach should help you dynamically search for names across three columns and retrieve and concatenate the corresponding group names from another sheet. The text and the steps are created with the help of AI.
My answers are voluntary and without guarantee!
Hope this will help you.
Was the answer useful? Mark as best response and like it!
This will help all forum participants.