Wildcard match against list of keywords

brncao

Board Regular
Joined
Apr 28, 2015
Messages
149
Objective: You are trying to reconcile the descriptions between two sources shown in the tables below (descriptions are associated by its CUSIP and Account Number) by performing a wildcard search for keywords. These are csv files that have been downloaded and imported into Excel. Case is insensitive.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Description
[/TD]
[TD]CUSIP
[/TD]
[TD]Account Number
[/TD]
[/TR]
[TR]
[TD]FHLMC CALLABLE 8/26/17 @100 1.26% 08/26/2019
[/TD]
[TD]ABC123
[/TD]
[TD]123456
[/TD]
[/TR]
[TR]
[TD]FHLMC CALLABLE 8/26/17 @100 1.26% 08/26/2019
[/TD]
[TD]ABC123
[/TD]
[TD]234567
[/TD]
[/TR]
[TR]
[TD]FNMA 1.7% 11/25/2020
[/TD]
[TD]XYZ123
[/TD]
[TD]234567
[/TD]
[/TR]
[TR]
[TD]GNMA CALLABLE 4/10/17 @ 100 1.20% 10/10/2020
[/TD]
[TD]DEF456
[/TD]
[TD]345678
[/TD]
[/TR]
</tbody>[/TABLE]


[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Description
[/TD]
[TD]CUSIP
[/TD]
[TD]Account Number
[/TD]
[/TR]
[TR]
[TD]FREDDIE MAC 8/26/17 @ 1.26%
[/TD]
[TD]ABC123
[/TD]
[TD]123456
[/TD]
[/TR]
[TR]
[TD]FANNIE MAE 11/25/2020 @ 1.7%
[/TD]
[TD]XYZ123
[/TD]
[TD]234567
[/TD]
[/TR]
[TR]
[TD]GINNIE 10/10/2020 @ 1.20%
[/TD]
[TD]DEF456
[/TD]
[TD]345678
[/TD]
[/TR]
[TR]
[TD]FREDDIE 8/26/17 @ 1.26%
[/TD]
[TD]ABC123
[/TD]
[TD]234567
[/TD]
[/TR]
</tbody>[/TABLE]

User creates and maintains this table below
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Keywords
[/TD]
[TD]Return
[/TD]
[/TR]
[TR]
[TD]Freddie, FHLMC,Federal Home Loan Mortgage
[/TD]
[TD]FHLMC
[/TD]
[/TR]
[TR]
[TD]Fannie,FNMA, Federal national mortgage
[/TD]
[TD]FNMA
[/TD]
[/TR]
[TR]
[TD]Ginnie, GNMA, government national mortgage
[/TD]
[TD]GNMA
[/TD]
[/TR]
</tbody>[/TABLE]
Commas are the delimiters (there may be spaces or no spaces after the comma).

Starting with the first row going down in table 1, Excel should return "FHLMC", "FHLMC", "FNMA", "GNMA" respectively.

Excel should also do the same with table 2.

It should then check if both are equal and return True/False.

Is this something that can be done using formulas only without resorting to VBA? It's a bit long-winded.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Forum statistics

Threads
1,223,911
Messages
6,175,325
Members
452,635
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top