+ Reply to Thread
Results 1 to 7 of 7

Comparing two sheets and highlight unmatched data

  1. #1
    Registered User
    Join Date
    09-21-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    31

    Thumbs up Comparing two sheets and highlight unmatched data

    Hi Team,

    I am here for another help. I have two sheets named new and master. I want to check the employee data are perfect in the newly added data (i.e. New tab).

    In New sheet there are 4 columns namely, Employee #, name, Address and Phone Number.

    In Master Sheet there are 4 columns namely, Employee Number, Name, Address and Employee Phone # in both the sheets. (there is a difference in the headings)

    First, it has to check whether the employee in new tab is available in master tab. If not it has to be highlighted in Red.

    Second, it has to check whether the name has been updated correctly in the new sheet comparing to master sheet. If not it has to be highlighted in Red.

    Third, it has to check whether the Address has been updated correctly in the new sheet comparing to master sheet. If not it has to be highlighted in Red.

    Fourth, it has to check whether the Phone Number has been updated correctly in the new sheet comparing to master sheet. If not it has to be highlighted in Red.

    Please note, there can be format changes and there could be spaces in a cell after the string. Macro has to ignore these format and spaces.

    Your help on this would be really appreciated.


    Thanks,
    Vignesh

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Comparing two sheets and highlight unmatched data

    attach a sample file with highlighted unmatched data
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    09-21-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    31

    Thumbs up Re: Comparing two sheets and highlight unmatched data

    Hi Patel,

    Sure, I have attached a sample file.

    Here all that i am looking is, new sheet has to match with the master sheet. If not, it has to highlight in Blue and the matching data has to highlight in Yellow. Could you please help me with this.

    Your help would be really appreciated!


    Thanks,
    Vignesh
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Comparing two sheets and highlight unmatched data

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-21-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    31

    Re: Comparing two sheets and highlight unmatched data

    Hi Patel,

    Thanks for your Prompt response. Your code is absolutely perfect and the only requirement here is, some datas are showing as unmatched due to spaces in cell. would it be possible to code as if it needs to ignore the spaces and formats... Please advice...


    Thanks,
    Vignesh
    Last edited by vignesh rocks; 10-16-2012 at 02:13 AM. Reason: Typo...

  6. #6
    Registered User
    Join Date
    09-21-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    31

    Re: Comparing two sheets and highlight unmatched data

    Hi Patel,

    Any luck on this? Please advice...


    Thanks,
    Vignesh

  7. #7
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Comparing two sheets and highlight unmatched data

    try so (eliminate , LookAt:=xlWhole)
    Set c = M.Find(cell.Value, LookIn:=xlValues)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1