How to compare two lists of text and provide a matching level in percentage

cga4200

New Member
Joined
Jul 27, 2014
Messages
1
Hello all,

I wish to compare a list of text (Name to Match) to a static list of text (Standard Name) and pull the best match from the static list along with a matching value in percentage.

The values under the Standard Name column are static values. The values under Name to Match are string values for which I would like to find the best match from Standard name column. For instance if under column Name to Match, I have Coca-Cola Company, the code should pull The Coca-Cola Company as the best match and provide an matching level of, let's say, 95%. The accuracy levels on the table an approximation of I would like the code to do.

Standard NameName to MatchMatching Standard NameAccuracy
The Coca-Cola CompanyGapThe Gap Inc.95
The Gap Inc.Coca-Cola CompanyThe Coca-Cola Company95
Bank of AmericaCoca-Cola FinancialThe Coca-Cola Company75
Countrywide Financial CorporationContrywideCountrywide Financial Corporation70%
AOL LLCAOL LLCAOL LLC100%
Six Flags IncTennis SuppliesNo Match
Northrop Gurman Corp.

<tbody>
</tbody>

I have tried using a VLOOKUP with the [range_lookup] parameter set to TRUE-Approximate Match, but it does not yield the desired results. I would like to use VBA to solve this problem, would somebody please point me in the right direction?

Thank you
AC
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Forum statistics

Threads
1,214,429
Messages
6,119,433
Members
448,897
Latest member
ksjohnson1970

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