+ Reply to Thread
Results 1 to 5 of 5

Converting multiple records (rows) into one record (row) using a unique identifier

  1. #1
    Registered User
    Join Date
    09-22-2008
    Location
    Australia
    Posts
    2

    Converting multiple records (rows) into one record (row) using a unique identifier

    Hi,

    I would like to combine values from multiple records into a single record using a unique identifier. In the example below 'ID' is the unique identifier.

    For example:

    COL1 COL2 COL3 COL4 COL5
    ID TITLE NAME DATE STATUS
    100001 Mr Smith 3/07/2006 Pending
    100001 Mr Smith 2/08/2006 Referral
    100001 Mr Smith 1/12/2006 Probation
    100001 Mr Smith 6/07/2007 Excluded
    100002 Mr Jones 1/12/2006 Pending
    100002 Mr Jones 3/04/2007 Probation
    100002 Mr Jones 6/07/2007 Excluded

    Result should look like:
    COL1 COL2 COL3 COL4 COL5 COL6 COL7 COL8 COL9 COL10 COL11
    ID TITLE NAME DATE_1 STATUS_1 DATE_2 STATUS_2 DATE_3 STATUS_3 DATE_4 STATUS_4
    100001 Mr Smith 3/07/2006 Pending 2/08/2006 Referral 1/12/2006 Probation 6/07/2007 Excluded
    100002 Mr Jones 1/12/2006 Pending 3/04/2007 Probation 6/07/2007 Excluded


    Sorry, the formatting is not aligned, but I hope you can understand what I mean. Any help or advice would be very much appreciated.

    Many thanx
    Last edited by oldchippy; 11-03-2008 at 07:02 PM.

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi,

    Welcome to the forum, I've assumed each ID only having a maximum of four records - see attached.

    Does that help?
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Registered User
    Join Date
    09-22-2008
    Location
    Australia
    Posts
    2
    Quote Originally Posted by oldchippy View Post
    Hi,

    Welcome to the forum, I've assumed each ID only having a maximum of four records - see attached.

    Does that help?
    Thank you for sending me such a quick reply. This was a very clever tip and you have given me a way of reducing over 25,000 records to less than 5,000 in a flat file I can analyse in a statistical software package. Thankyou!!!

    Kind regards,
    Brad

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Glad to hear it helped Brad - thanks for the feedback

  5. #5
    Registered User
    Join Date
    03-02-2014
    Location
    seoul
    MS-Off Ver
    Excel 2003
    Posts
    1

    Red face Re: Converting multiple records (rows) into one record (row) using a unique identifier

    Quote Originally Posted by oldchippy View Post
    Hi,

    Welcome to the forum, I've assumed each ID only having a maximum of four records - see attached.

    Does that help?
    Hi,

    Thanks a bundles for the questioner and lots of prayers for the one who answered, I was struck at the same problem in excel, tried many macros to convert but since I had more than 1 gb excel file, macro failed to process. The technique you mentioned has exactly solved my big problem.

    Atizaz Ali
    University of Seoul, Korea

+ 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. ADVANCED: Extracting unique records
    By UKNOWN in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-05-2007, 06:12 PM
  2. Advanced filter to show unique records
    By ResulG in forum Excel General
    Replies: 3
    Last Post: 12-04-2006, 09:06 AM
  3. Compiling into Unique Records
    By MetalUrge in forum Excel General
    Replies: 4
    Last Post: 10-06-2006, 07:22 AM
  4. Duplication issue when filtering unique records
    By AussieExcelUser in forum Excel General
    Replies: 3
    Last Post: 10-05-2006, 04:55 AM
  5. Replies: 0
    Last Post: 09-26-2006, 09:42 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