+ Reply to Thread
Results 1 to 2 of 2

Transposing data from multiple rows into single rows & multiple columns

  1. #1
    Registered User
    Join Date
    03-18-2009
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    1

    Transposing data from multiple rows into single rows & multiple columns

    Hi all,

    Just joined the community, so forgive me if I failed to understand any of the forum rules.

    My current spreadsheet has 2 columns:
    A contains Record Numbers
    B contains Code

    A B
    Record Code
    0001 AQ
    0001 AW
    0002 AR
    0003 AR
    0003 AT
    0003 AW
    0003 FD
    0003 FS
    0004 AT
    0004 AX
    0004 AR
    0005 AW

    There are duplicate rows for Record Numbers with multiple code entries without any consistency. One Record Number can have as many as 30 codes (and rows), or as few as one.

    I need to somehow collapse those multiple rows into a single row, simultaneously taking the Code entries from column B and aligning them horizontally across multiple cells.
    Example:

    A B C D E F
    Record Code Code2 Code3 Code4
    0001 AQ AW
    0002 AR
    0003 AR AT AW FD FS
    0004 AT AX AR
    0005 AW

    Thanks in advance!
    Last edited by VBA Noob; 03-18-2009 at 04:20 PM.

  2. #2
    Forum Contributor
    Join Date
    01-18-2005
    Location
    Auckland New Zealand
    MS-Off Ver
    Office Professional 2007
    Posts
    295

    Re: Transposing data from multiple rows into single rows & multiple columns

    Try the attached workbook
    Regards
    Mike
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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