+ Reply to Thread
Results 1 to 3 of 3

combine multiple rows into one row based on unique id

  1. #1
    Registered User
    Join Date
    01-23-2019
    Location
    Scotland
    MS-Off Ver
    2010
    Posts
    2

    Red face combine multiple rows into one row based on unique id

    Hi - I need to convert a large spreadsheet with multiple rows for each unique-id into one row .

    Not sure if I need a macro but hoping someone can help.

    My data is currently in this format:

    ID Date of Order Order
    ORDER001 28/06/2005 APPLES
    ORDER001 11/07/2005 ORANGES
    ORDER001 15/07/2005 PEARS
    ORDER001 12/02/2016 BANANAS

    and I need it to look like this:

    ID Date of Order 1 Order 1 Date of Order 2 Order 2 Date of Order 3 Order 3 Date of Order 4 Order 4
    ORDER001 28/06/2005 APPLES 11/07/2005 ORANGES 15/07/2005 PEARS 12/02/2016 BANANAS

    many thanks - any help really appreciated!

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: combine multiple rows into one row based on unique id

    Use =B2&" "&C2 as a helper column D and then concatenate based on unique ID

    You need a UDF function to concatenate it. Formula for concat: =Concat_Unique(A2;Data!$A$2:$A$100;Data!$B$2:$B$100). Range A is the ID And D is the range to be concatenated. Change the red part to space only if you need just the space

    Please Login or Register  to view this content.
    Click the * to say thanks.

  3. #3
    Registered User
    Join Date
    01-23-2019
    Location
    Scotland
    MS-Off Ver
    2010
    Posts
    2

    Re: combine multiple rows into one row based on unique id

    Thanks so much - will give it a try!

+ 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] Combine rows of data based on multiple criteria?
    By hopegriffin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-26-2015, 12:54 PM
  2. Replies: 2
    Last Post: 06-11-2014, 11:14 AM
  3. Combine multiple rows into one with a unique identifier
    By fordco in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-19-2013, 07:04 PM
  4. Replies: 2
    Last Post: 02-06-2013, 04:44 AM
  5. [SOLVED] Combine multiple records onto one row based on unique name/surname in the first column
    By Anita7 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 09-13-2012, 07:26 AM
  6. Combine rows based on unique column
    By excel_champ in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-27-2012, 03:34 AM
  7. Combine rows of data into 1 cell based on unique identifier
    By jud_goh in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-11-2010, 05: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