+ Reply to Thread
Results 1 to 4 of 4

Combining duplicates and grouping unique values

  1. #1
    Forum Contributor
    Join Date
    03-26-2014
    Location
    Kentucky
    MS-Off Ver
    Excel 2013
    Posts
    128

    Combining duplicates and grouping unique values

    I am in need of help developing a code that will combine data entries. The program I use gives me an excel file that lists patients and the tests that they are ordered for multiple times. Therefore if one patient is ordered for multiple tests then that patient will be listed again for each test. I need a code that will leave only a single entry for each patient yet combine the tests that are ordered in the last column. I have attached a workbook that gives an example of a "before" and "after" in separate sheets. If possible, I would like for the code to leave the original sheet in its original form and post the output to a new sheet within the same workbook.

    Combining duplicates and grouping methods.xlsx

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Combining duplicates and grouping unique values

    Please Login or Register  to view this content.
    Last edited by rcm; 04-08-2015 at 02:35 PM. Reason: typos

  3. #3
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: Combining duplicates and grouping unique values

    Try

    Please Login or Register  to view this content.
    Please click the * below if this helps

  4. #4
    Forum Contributor
    Join Date
    03-26-2014
    Location
    Kentucky
    MS-Off Ver
    Excel 2013
    Posts
    128

    Re: Combining duplicates and grouping unique values

    Great! Thank you both! Works perfectly!

+ 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] Macro to find duplicates, concatenate Unique Values, then delete old duplicates
    By lesoies in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-17-2013, 04:32 PM
  2. Replies: 6
    Last Post: 03-29-2012, 12:16 AM
  3. Combining Values in rows and keeping unique values (adv. filtering?)
    By nguyeda in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-26-2011, 01:48 PM
  4. Macro to remove duplicates values and keep unique values bases on multiple criteria
    By Ricker090 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-16-2011, 04:37 PM
  5. Calculating STDEV for unique values in grouping query
    By eonizuka in forum Access Tables & Databases
    Replies: 0
    Last Post: 03-25-2010, 03:18 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