+ Reply to Thread
Results 1 to 7 of 7

Address list: combine row information based on duplicates in column

  1. #1
    Registered User
    Join Date
    02-12-2015
    Location
    Illinois
    MS-Off Ver
    2010
    Posts
    4

    Address list: combine row information based on duplicates in column

    I have a list with columns for address, last name, first names, and a photo file name. The list is separated into rows for each individual. What I need is the list combined for residence in the same household/address with additional first names moved to new columns or combined into a single column with "," separating first names. Duplicate row(s) should be deleted. Some households have up to 5 additional first names - not sure that matters. There are 800+ rows so sorting by hand would be tedious. Thanks in advance.

    From:
    A B C D
    Address Last_Name First_Name PhotoID
    123 N. First St Smith Aaron 12345548.jpeg
    123 N. First St. Smith Beth 12345548.jpeg
    123 N. First St. Smith Carol 12345548.jpeg
    200 N. Second St. Jones Mark 67808708.jpeg
    300 N. Third St. Davis John 5432399.jpeg
    300 N. Third St. Davis Jane 5432399.jpeg

    To:
    A B C D E or E F
    Address Last_Name First_Name PhotoID
    123 N. First St Smith Aaron 12345548.jpeg Beth, Carol Beth Carol
    200 N. Second St. Jones Mark 67808708.jpeg
    300 N. Third St. Davis John 5432399.jpeg Jane Jane

  2. #2
    Registered User
    Join Date
    02-12-2015
    Location
    Illinois
    MS-Off Ver
    2010
    Posts
    4

    Re: Address list: combine row information based on duplicates in column

    I've attached a sample of the file.samplebook1.xlsx

  3. #3
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,414

    Re: Address list: combine row information based on duplicates in column

    Hi,

    See if this helps :
    Please Login or Register  to view this content.
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  4. #4
    Registered User
    Join Date
    02-12-2015
    Location
    Illinois
    MS-Off Ver
    2010
    Posts
    4

    Re: Address list: combine row information based on duplicates in column

    Thanks for a really quick response. That is really close. What I don't need is the last name "," first name in one column. I just need a last name in one column and then the first names in separate columns. I need to be able to pull first names separately into a mail merge after I have a corrected list.

    Also, when I run the macro with my full spreadsheet I get a "Subscript out of range" error. Not sure what that is about.

  5. #5
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,414

    Re: Address list: combine row information based on duplicates in column

    Hi Vendery,

    Try this new code :
    Please Login or Register  to view this content.
    For the error, make sure you have 2 sheets in your workbook. The result of the macro is output in the second sheet , ie Sheet(2)

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Address list: combine row information based on duplicates in column

    Try the attached
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    02-12-2015
    Location
    Illinois
    MS-Off Ver
    2010
    Posts
    4

    Re: Address list: combine row information based on duplicates in column

    Thank you GC Excell. Perfect. Thank you. I didn't have a second sheet, so I was getting the error. Once I added the sheet and ran the macro - perfect.

+ 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. Getting information from a list based on the first column
    By zehcoutinho in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-01-2014, 02:52 PM
  2. Replies: 2
    Last Post: 08-28-2012, 10:41 PM
  3. Excel 2007 : Combine information for duplicates
    By Hayden.hr in forum Excel General
    Replies: 1
    Last Post: 10-06-2010, 02:12 PM
  4. Replies: 4
    Last Post: 07-27-2010, 08:24 AM
  5. combine url and address column into linked addresses
    By erymer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-24-2007, 03:44 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