Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
gh gh is offline
external usenet poster
 
Posts: 6
Default RowsToColumn

I am using Excel 2003. There are 50 rows by 20 columns in the
spreadshett. I need to start with the first row and move the cell
contents to a single column. Then move to the second row and append the
cell values to the column and so on. Is there a function for this?

TIA
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default RowsToColumn

Try this little macro:

Sub Macro1()
Dim rr As Range
j = 0
For Each rr In Selection
j = j + 1
Cells(j, 1) = rr.Value
Next
End Sub

If the following table is in B1:E3
1 2 3 4
5 6 7 8
9 10 11 12
then select and run and the result in column A is:
1
2
3
4
5
6
7
8
9
10
11
12


--
Gary's Student


"gh" wrote:

I am using Excel 2003. There are 50 rows by 20 columns in the
spreadshett. I need to start with the first row and move the cell
contents to a single column. Then move to the second row and append the
cell values to the column and so on. Is there a function for this?

TIA

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"