Comparing two worksheets and highlight unmatched Data

Vignesh Rocks

Board Regular
Joined
Sep 17, 2012
Messages
104
Hi Team,

I have did a search for what i am looking for but I haven't got what i am exactly seeking. I am sure, here the experts can help me with this.

I have two worksheets named New and Old respectively and the datas would look like below.

New Sheet:

Employee NumberNameDate of Birth
123ABC01-Aug-1989
456DEF05-May-1986
789GHI06-Sep-1984
653JkL20-Mar-1987

<TBODY>
</TBODY>


Old Sheet:
Empl #StatusEmployee NamePlaceDOB
123PermanentABC. DN/A01-Aug-1989
456TemporaryDEFN/A07-Jun-1983
78900PermanentGHIN/A06-Sep-1984
6534Part-TimeJKLEN/A20-Mar-1987
548PermanentMNON/A21-Jun-1989

<TBODY>
</TBODY>
In the above, New sheet needs to compare with old sheet and the columns that needs to refer are Employee Number, Name and DOB.

If employee # is not matching then mark the entire row in Red since Employee # can be the Key to search in old sheet.

The thing here is, if any data that is not matching for a particular employee, then that cell has to be highlighted in Red and the matching data in Green.

Here to highlight, i have used the Font color but it would be great if we can do this as a fill color.

Please advice if this can be done.

Your help will be really appreciated.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Upvote 0
Hi Alansidman,

Thanks for your suggestion. I have tried the functions earlier and I would like to know if this is possible by automating it using VBA.



Thanks,
Vignesh
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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