+ Reply to Thread
Results 1 to 7 of 7

highlight differences of data on 2 sheets

  1. #1
    Registered User
    Join Date
    01-20-2014
    Location
    leicestershire
    MS-Off Ver
    Excel 2003
    Posts
    40

    highlight differences of data on 2 sheets

    hi,

    i have 2 sheets on the file attached and I would like to highlight the differences on the stocklist sheet compared to the sheet1 , using column "c" as the reference
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: highlight differences of data on 2 sheets

    Hi Steve,
    Try the attached.
    Attached Files Attached Files
    Last edited by AB33; 03-04-2014 at 10:32 AM.

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: highlight differences of data on 2 sheets

    you can use
    =COUNTIF(Stocklist!$C:$C,$C1)>0

    for 2007 or 2010 excel version
    Conditional Formatting

    Highlight applicable range >>
    C:C

    Home Tab >> Styles >> Conditional Formatting
    New Rule >> Use a formula to determine which cells to format
    Edit the Rule Description: Format values where this formula is true:

    =COUNTIF(Stocklist!$C:$C,$C1)>0

    Format… [Number, Font, Border, Fill]
    choose the format you would like to apply when the condition is true
    OK >> OK

    if you apply to sheet 1 , this will highlight all the cells that do not match sheet1 with the stocklist sheet based on column C
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Registered User
    Join Date
    01-20-2014
    Location
    leicestershire
    MS-Off Ver
    Excel 2003
    Posts
    40

    Re: highlight differences of data on 2 sheets

    hi , the attached file is good thank you
    I have just though that the other way around could have problems for me therefore could you please check to see if there are items is sheet1 that are not in sheet " stocklist"

    thank you both for your help

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: highlight differences of data on 2 sheets

    then apply to column C on the stocklist
    and change the count to
    =COUNTIF(Sheet1!$C:$C,$C1)>0

    now it will look down the stocklist and highlight where they match
    OR

    change to
    =COUNTIF(Sheet1!$C:$C,$C1)=0

    where they do not match

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: highlight differences of data on 2 sheets

    The reverse of the code is attached below the code and highlight the difference in sheet1.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Usually at work, in the UK
    MS-Off Ver
    Excel 2010
    Posts
    639

    Re: highlight differences of data on 2 sheets

    =match would be the function to use to compare data from two different data sets.

    List A (base data)
    list B (data to compare)

    =match(lookupvalue,lookuprange,0) 0 = exact match

    i.e.
    =match('ListA'!A1,'ListB'!C:C,0)

    then just run this down but keep the range the same

    B1 & 'ListB'!C:C
    C1 & 'ListB'!C:C
    Last edited by Sc0tt1e; 03-04-2014 at 11:23 AM.

+ 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. Replies: 1
    Last Post: 11-08-2013, 08:54 AM
  2. Replies: 9
    Last Post: 04-18-2013, 03:54 PM
  3. Replies: 1
    Last Post: 04-12-2013, 04:16 AM
  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