+ Reply to Thread
Results 1 to 14 of 14

Compare 2 different lists and create a new table with the data

  1. #1
    Registered User
    Join Date
    10-29-2024
    Location
    Athens
    MS-Off Ver
    2013
    Posts
    5

    Post Compare 2 different lists and create a new table with the data

    Hello everybody, I am new here. I have 2 lists representing data from my company, which more specifically are for the years 2023 and 2024 the sold items per customer, alongside with the quantity of items purchased and the total price. What i want, is to compare those 2 lists and create a new list or table with data from both lists, in ascending order with the highest value purchased from each customer. I will attach a test file i created which is very similar to my data. Really looking forward to an answer.

    test.xlsx
    Last edited by DionV98; 10-29-2024 at 09:26 AM.

  2. #2
    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. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,209

    Re: Compare 2 different lists and create a new table with the data

    Welcome to the forum.

    Are you really using Excel 2013?

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. The sample layout accurately matches that of your real data. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    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.

  3. #3
    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. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,209

    Re: Compare 2 different lists and create a new table with the data

    Thanks for adding a workbook, however you have not includesd a manual mock-up of the results data. Please add this to show what we are aiming for. Thanks.

  4. #4
    Registered User
    Join Date
    10-29-2024
    Location
    Athens
    MS-Off Ver
    2013
    Posts
    5

    Re: Compare 2 different lists and create a new table with the data

    Thank you for your quick response! I just added to my file the result as i would want it (or somehow similar to it). I hope this helps. Thank you!

    *I editted the post and re-add it

  5. #5
    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. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,209

    Re: Compare 2 different lists and create a new table with the data

    Are you really using Excel 2013?

  6. #6
    Registered User
    Join Date
    10-29-2024
    Location
    Athens
    MS-Off Ver
    2013
    Posts
    5

    Re: Compare 2 different lists and create a new table with the data

    Yes, I am using this Pro version of Excel

  7. #7
    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. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,209

    Re: Compare 2 different lists and create a new table with the data

    OK - this makes it harder. I'll have a look.

  8. #8
    Registered User
    Join Date
    10-29-2024
    Location
    Athens
    MS-Off Ver
    2013
    Posts
    5

    Re: Compare 2 different lists and create a new table with the data

    Thank you! At least, something that could help and be a great start for me would be if i could somehow bind all the data for each customer (ID,Products etc) so that i can sort them but without losing the initial stracture. I thought about making 1 table for each customer, but that would take ages as i think of it since they are around 100 this time just for this group of products.

  9. #9
    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. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,209

    Re: Compare 2 different lists and create a new table with the data

    Would a VBA solution be acceptable? Someone might be able to do this easier that way for you.

  10. #10
    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. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,209

    Re: Compare 2 different lists and create a new table with the data

    Also, please be aware that any solution will not be able to merge cells for you - cell merging should be avoided at all costs.

  11. #11
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,281

    Re: Compare 2 different lists and create a new table with the data

    Dear DionV98 > I have seen with your data. It's not seems data structures are correctly. If you require changes in data structure, please confirm.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  12. #12
    Registered User
    Join Date
    12-30-2020
    Location
    Here
    MS-Off Ver
    M365
    Posts
    63

    Re: Compare 2 different lists and create a new table with the data

    This is you requested VBA macro.
    but, there is no merge cells and formatting cells.
    Attached Files Attached Files
    Last edited by mojirhi; 10-31-2024 at 10:10 AM.

  13. #13
    Registered User
    Join Date
    10-29-2024
    Location
    Athens
    MS-Off Ver
    2013
    Posts
    5

    Re: Compare 2 different lists and create a new table with the data

    Thank you all very much! For now, i did it manually, even though it took me a lot of time, it is ok for now. When there is a new need to compare a huge amount of data, maybe I will check back here to find a way.

  14. #14
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,281

    Re: Compare 2 different lists and create a new table with the data

    Instead of manually work, kindly go with this file. I changes your data structure. It may be help for you in future.
    See sheet compair1 & compair2 [two type of result]
    Firstly i extract unique pr1, pr2 ... so on
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    by one time pressing shift+ctrl+enter
    in Q2 apply data validation you can selete code.
    2023 & 2024 year : apply simple sumifs formula.
    File attached for your ref.
    Attached Files Attached Files

+ 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: 05-17-2018, 08:44 PM
  2. [SOLVED] Compare two tables to create a third table of unique data
    By M-Tommo in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-17-2017, 05:17 AM
  3. [SOLVED] How to create a fill-in form that takes 2 data from dropdown lists and add them to a table
    By koko191 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 10-11-2016, 02:03 AM
  4. Compare two lists in excel and create new list with missing values
    By brian53199 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-21-2013, 12:32 PM
  5. Replies: 1
    Last Post: 08-26-2013, 07:27 AM
  6. compare two lists and create a third with the difference
    By pancho villa in forum Excel General
    Replies: 3
    Last Post: 03-07-2010, 02:01 AM
  7. [SOLVED] 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

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