Go Back   TechArena Community > Software > Windows Software
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , ,

Sponsored Links



Changing rows into columns in excel

Windows Software


Reply
 
Thread Tools Search this Thread
  #1  
Old 25-12-2009
Member
 
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
Reply With Quote
  #2  
Old 25-12-2009
Eric B's Avatar
Member
 
Join Date: Apr 2008
Posts: 4,645
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.
Reply With Quote
  #3  
Old 25-12-2009
JonathanD's Avatar
Member
 
Join Date: May 2008
Posts: 4,325
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.
Reply With Quote
  #4  
Old 25-12-2009
ThoMas321's Avatar
Member
 
Join Date: Apr 2008
Posts: 4,078
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.
__________________
Ram requirement for various OS
Reply With Quote
  #5  
Old 25-12-2009
Member
 
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
Reply With Quote
  #6  
Old 25-12-2009
Sam.D's Avatar
Member
 
Join Date: Jan 2008
Posts: 3,735
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.
Reply With Quote
Reply

  TechArena Community > Software > Windows Software


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Changing rows into columns in excel"
Thread Thread Starter Forum Replies Last Post
Does by reducing the blank rows and columns will reduce Excel file size Wisaal MS Office Support 3 1 Week Ago 07:13 PM
I am not able to delete extra rows and columns in Microsoft Excel 2007 Tur^turro MS Office Support 3 3 Weeks Ago 01:27 PM
How to swap data between columns and rows in Excel Rao's Microsoft Project 1 08-01-2012 05:46 PM
Rows and Columns in Excel are Inverted Joachim Windows Software 3 31-03-2009 11:16 PM
Excel 2003 - require assistance importing rows instead of columns Zeeman28a Windows Software 3 26-02-2009 02:51 PM


All times are GMT +5.5. The time now is 04:11 PM.