Results 1 to 6 of 6

Thread: Changing rows into columns in excel

  1. #1
    Join Date
    Dec 2009
    Posts
    71

    Changing rows into columns in excel

    I have some data in an excel sheet that i need to convert from a row to a column because i want to import that data to import into a database which accepts only this format. Consider the following example how my data looks like:
    Graeme smith 220 town1, City1
    Andrew clarke 810 town2, City2

    I want this data to look like

    Graeme
    smith
    220
    town1, City1
    Andrew
    clarke
    810
    town2, City2

  2. #2
    Join Date
    Apr 2008
    Posts
    4,642

    Re: Changing rows into columns in excel

    This can be done very easily you can transform any row into columns in excel you just have to select the whole row which you want to convert to columns and then right click in the column where you want the copied data select paste special under that you will see the Transpose checkbox and then click OK. Hope you got the solution.

  3. #3
    Join Date
    May 2008
    Posts
    4,345

    Re: Changing rows into columns in excel

    So you want to convert a row from your Excel sheet to a column. Don't worry excel provides some inbuilt functions such as paste special. you will have to use this function to change a row into column. For this just follow the following instructions which are listed below.

    1.Select the whole row which you want to be converted to column.
    2.Copy it Either use CTRL+C or right click the selected row and click copy.
    3.Now , Right click on the top most cell of the column in which you want to copy whole row.
    4.You will see an option named "Paste special", which will open a small new window , at the bottom of this new window there is an option called 'Transpose' check that.
    5.Now, click on the OK button.

    I hope you got the desired result.

  4. #4
    Join Date
    Apr 2008
    Posts
    4,088

    Re: Changing rows into columns in excel

    It would be a tedious job to move the data manually from a rows to column. In order to save the time and energy. The paste special command could be used to quickly transpose a column of data to a row of data or viceversa.

    * Copy the row of data.
    * Before pasting the copied data, right-click your first destination cell i.e.the first cell of the column into which you want to paste your data, and then click Paste Special.
    * In the Paste Special dialog box, check the Transpose checkbox, and then click OK.

  5. #5
    Join Date
    Dec 2009
    Posts
    71

    Re: Changing rows into columns in excel

    First of all i would like to thank you all for giving me replies in this matter , All your solutions worked for me, it works great for one row at a time is there any way to get it to work for all the rows or will this require a macro

  6. #6
    Join Date
    Jan 2008
    Posts
    3,755

    Re: Changing rows into columns in excel

    Yes, Transposing more than a single row at a time will require a macro. Try this macro, Change the second sheet to the sheet name you are transposing to. Do not forget that there are only 256 columns, so select only 256 rows at a time.

    Sub transp()
    Dim n As Long
    For n = 1 To Selection.Rows.Count
    Selection.Rows(n).Copy
    Sheets("Sheet2").Cells(1, n).PasteSpecial Transpose:=True
    Next n
    End Sub
    Last edited by Sam.D; 25-12-2009 at 06:13 PM.

Similar Threads

  1. Replies: 2
    Last Post: 01-02-2012, 07:13 PM
  2. How to swap data between columns and rows in Excel
    By Rao's in forum Microsoft Project
    Replies: 1
    Last Post: 08-01-2012, 05:46 PM
  3. Replies: 3
    Last Post: 31-12-2011, 05:04 PM
  4. Rows and Columns in Excel are Inverted
    By Joachim in forum Windows Software
    Replies: 3
    Last Post: 31-03-2009, 10:16 PM
  5. Replies: 3
    Last Post: 26-02-2009, 02:51 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
  •  
Page generated in 1,713,541,911.39761 seconds with 17 queries