+ Reply to Thread
Results 1 to 8 of 8

Converting rows to columns through a unique ID.

  1. #1
    Registered User
    Join Date
    11-27-2013
    Location
    Cardiff
    MS-Off Ver
    Excel 2013
    Posts
    3

    Converting rows to columns through a unique ID.

    Hi there, I have a large set of data with unique ID's in column A and multiple names in column B. any idea how I can convert the data to multiple columns rather than rows ?

    example
    A B
    1560 John Smith
    1560 Dave Jones
    1560 Tom Edwards
    123 Jack Thompson
    123 Jeremy Evans


    How I want the data is.
    A B C D
    1560 John Smith Dave Jones Tom Edwards
    123 Jack Thompson Jeremy Evans

    Any ideas ?

  2. #2
    Forum Contributor
    Join Date
    09-07-2013
    Location
    chennai
    MS-Off Ver
    Excel 2010
    Posts
    114

    Re: Converting rows to columns through a unique ID.

    copy the B cell datas and past special in C cell click transpose in window box then ok...

    do this u can transpose the cell to cell..

  3. #3
    Forum Contributor
    Join Date
    09-07-2013
    Location
    chennai
    MS-Off Ver
    Excel 2010
    Posts
    114

    Cool Re: Converting rows to columns through a unique ID.

    copy the B cell datas and past special in C cell click transpose in window box then ok...

    do this u can transpose the cell to cell..

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Converting rows to columns through a unique ID.

    Use column C as a helper column with a formula like this:

    =A1&"_"&COUNTIF(A$1:A1,A1)

    then copy this down to the bottom of your data.

    Then list your unique IDs, say in column E, so you can have this formula in F1:

    =IFERROR(INDEX($B:$B,MATCH($E1&"_"$COLUMNS($F:F),$C:$C,0)),"")

    and you can copy this across and down as required.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    11-27-2013
    Location
    Cardiff
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Converting rows to columns through a unique ID.

    Hi Pete,

    Thanks for the response. The first formula worked and created a copy of the ID's. However the second formula brought up an error. And wont allow me to drag the formula through the spreadsheet. I will keep looking for the suitable formula.

    Cheers

    James

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Converting rows to columns through a unique ID.

    Or, you could just attach your workbook for faster problem-solving...

    Pete

  7. #7
    Registered User
    Join Date
    11-27-2013
    Location
    Cardiff
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Converting rows to columns through a unique ID.

    That would be the easy solution, However working for an education/school company I cannot post data due to data protection.

    James

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Converting rows to columns through a unique ID.

    Okay, well just check that you have typed the second formula correctly - you shouldn't get any error reported because of the IFERROR function, so if you do then it must be that the formula has not been formed correctly.

    Hope this helps.

    Pete

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 03-03-2014, 04:48 AM
  2. Merge Duplicate Rows unique values into single rows for an infinite amount of columns/rows
    By aimeecrystalaid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-21-2013, 08:43 PM
  3. Converting multiple columns to rows / Converting to Panel Data
    By Stuart11 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-14-2013, 05:50 AM
  4. Replies: 1
    Last Post: 11-29-2012, 06:24 PM
  5. Replies: 2
    Last Post: 05-08-2012, 07:17 PM

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