Home > Back-end >  How to map in a table column using partial text?
How to map in a table column using partial text?

Time:11-17

I have 2 tables. Table 1 is the main table but the name's are messy. I would like to use Table 2 to map in the Name_Simplified. I have tried xlookup with wildcards but I don't know how to apply it in reverse for this.

Any help greatly appreciated!

TABLE 1

Original Name
Amazon LA
Amazon LTD New York
Dallas Amazon
AMZ.com
AMZ online
Home Depot
The Home Depot

TABLE 2

Contains_Name Name_Simplified
Amazon Amazon
AMZ Amazon
Home Depot Home Depot

The Result I am looking for:

Original Name Name_Simplified
Amazon LA Amazon
Amazon LTD New York Amazon
Dallas Amazon Amazon
AMZ.com Amazon
AMZ online Amazon
Home Depot Home Depot
The Home Depot Home Depot

CodePudding user response:

You could use the Fuzzy Lookup Add-In for Excel and do a fuzzy match between the Original Name column in Table 1 and the Contains_Name column in Table 2. For matches with a high level of similarity, you can could then lookup the Name_Simplified value based off the matched Contains_Name value.

enter image description here

  • Related