+ Reply to Thread
Results 1 to 6 of 6

transpose data from columns into rows

  1. #1
    Registered User
    Join Date
    07-13-2010
    Location
    boca raton, florida
    MS-Off Ver
    Excel 2007
    Posts
    4

    transpose data from columns into rows

    Please help.. This is for a bill of materials. Each CPN (Customer part number) has up to 9 matching MPNs (Manufacturer part numbers). All MPNs for a CPN are in a single row.

    Need to transpone this:
    Item CPN Description | Designators |Quantity |MPN 1 | MAN 1 | MPN 2 | MAN 2 | MPN 3 | MAN 3
    1 |a001 |Desc001| 1,2 | 10 |11 | man11 |12 | man12 |13 | m1n13
    2 |a002 |Desc002| 7,5 | 30 |14 |man14 | 15 | man15
    3 |a003 |Desc003| 8,4 | 40 | 16 |man16


    To this (in a new sheet):
    (Each of the sets of MAN,MPN are transposed into new rows below, while Columns A:E are copied down)

    Line |Item |CPN |Description |Designators| Quantity| MPN |MAN
    1 |1 |a001|Desc001 |1,2 | 10 | 11 |man11
    2 |1 |a001 |Desc001 |1,2 | 10 | 12 |man12
    3 |1 |a001 |Desc001 |1,2 | 10 | 13 |m1n13
    4 |2 |a002 |Desc002 |7,5 | 30 | 14 |man14
    5 |2 |a002 |Desc002 |7,5 | 30 | 15 |man15
    6 |3 |a003 |Desc003 |8,4 | 40 | 16 |man16


    It looks better in the attachment
    Attached Files Attached Files
    Last edited by rylo; 07-14-2010 at 06:00 PM.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    re: transpose data from columns into rows

    Hi

    Try this. You will have to adjust the i variable details based on your real structure.

    Please Login or Register  to view this content.
    rylo

  3. #3
    Registered User
    Join Date
    07-13-2010
    Location
    boca raton, florida
    MS-Off Ver
    Excel 2007
    Posts
    4

    re: transpose data from columns into rows

    Perfect! does exactly what I need. You've saved us days of work.

    One thing though. For the part:
    Please Login or Register  to view this content.
    I changed it to
    Please Login or Register  to view this content.
    I need to have as many lines as I want in the pretranspose sheet
    It works, but what is the proper way to do it?

    Thanks again!
    Last edited by rylo; 07-13-2010 at 11:28 PM.

  4. #4
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    re: transpose data from columns into rows

    Cross-posted here: Ozgrid
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  5. #5
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    re: transpose data from columns into rows

    Hi

    Can you please review the forum rules. Specifically refer to the parts regarding cross posting, and code tags.

    Please Login or Register  to view this content.
    rylo

  6. #6
    Registered User
    Join Date
    07-13-2010
    Location
    boca raton, florida
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: transpose data from columns into rows

    Sorry about the cross-post, I'm new to forums.

+ 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