Forum Discussion

DaanVisser's avatar
DaanVisser
Copper Contributor
Aug 17, 2023
Solved

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...
  • HansVogelaar's avatar
    Aug 17, 2023

    DaanVisser 

    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, ""))