+ Reply to Thread
Results 1 to 7 of 7

Compare 2 lists and output unmatched items using array

  1. #1
    Forum Contributor
    Join Date
    10-22-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    114

    Compare 2 lists and output unmatched items using array

    Hi all - I have 2 sheets("Price1) and ("Price2"), which contain 3 columns (ColumnA "Date" , columnB "Item#" , columnC "Price"). I need to compare Item and Price in both sheets and output a list of unmatched item and price in column E.

    Sheet("Price1")
    Date Item# Price Unmatched Items
    07/07/13 101 100.00
    07/30/13 102 156.00
    07/12/13 103 157.00
    07/05/13 104 125.00
    07/25/13 105 2,555.00
    07/14/13 106 251.00
    07/13/13 107 2,255.00


    Sheet("Price2")
    Date Item# Price Unmatched Items
    07/07/13 101 100.00 108 252.00
    07/30/13 102 156.00 109 252.00
    07/12/13 103 157.00 110 85.00
    07/05/13 104 125.00 111 26.00
    07/25/13 105 2,555.00 112 245.00
    07/14/13 106 251.00 113 5,625.00
    07/13/13 107 2,255.00 114 25.00
    07/03/13 108 252.00 115 256.00
    07/15/13 109 252.00
    07/05/13 110 85.00
    07/21/13 111 26.00
    07/08/13 112 245.00
    07/12/13 113 5,625.00
    07/19/13 114 25.00
    07/29/13 115 256.00



    Code needs help:

    Please Login or Register  to view this content.

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Compare 2 lists and output unmatched items using array

    Try this:-
    Please Login or Register  to view this content.
    Regards Mick

  3. #3
    Forum Contributor
    Join Date
    10-22-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    114

    Re: Compare 2 lists and output unmatched items using array

    MickG - Thank you for sharing your code. It works great, but it would be nice if you could kindly comment the steps and logic. Is it possible to tweak my code and make it work. It would be easier for me to follow my own logic.

  4. #4
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Compare 2 lists and output unmatched items using array

    This may help, Your code requires the Cols "B & C" to be combined to enable a comparison Between both sheets.I think it is possible but can gets quite complicated.
    Please Login or Register  to view this content.
    Regards Mick

  5. #5
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Compare 2 lists and output unmatched items using array

    Here's an alternative using ranges an arrays.
    Please Login or Register  to view this content.
    Regards Mick

  6. #6
    Forum Contributor
    Join Date
    10-22-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    114

    Re: Compare 2 lists and output unmatched items using array

    Hi MickG - Thank you very much for your help and being patient with me. Are there any good books, video tutorial that you would recommend in getting over the vba learning curve?

  7. #7
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Compare 2 lists and output unmatched items using array

    There's lots of help out there , but I think its mainly logical thinking & practice.
    I tend to store odd pieces of helpful code for later reference.

+ 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. |Need to compare 2 lists and then show output
    By Philla in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-16-2011, 02:06 PM
  2. Compare two email lists and output non-matching
    By Axle_Max in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-02-2009, 06:18 AM
  3. Compare Lists, Show unduplicated items
    By lil_ern63 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-29-2006, 05:54 PM
  4. [SOLVED] How do I compare two lists and choose the items that are in both?
    By laurabailey8 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-03-2006, 07:35 PM
  5. Compare 2 columns, and create a list of items that are in both lists
    By ruby2sdy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-08-2005, 07:05 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