+ Reply to Thread
Results 1 to 6 of 6

Consolidating similar rows with unique columns

  1. #1
    Registered User
    Join Date
    02-15-2013
    Location
    Gambier, OH
    MS-Off Ver
    Excel 2011 for Mac Version 14.4.3
    Posts
    10

    Consolidating similar rows with unique columns

    Hello,

    I need help creating a macro that will consolidate similar rows into one single row. I am attaching an example of the raw data on one tab, and the data I would like to have on another tab.

    My raw data includes the following columns that need to be the same when comparing rows:
    Last Name
    First Name
    MI
    Address
    City
    State
    ZIP
    Email
    Home Phone
    Cell Phone

    The "Number" column (first column) does not have to be considered when looking for similarities.

    The following columns will only appear once (or not at all) for each individual included in the spreadsheet:
    50 FS
    100 FS
    200 FS
    500 FS
    1000 FS
    1650 FS
    100 FL
    200 FL
    100 BK
    200 BK
    100 BR
    200 BR
    200 IM
    400 IM

    My goal is to combine individuals that appear more than once into one single row with all of their their times (numbers included under 50 FS, 100 FS, etc) combined under that same row.

    Thank you for taking the time to consider my problem!

    Fernando
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    02-15-2013
    Location
    Gambier, OH
    MS-Off Ver
    Excel 2011 for Mac Version 14.4.3
    Posts
    10

    Re: Consolidating similar rows with unique columns

    I think what I need is actually very similar to the question on the following thread: http://www.excelforum.com/excel-gene...e-columns.html

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Consolidating similar rows with unique columns

    On the link you attached the code used "Dictionary Object" unfortunately dictionary object will not work with this Mac. Not strictly true though, it works, but few people know how to code this object on Mac.

  4. #4
    Valued Forum Contributor
    Join Date
    03-21-2013
    Location
    cyberia
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: Consolidating similar rows with unique columns

    Here's a couple of codes for you.
    The first will work OK on a Mac but does require the data to be presorted as you posted. That's easily done if needed.
    The second in really only for your interest since it uses the scripting dictionary which in general doesn't work on a Mac. But this code doesn't need pre-sorted data.
    Both were tested on the data you posted in Sheets"Raw Data"), with consolidation on the (initially assumed empty) Sheets("sheet3") and Sheets("sheet4") respectively.
    Note also that the results may look different because the original formats haven't been transferred, and neither have the column headers. Both easily done if needed.
    Please Login or Register  to view this content.
    and
    Please Login or Register  to view this content.
    Last edited by kalak; 11-21-2014 at 10:34 PM.

  5. #5
    Registered User
    Join Date
    02-15-2013
    Location
    Gambier, OH
    MS-Off Ver
    Excel 2011 for Mac Version 14.4.3
    Posts
    10

    Re: Consolidating similar rows with unique columns

    That worked out perfectly, kalak. Thank you! I actually only tried the first formula and it did what I needed. The other sorting macro that stanleydgromjr helped me with a few years ago is still very useful, so I just run that first.

    Again, thank you for your help!

  6. #6
    Valued Forum Contributor
    Join Date
    03-21-2013
    Location
    cyberia
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: Consolidating similar rows with unique columns

    Thanks for the feedback.

+ 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 Duplicate Rows unique values into single rows for an infinite amount of columns/rows
    By aimeecrystalaid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-21-2013, 08:43 PM
  2. Replies: 4
    Last Post: 01-16-2013, 10:06 PM
  3. Help merging similar rows into columns
    By MR UZZI in forum Excel General
    Replies: 4
    Last Post: 11-26-2012, 12:16 AM
  4. Adding similar rows for different columns
    By riznarf in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 08-31-2011, 09:37 AM
  5. consolidating multiple rows of similar data
    By opticsnake in forum Excel General
    Replies: 2
    Last Post: 10-16-2009, 03:23 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