+ Reply to Thread
Results 1 to 5 of 5

Compare 2 lists

  1. #1
    Forum Contributor
    Join Date
    12-23-2013
    Location
    Hungary
    MS-Off Ver
    Excel 2013
    Posts
    331

    Compare 2 lists

    Hello,

    I would like to ask your support regarding comparing 2 lists.
    I need to compare the list of Material of worksheet Summary (column B) with the list of Material of worksheet SourceList (column C).
    If the Material of worksheet Summary is not exist on worksheet SourceList then I would need a comment ("Material is not exist in the SourceList") on worksheet Summary (at the linked cell, in column D), the background of cell should be red and the font color should be white.

    Note: The lastrow of Material (on both worksheets) is changing everyday and more 10.000 materials should be compared in the original file.
    See the details in the attached file.

    Do you have any idea how to do this?

    Thank you in advance any feedback!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Compare 2 lists

    Oops! Just noticed you're after a VBA solution, not a formula

    In D9
    =IF(ISNA(VLOOKUP(B9,SourceList!C$9:C$12,1,0)),"Material is not in the Sourcelist","")
    and copy down

    To highlight the cells use Condtional Formatting

    Select B9:D12

    Conditional Formatting
    New Rule
    Use a formula to determine...

    =ISNA(VLOOKUP($B9,SourceList!$C$9:$C$12,1,0))

    Format as required
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,833

    Re: Compare 2 lists

    Try:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  4. #4
    Forum Contributor
    Join Date
    12-23-2013
    Location
    Hungary
    MS-Off Ver
    Excel 2013
    Posts
    331

    Re: Compare 2 lists

    Thank you very much, working fine.

  5. #5
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,833

    Re: Compare 2 lists

    My pleasure.

+ 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: 2
    Last Post: 11-27-2016, 05:56 PM
  2. [Help] Compare Two Lists
    By paulocsm in forum Excel General
    Replies: 2
    Last Post: 09-27-2015, 05:17 PM
  3. Compare 4 Lists
    By postelrich in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-27-2011, 05:35 PM
  4. Compare 2 lists
    By Philla in forum Excel General
    Replies: 3
    Last Post: 02-16-2011, 04:09 PM
  5. Compare Lists
    By excelkeechak in forum Excel General
    Replies: 1
    Last Post: 02-23-2010, 09:31 PM
  6. [SOLVED] Compare two lists
    By ClaireView in forum Excel General
    Replies: 6
    Last Post: 01-09-2006, 05:10 PM
  7. [SOLVED] compare two lists
    By rob p in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-10-2005, 02:05 PM

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