+ Reply to Thread
Results 1 to 10 of 10

Combine and then compare 2 lists

  1. #1
    Registered User
    Join Date
    07-11-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    7

    Combine and then compare 2 lists

    I need to compare two price lists from 2 different merchants. While some items are common, some are offered only by Merchant 1 and some by only Merchant 2.

    What I need to do, is create a third list that contains all the items offered by either merchant (a Union, so to say) and contains the prices of those items as offered by both merchants. Each list is in a separate sheet

    Eg. If I have these two lists:

    List 1
    A -- $2.00
    B -- $1.50
    C -- $3.00

    List 2
    B -- $2.00
    C -- $2.50
    D -- $5.00
    E -- $1.50

    Then I need to create this list:
    Comparison
    A -- $2.00 -- NA
    B -- $1.50 -- $2.00
    C -- $3.00 -- $2.50
    D -- ..NA.. -- $5.00
    E -- ..NA.. -- $1.50

    Any help would be appreciated. I can use 'Consolidate Data' to get min/max/sum/average of the value etc, but I just want to see both values side by side.

    Thanks
    Last edited by shisa; 08-28-2013 at 03:53 AM. Reason: Add clarification

  2. #2
    Forum Contributor
    Join Date
    05-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    291

    Re: Combine and then compare 2 lists

    first consolidate both the data in other sheet then remove duplicate values & use vlookup function based on list
    Click on * below if you find this helpful

    Thanks,
    A

  3. #3
    Registered User
    Join Date
    07-11-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Combine and then compare 2 lists

    Thanks.

    But I was hoping for a quicker and more direct method, if there is any?

    Is there something similar to the Consolidate Data function, where we can just make it give the original values, instead of performing some function (min, max, count, average etc) on it?

  4. #4
    Forum Contributor
    Join Date
    05-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    291

    Re: Combine and then compare 2 lists

    removed ans .....

  5. #5
    Forum Contributor
    Join Date
    05-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    291

    Re: Combine and then compare 2 lists

    but I just want to see both values side by side.
    it is possible to use consolidate function but your above condition will ont match , other wise get macro to be run for this

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Combine and then compare 2 lists

    I suggest to create a unique list and then VLOOKUP-OR even better INDEX& MATCH to get your results..
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  7. #7
    Registered User
    Join Date
    05-21-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: Combine and then compare 2 lists

    Hi,

    May be this file could help you. open the file and run the macro.
    Attached Files Attached Files
    Thanks
    Babu.S

  8. #8
    Registered User
    Join Date
    07-11-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Combine and then compare 2 lists

    Quote Originally Posted by amy_d2 View Post
    removed ans .....
    I'm not sure what you mean by this. Could you clarify?

    Quote Originally Posted by Fotis1991 View Post
    I suggest to create a unique list and then VLOOKUP-OR even better INDEX& MATCH to get your results..
    Well, thanks. Though, INDEX&MATCH is doing the same thing as VLOOKUP, yes?

    Btw, I tried using the method linked to create Unique List, and it didn't work, there was just no result except blank cells.

    Currently, I'm thinking of getting the unique list using Consolidate data function, but would definitely appreciate a better method.

  9. #9
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Combine and then compare 2 lists

    Quote Originally Posted by shisa View Post

    Well, thanks. Though, INDEX&MATCH is doing the same thing as VLOOKUP, yes?

    Btw, I tried using the method linked to create Unique List, and it didn't work, there was just no result except blank cells.
    Formula in the link that i provided is an ARRAY formula. Did you confirm this as an ARRAY?



    -- Array(CSE) { }, formulae are confirmed with Control+Shift+Enter.
    Not just Enter.

    I strongly believe that INDEX & MATCH is much better than VLOOKUP. See here why!!

  10. #10
    Registered User
    Join Date
    07-11-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Combine and then compare 2 lists

    Thank you.

+ 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. [SOLVED] Compare two lists in Sheet 1 & 2 Column A, then combine the match adjacent cells in sheet3
    By Raulus in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-06-2013, 08:51 AM
  2. Combine and Compare two Lists
    By ANGRY_KOREA_MAN in forum Excel General
    Replies: 5
    Last Post: 06-03-2013, 05:52 PM
  3. Combine lists
    By morlindb in forum Excel General
    Replies: 8
    Last Post: 07-01-2010, 11:07 AM
  4. Compare and Combine two lists
    By WhiteZephyr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-09-2007, 10:00 AM
  5. Can I compare 2 lists to combine duplicate entries in new list?
    By Tinytall in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-13-2005, 01:06 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