+ Reply to Thread
Results 1 to 3 of 3

How do I rearrange columns into rows?

  1. #1
    Registered User
    Join Date
    08-16-2017
    Location
    UK
    MS-Off Ver
    Windows 8
    Posts
    1

    How do I rearrange columns into rows?

    Hello,

    In Excel I have the methylation values for approx. 6000 probes in 6 samples. The data is displayed in three columns. Below is the data for the first probe:

    sample ID probe ID meth value
    Sample 1 cg1 0.103388772
    Sample 2 cg1 0.111199847
    Sample 3 cg1 0.113448206
    Sample 4 cg1 0.855967969
    Sample 5 cg1 0.796521705
    Sample 6 cg1 0.8253754

    Is there a method I can use in Excel to rearrange the data so that the probe IDs are the rownames and the sample IDs are the column IDs? I.e. so that it looks more like this:

    Sample 1 Sample 2 Sample 3 Sample 4 Sample 5 Sample 6
    cg1 meth value
    cg2
    cg3
    cg4
    cg5
    cg6
    cg7
    cg8

    Thank you!

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How do I rearrange columns into rows?

    You get better help on your question if you add a small excel file, without confidential information.

    Please also add manualy the expected result in your file.

    To Attach a File:

    1. Scroll down to the window below your post Additional Options
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    08-21-2017
    Location
    Makati, Philipines
    MS-Off Ver
    2016
    Posts
    3

    Re: How do I rearrange columns into rows?

    Try this:
    1. copy the whole data (7x3 cells).
    2. then select the range where you want to paste the data only that the rows and columns are reversed (3x7 cells).
    3. right click then under "Paste Special", select "Transpose"

+ 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. Rearrange Data from Rows to Columns
    By lilliput112 in forum Excel General
    Replies: 1
    Last Post: 08-03-2017, 05:48 PM
  2. [SOLVED] Rearrange data from rows to columns via Macro??
    By skylark332 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-29-2016, 07:10 PM
  3. Rearrange Rows into Columns
    By xtort81 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-11-2014, 03:38 PM
  4. Replies: 7
    Last Post: 02-27-2014, 03:54 AM
  5. Rows of Users to rearrange in Columns
    By dgdamay in forum Excel General
    Replies: 3
    Last Post: 09-18-2012, 07:28 AM
  6. Rearrange info in rows to columns - HELP!
    By LaVerne in forum Excel General
    Replies: 0
    Last Post: 06-20-2005, 04:40 PM
  7. Rearrange info in rows to columns - HELP!
    By LaVerne in forum Excel General
    Replies: 0
    Last Post: 06-20-2005, 04:39 PM

Tags for this Thread

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