VBA Match Text With Different layout

jamesiliff

New Member
Joined
Oct 31, 2016
Messages
5
Hello

I have two worksheets with data that I need to compare.

In sheet1 the data looks like this (screenshot below). Notice that the order of the values in column AG can change.


-- removed inline image ---



In sheet 1, I need to compare the names and their respective values with the names and values in sheet 2.
The data in sheet 2 looks like this (screenshot below). Notice that the names are broken out for each value.


-- removed inline image ---


If the two sets of data do not match I need to color the name in sheet 1.

Matching example:
Sheet 1: Todd 54, DC
Sheet 2: Todd 54, DC
or
Sheet 1: Todd DC, 54
Sheet 2: Todd 54, DC

Not matching example:
Sheet 1: Todd 54, DC
Sheet 2: Todd AB, 21
or
Sheet1: Todd N/A
Sheet 2: Todd 54, DC

Thanks
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,223,911
Messages
6,175,323
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