Comparing data/strings in two columns

segran

Active Member
Joined
Aug 20, 2004
Messages
335
Hi,

I have two columns of data. The first column is a set of data entered incorrectly by users. The second column in a dataset that is correct, and is a smaller dataset.

I want to compare column 1 to the correct dataset, and in another column, enter the correct name.

For example,



<!-- ######### Start Created Html Code To Copy ########## -->

Excel Workbook
CDE
1Incorrect DataCorrect DataFinal result
2CANEBA GERARDCANEBA Gerard,USCANEBA Gerard,US
3SCF TECHNOLOGIES AS | BRUMMERSTEDT IVERSEN STEEN | FELSVANG KARSTEN | LARSEN TOMMY | LUETHJE VIGGOSCF TECHNOLOGIES A/S,DKSCF TECHNOLOGIES A/S,DK
4SAUDI ARABIAN OIL COSAUDI ARABIAN OIL COMPANYSAUDI ARABIAN OIL COMPANY
5SHELL OIL COShell Oil CompanyShell Oil Company
Sheet1




<!-- ######### End Created Html Code To Copy ########## -->


Please can you give me a formula or macro that looks at the strings in the cell, and finds a link, and picks up the most relevant/correct data.

Thank you
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Forum statistics

Threads
1,224,520
Messages
6,179,266
Members
452,902
Latest member
Knuddeluff

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