+ Reply to Thread
Results 1 to 5 of 5

How to change data rows to columns.

Hybrid View

  1. #1
    Registered User
    Join Date
    05-03-2012
    Location
    tampa
    MS-Off Ver
    Excel 2010
    Posts
    2

    How to change data rows to columns.

    I need the easiest method to convert column data to rows. I am not familiar with macro.

    Currently it looks like this:

    Provider | County
    John Smith | Pinellas
    Mary Smith | Pasco
    John Smith | Pasco
    Bob Doe | Dade
    Bob Doe | Lake
    John Smith | Orange

    I want it to look like this:

    Provider | County1 | County 2 | County 3
    John Smith | Pinellas | Pasco | Orange
    Mary Smith | Pasco
    Bob Doe | Dade | Lake


    I tried transpose but it just puts the data going across in rows but doesn't have the same results.

    Thanks!

  2. #2
    Registered User
    Join Date
    04-09-2012
    Location
    New Jersey
    MS-Off Ver
    Excel 2010
    Posts
    66

    Thumbs up Re: How to change data rows to columns.

    To change Row data to column, follow below steps:
    • Copy all rows data that you want to change.
    • Open a new sheet or choose a different place to paste.
    • Right click any where on the new sheet.
    • Choose Paste Special.
    • Then Check mark "Transpose"
    • Done

  3. #3
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: How to change data rows to columns.

    hello

    assume in column C
    array formula to create list w/out duplicates

    =IFERROR(INDEX(nameshere,MATCH(0,COUNTIF(nameshere,"<"&nameshere)-SUM(COUNTIF(nameshere,C$1:C1)),0)),"")
    assume in column D
    array formula to list all under the names drag horizontally first then down.

    =IFERROR(INDEX($B$2:$B$7, SMALL(IF($C2=nameshere, ROW($B$2:$B$7)-MIN(ROW($B$2:$B$7))+1, ""), COLUMN(A2))),"")
    note: I used named ranges..


    here's a sample datarowstocolumns.xlsx
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  4. #4
    Registered User
    Join Date
    05-03-2012
    Location
    tampa
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: How to change data rows to columns.

    Awesome, Thanks so much! Just want I was looking for. Could you explain the logic behind the function so I know how the function was compiled? Thank you!!

  5. #5
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: How to change data rows to columns.

    Hello
    the first code will search for the unique values (names ) and create a list
    i just used the named range here for all the range concerned.

    the second code will "search" the names row by row created by the code above in the column of names.
    then it will display the values row by row besides each name getting all values from that specific name.

    sorry about that i'm not that good in explaining.

+ 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