+ Reply to Thread
Results 1 to 3 of 3

Combine 2 lists about the same data

  1. #1
    Registered User
    Join Date
    08-09-2004
    Location
    auckland
    MS-Off Ver
    MS Office Professional Plus 2016
    Posts
    72

    Combine 2 lists about the same data

    I have two lists about properties in a specific area.

    One has general property details, the other has owners names. Both have the property's address.

    How do I combine the two lists so I have the names and the property details on one list?

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,885

    Re: Combine 2 lists about the same data

    If you have Excel 2010 or later version, you can do a simple table merge in Power Query. Here is the Mcode

    Please Login or Register  to view this content.
    Attached is a file showing it.
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Combine 2 lists about the same data

    If you do have Power Query then stop reading, Alan's solution
    above is much simpler. If you don't then here's an alternative.

    Observations: There are 200 properties of which only 65 have listed owners (occupiers). Some properties have multiple (up to 4) occupants.

    Is this a one-off merge or will it need to be repeated on a regular basis? Below are a series of manual steps to merge the files, but if this is something that has to be done regularly then a VBA solution would probably be more appropriate.

    The end result of the merge defined here is the insertion of an additional 8 columns A:H on the properties list which are populated with up to 4 contact/phone# pairs per property.

    Steps:
    1. Open victoria property 2 bed 5 year.csv
    2. Open Victoria owners 2 bed 5 years.csv
    3. Drag the tab of one workbook onto the other so that both worksheets are in one workbook (just my personal preference)
    4. Rename one tab "owners", the other tab "properties" - the brief names make it so much easier to see what's going on with formulas.
    5. SaveAs the workbook as "victoria.xlsx"
    6. On the "properties" worksheet insert 8 columns to the left of the current col-A. Label the columns in row-1: Contact-1, Phone-1, Contact-2, Phone-2, Contact-3, Phone-3, Contact-4, Phone-4.
    7. Enter the following array formula in properties!A2 - commit with CTRL-SHIFT-ENTER
      Formula: copy to clipboard
      Please Login or Register  to view this content.
    8. Copy A2 to C2, E2, G2
    9. Enter the following regular formula in properties!B2
      Formula: copy to clipboard
      Please Login or Register  to view this content.
    10. Copy B2 to D2, F2, H2
    11. Copy A2:H2 down to about row 250

    That's it - you should now have up to 4 contact names and phone numbers for each property. If there are blanks in all 8 columns then there is no corresponding owner/occupier for that particular address.

    The attached workbook implements the above steps.
    Attached Files Attached Files
    Last edited by GeoffW283; 03-22-2019 at 02:22 PM.

+ 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] Two lists, combine into one
    By HereComesTheBoom in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-02-2017, 06:04 AM
  2. [SOLVED] Combine 5 lists into one big list
    By leprince2007 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 12-23-2016, 01:28 PM
  3. [SOLVED] How to compare and combine data from new and old product lists?
    By jms1989 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 03-21-2014, 08:55 AM
  4. [SOLVED] Combine two lists
    By dianaschar in forum Excel General
    Replies: 4
    Last Post: 03-29-2013, 02:58 PM
  5. Combine lists
    By morlindb in forum Excel General
    Replies: 8
    Last Post: 07-01-2010, 11:07 AM
  6. Combine lists
    By rderkins in forum Excel General
    Replies: 2
    Last Post: 04-25-2010, 09:59 PM
  7. Please Help Combine to Two Lists
    By lostinformulas in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-31-2006, 12: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