Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Move Column data to rows


Hi Sirs and Madams

I have a list of roughly a thousand numbers in one column, I would lik
to know how to take those numbers and put them into one row and column
with only a comma seperating them.

e.g.

17205
17206
17207
17216
17218
17219
17221
17225

-- 17205,17206,17207,17216,17218,17219,17221,17225

Thank you

Kind Regard

--
popp
-----------------------------------------------------------------------
poppy's Profile: http://www.excelforum.com/member.php...fo&userid=1145
View this thread: http://www.excelforum.com/showthread.php?threadid=49145

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Move Column data to rows

This may get you started. Select the range of numbers before running this
and change the output cell from B1 to your cell.

Sub a()
Dim ValStr As String
Dim Cell As Range
For Each Cell In Selection
ValStr = ValStr & Cell.Value & ","
Next
ValStr = Left(ValStr, Len(ValStr) - 1)
Range("B1").Value = ValStr
End Sub


--
Jim
"poppy" wrote in
message ...
|
| Hi Sirs and Madams
|
| I have a list of roughly a thousand numbers in one column, I would like
| to know how to take those numbers and put them into one row and column
| with only a comma seperating them.
|
| e.g.
|
| 17205
| 17206
| 17207
| 17216
| 17218
| 17219
| 17221
| 17225
|
| -- 17205,17206,17207,17216,17218,17219,17221,17225
|
| Thank you
|
| Kind Regards
|
|
| --
| poppy
| ------------------------------------------------------------------------
| poppy's Profile:
http://www.excelforum.com/member.php...o&userid=11453
| View this thread: http://www.excelforum.com/showthread...hreadid=491450
|


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Move Column data to rows


Hi Jim


Thank you very much

Kind Regard

--
popp
-----------------------------------------------------------------------
poppy's Profile: http://www.excelforum.com/member.php...fo&userid=1145
View this thread: http://www.excelforum.com/showthread.php?threadid=49145

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
name,address in same column different rows. How move to columns kimbafred Charts and Charting in Excel 8 July 20th 07 02:12 AM
Move a Column to rows soddydj Excel Discussion (Misc queries) 2 July 29th 05 04:54 PM
How can I move to another cell two rows up and 1 column over in VB Frank Kabel Excel Programming 0 September 1st 04 10:31 PM
Need a macro to move data from column into rows floss Excel Programming 4 June 5th 04 06:06 AM
Move data from different columns into one column, but different rows. willik[_2_] Excel Programming 2 February 27th 04 02:58 PM


All times are GMT +1. The time now is 01:36 PM.

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

About Us

"It's about Microsoft Excel"