+ Reply to Thread
Results 1 to 6 of 6

Tranpose column to rows with header

  1. #1
    Registered User
    Join Date
    09-12-2012
    Location
    Calgary, canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Tranpose column to rows with header

    this is the raw data
    wellname 101 date typeA tdepth bdepth
    wellname 101 date typeB tdepth bdepth
    wellname 102 date typeA tdepth bdepth
    wellname 102 date typeB tdepth bdepth
    wellname 102 date typeC tdepth bdepth
    wellname 103 date typeB tdepth bdepth
    wellname 103 date typeA tdepth bdepth
    wellname 103 date typeA tdepth bdepth
    wellname 103 date typeB tdepth bdepth
    wellname 103 date typeC tdepth bdepth

    this is what i would like to get
    wellname 101
    date typeA tdepth bdepth
    date typeB tdepth bdepth
    wellname 102
    date typeA tdepth bdepth
    date typeB tdepth bdepth
    date typeC tdepth bdepth
    wellname 103
    date typeB tdepth bdepth
    date typeA tdepth bdepth
    date typeA tdepth bdepth
    date typeB tdepth bdepth
    date typeC tdepth bdepth

    Any help would be appreciated

  2. #2
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Tranpose column to rows with header

    Hi
    are you raw data in 6 adjacent columns, or a single string in cells in one column?

  3. #3
    Registered User
    Join Date
    09-12-2012
    Location
    Calgary, canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Tranpose column to rows with header

    6 adjactent columns

  4. #4
    Registered User
    Join Date
    09-12-2012
    Location
    Calgary, canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Tranpose column to rows with header

    sorry about that it's actually 5, wellname belongs to 101 and so on. thanks again for getting back so soon.

  5. #5
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Tranpose column to rows with header

    Hi
    try this macro
    you'll need to set InputRange as the address of the range data to transpose, and OutputCell as the first cell of the range to copy to
    I have assumed you want date, type A etc in separate columns - let me know if you prefer it in a single string in one cell in the column

    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Tranpose column to rows with header

    Hi
    try this macro
    you'll need to set InputRange as the address of the range data to transpose, and OutputCell as the first cell of the range to copy to
    I have assumed you want date, type A etc in separate columns - let me know if you prefer it in a single string in one cell in the column

    Please Login or Register  to view this content.

  7. #7
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Tranpose column to rows with header

    apologies for the duplicate post - my computer froze for a while

  8. #8
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Tranpose column to rows with header

    Heres another way

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

+ 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