+ Reply to Thread
Results 1 to 3 of 3

Macro that merges duplicate rows based on unique values - Need to edit current code

  1. #1
    Registered User
    Join Date
    05-30-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    3

    Macro that merges duplicate rows based on unique values - Need to edit current code

    Hiya,

    I was able to locate a macro that does exactly what I need; however, I need to make a slight change to the but I have limited vba knowledge and am hoping someone can help me.

    I have a spreadsheet that lists employees and their certifications. If an employee has multiple, then they will show up on as many rows as they have certifications.

    The macro I have merges them into one row with a line break, but only the first column's unique value has been merged while the other columns containing their own unique values are duplicated when I want them to show up only once. Example: Jane Doe shows up 2 times on the report. Her name should only show up once on the row, not 2 times with a line break.

    Here is the code. I have also attached an example of what I need. Because the attachment is a simpler version of the actual report, is it possible to specify which rows have the unique values and which ones don't? Any help is appreciated.

    Please Login or Register  to view this content.
    Attached Files Attached Files

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

    Re: Macro that merges duplicate rows based on unique values - Need to edit current code

    Change this line

    Please Login or Register  to view this content.
    INTO


    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-30-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Macro that merges duplicate rows based on unique values - Need to edit current code

    Oh wow, that was so simple. Thanks so much! That did exactly what I needed it to do.

    I've also tested it with more columns and it works flawlessly when I increase it by the number of columns I need to show only once

+ 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] Find count of Unique or Duplicate Values based on Concatenated values in 2 columns
    By bdicarlo1 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-03-2014, 12:42 AM
  2. [SOLVED] Macro to merge duplicate rows unique values - current macro not working
    By aimeecrystalaid in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-06-2013, 03:42 PM
  3. How to merge duplicate rows with some unique data with VBA code
    By katkur in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-04-2013, 11:17 AM
  4. 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
  5. [SOLVED] Edit Recorded Macro to filter column with about 200k rows based on a list of values.
    By rocksan in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-19-2012, 03:35 AM

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