+ Reply to Thread
Results 1 to 10 of 10

Compare two sheets, highlight differences

  1. #1
    Forum Contributor
    Join Date
    03-20-2013
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    200

    Compare two sheets, highlight differences

    Hi

    i have sheet1 and sheet2 that has a list of products and their information

    sheet1 is month 1
    sheet2 is month 2

    i need to compare the two sheets, then highlight any differences on sheet2

    a completely new product needs to be highlighted in yellow
    and any differences on the same product to be highlighted in red

    i have attached a spreadsheet with my desired result

    thanks so much in advance
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    03-20-2013
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    200

    Re: Compare two sheets, highlight differences

    any help on the above would be much appreicated!
    thanks

  3. #3
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Compare two sheets, highlight differences

    It means you don't need extra column with formula to check the difference?
    - Battle without fear gives no glory - Just try

  4. #4
    Forum Contributor
    Join Date
    03-20-2013
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    200

    Re: Compare two sheets, highlight differences

    Hi Sir, i do not require the formula thanks,
    just differences highlighting

    yellow for a completely new line
    red for cell differences on the line that is on both sheets

  5. #5
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Compare two sheets, highlight differences

    Hi papasmurfuo9,

    Try this:

    Please Login or Register  to view this content.
    Regards,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  6. #6
    Forum Contributor
    Join Date
    03-20-2013
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    200

    Re: Compare two sheets, highlight differences

    Hi
    i have code to compare the two sheets now

    however i have a problem where if the product codes are not in order, it effects every row thereafter

    i need to use the product code as the index then compare that row,
    if the product is in sheet2, but in sheet1, then i need it highlighting

    thanks

  7. #7
    Forum Contributor
    Join Date
    03-20-2013
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    200

    Re: Compare two sheets, highlight differences

    Hi Trebor76
    your code works great, just the only problem i have if is the product codes are not in the same order on both sheets which is very possible

    thanks

  8. #8
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Compare two sheets, highlight differences

    See how file attached works
    Attached Files Attached Files
    Last edited by PCI; 11-11-2014 at 10:31 AM.

  9. #9
    Forum Contributor
    Join Date
    03-20-2013
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    200

    Re: Compare two sheets, highlight differences

    perfect thank you

  10. #10
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Compare two sheets, highlight differences

    your code works great, just the only problem i have if is the product codes are not in the same order on both sheets which is very possible
    The order shouldn't matter as the code finds what row on Sheet1 the product code is on and goes from there

    I'm glad PCI was able to provide you with a solution.

    Robert

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VBA to compare two sheets and highlight differences (basic test file attached)
    By Gti182 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-17-2015, 12:23 PM
  2. Replies: 9
    Last Post: 04-18-2013, 03:54 PM
  3. [SOLVED] Compare column on separate sheets in workbook and highlight differences
    By specialk610 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-22-2013, 03:57 PM
  4. Compare two Sheets - Add New Data, Update Differences, Highlight Void Data
    By R_S_6 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-18-2010, 04:03 AM
  5. Compare two sheets and highlight/mark differences
    By richarddd in forum Excel General
    Replies: 4
    Last Post: 04-03-2009, 09:54 AM

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