+ Reply to Thread
Results 1 to 4 of 4

how to transform data from row-base to column-base

  1. #1
    Registered User
    Join Date
    01-29-2009
    Location
    NYB
    MS-Off Ver
    Excel online
    Posts
    17

    how to transform data from row-base to column-base

    I have excel data like below

    A 12
    A1 34
    A 45
    A1 78
    A 45
    A1 76

    I want to transfer to below:
    A A1
    12 34
    45 78
    45 76

    this is a simplified sample, in the real data, there are 20 labels, from A1 to A20. however the data is like above, from A1 to A20 then repeat A1 to A20... total over 1 million rows.

    Thanks.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: how to transform data from row-base to column-base

    In C2 cell
    =IF(A2="","",A2&ROW())
    Drag it down

    Name the Column-C as Helper.

    Now you have 3 columns like the below

    First : Names
    Second: Numbers
    Third: Helper

    Select the Three column data and press Alt+D+P>>Next>>Next>>Finish.
    Drop Names in Pivot Column Headers
    Drop Numbers in Pivot Values (Change it to Sum Of Numbers if it comes as Count)
    Drop Helper in Pivot Row Labels

    Refer the attachment file for details.
    Attached Files Attached Files


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    01-29-2009
    Location
    NYB
    MS-Off Ver
    Excel online
    Posts
    17

    Re: how to transform data from row-base to column-base

    hi Sixthsense,

    thanks for the reply, that's very clever use of pivot table!

    however it is not exactly what I want to achieve. See my attachment excel. see attached excel file.

    Of course I could just use your solution and then do some manual copy&past.

    Thanks.
    Attached Files Attached Files

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: how to transform data from row-base to column-base

    In E2 cell - Array Formula Requires Ctrl+Shift+Enter
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Drag it go right and down

+ 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