+ Reply to Thread
Results 1 to 4 of 4

How to merge two lists

Hybrid View

  1. #1
    Registered User
    Join Date
    07-28-2018
    Location
    Germany
    MS-Off Ver
    365 ProPlus
    Posts
    4

    How to merge two lists

    Hi everyone,

    I would like to merge two lists for which the individual items might differ to some extent. Let's say two price lists, one with prices for 2017 one with prices for 2018. Some products appear in both years, but some only in one. The list should list all products and leave price cells blank if the products were not listed (sold) in that respective year. How would I go about it?

    I'll attach a sample sheet, but here's the idea in brief:

    List 1:
    | Price 2017
    Product A 11 USD
    Product C 33 USD
    Product D 44 USD

    Liste 2:
    | Price 2018
    Product B 25 USD
    Product C 38 USD
    Product E 59 USD

    Merged list:
    | Price 2017 Price 2018
    Product A 11 USD
    Product B 25 USD
    Product C 33 USD 38 USD
    Product D 44 USD
    Product E 59 USD
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,745

    Re: How to merge two lists

    Try this in B14, fill down and across.
    Formula: copy to clipboard
    =IFERROR(1/(1/SUMIFS(INDEX($A$2:$E$9,,MATCH(B$13,$A$1:$E$1,0)),INDEX($A$2:$E$9,,MATCH(B$13,$A$1:$E$1,0)-1),$A14)),"")
    Dave

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,745

    Re: How to merge two lists

    Unfortunately this is all I have been able to come up with for the unique Products. Array enter this in A14 and fill down until you get blanks. If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    =IFERROR(INDEX(T(INDIRECT(TEXT(MODE.MULT(IF(ISTEXT($A$2:$E$9),10^5*ROW($A$2:$E$9)+COLUMN($A$2:$E$9)),
    IF(ISTEXT($A$2:$E$9),10^5*ROW($A$2:$E$9)+COLUMN($A$2:$E$9))),"R0C00000"),FALSE)),
    SMALL(IF(MATCH(T(INDIRECT(TEXT(MODE.MULT(IF(ISTEXT($A$2:$E$9),10^5*ROW($A$2:$E$9)+COLUMN($A$2:$E$9)),
    IF(ISTEXT($A$2:$E$9),10^5*ROW($A$2:$E$9)+COLUMN($A$2:$E$9))),"R0C00000"),FALSE)),
    T(INDIRECT(TEXT(MODE.MULT(IF(ISTEXT($A$2:$E$9),10^5*ROW($A$2:$E$9)+COLUMN($A$2:$E$9)),
    IF(ISTEXT($A$2:$E$9),10^5*ROW($A$2:$E$9)+COLUMN($A$2:$E$9))),"R0C00000"),FALSE)),0)=
    ROW(INDIRECT("1:"&ROWS($A$2:$E$9)*2)),ROW(INDIRECT("1:"&ROWS($A$2:$E$9)*2))),ROWS(A$14:A14))),"")

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,031

    Re: How to merge two lists

    You could do this easily with Power Query (Get & Transform). Let me know if you would like to know how.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

+ 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. Merge lists with headings
    By theorize99 in forum Excel General
    Replies: 7
    Last Post: 12-26-2016, 01:45 PM
  2. Two lists - merge into one
    By baiaz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-08-2016, 02:56 AM
  3. merge two lists together
    By wlan in forum Excel General
    Replies: 1
    Last Post: 02-25-2012, 01:55 PM
  4. Merge two e-mail lists
    By saadeet in forum Excel General
    Replies: 9
    Last Post: 06-11-2011, 08:41 AM
  5. a sort of merge of two lists...?
    By creosote3 in forum Excel General
    Replies: 15
    Last Post: 02-28-2011, 07:11 PM
  6. How can I merge different lists in Excel?
    By Nancie in forum Excel General
    Replies: 1
    Last Post: 01-06-2006, 09:40 AM
  7. Compare 2 lists and merge
    By sanjay in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-12-2005, 03:05 PM

Tags for this Thread

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