Forum Discussion
DaanVisser
Aug 17, 2023Copper Contributor
Looking up multiple different values with VLOOKUP?
Hi, I am currently working on an Excel file which should automatically place email addresses in a column based on names in a different column. Similar to this: To achieve this, the c...
- Aug 17, 2023
Let's say the sheet that lists the email addresses is named List.
In C2:
In Dutch:
=TEKST.COMBINEREN(";"; WAAR; X.ZOEKEN(TEKST.SPLITSEN(B2; ", "); List!A:A; List!B:B; ""))
In English:
=TEXTJOIN(";", TRUE, XLOOKUP(TEXTSPLIT(B2, ", "), List!A:A, List!B:B, ""))
HansVogelaar
Aug 17, 2023MVP
Let's say the sheet that lists the email addresses is named List.
In C2:
In Dutch:
=TEKST.COMBINEREN(";"; WAAR; X.ZOEKEN(TEKST.SPLITSEN(B2; ", "); List!A:A; List!B:B; ""))
In English:
=TEXTJOIN(";", TRUE, XLOOKUP(TEXTSPLIT(B2, ", "), List!A:A, List!B:B, ""))
DaanVisser
Aug 17, 2023Copper Contributor
Yesss that works, thank you so much Hans! Way easier than expected 😄