Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
SAR SAR is offline
external usenet poster
 
Posts: 1
Default Separate One Cell Into Many Rows


Cell A1 has 13,242 whole numbers listed, each separated by a semi-colon.
How can I separate all these numbers into 13,242 rows? I tried to do
columns to rows but Excel will not accomodate 13,242 columns. I put in
into Word, and still cannot figure it out. I need to do this process
every month with different numbers and a different amount of numbers in
Cell A1. Thanks for your help in advance.


--
SAR
------------------------------------------------------------------------
SAR's Profile: http://www.excelforum.com/member.php...o&userid=34172
View this thread: http://www.excelforum.com/showthread...hreadid=564815

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 747
Default Separate One Cell Into Many Rows

Try:

Sub xyz()
Dim arr As Variant
arr = Split(Range("A1").Value, ";")
Range("A1").Resize(UBound(arr) + 1).Value = Application.Transpose(arr)
End Sub

Regards,
Greg

"SAR" wrote:


Cell A1 has 13,242 whole numbers listed, each separated by a semi-colon.
How can I separate all these numbers into 13,242 rows? I tried to do
columns to rows but Excel will not accomodate 13,242 columns. I put in
into Word, and still cannot figure it out. I need to do this process
every month with different numbers and a different amount of numbers in
Cell A1. Thanks for your help in advance.


--
SAR
------------------------------------------------------------------------
SAR's Profile: http://www.excelforum.com/member.php...o&userid=34172
View this thread: http://www.excelforum.com/showthread...hreadid=564815


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 747
Default Separate One Cell Into Many Rows

I suspect that the Split function can't handle that many elements. I don't
have a burning desire to construct a test with a text string containing
35,242 numbers separated by semi-colons. If not, we should be able to come up
with something. Perhaps using a combination loop using Split to its max
capacity, pasting, and then reusing Split ??? Or just a simple loop and parse.

Greg

"Greg Wilson" wrote:

Try:

Sub xyz()
Dim arr As Variant
arr = Split(Range("A1").Value, ";")
Range("A1").Resize(UBound(arr) + 1).Value = Application.Transpose(arr)
End Sub

Regards,
Greg

"SAR" wrote:


Cell A1 has 13,242 whole numbers listed, each separated by a semi-colon.
How can I separate all these numbers into 13,242 rows? I tried to do
columns to rows but Excel will not accomodate 13,242 columns. I put in
into Word, and still cannot figure it out. I need to do this process
every month with different numbers and a different amount of numbers in
Cell A1. Thanks for your help in advance.


--
SAR
------------------------------------------------------------------------
SAR's Profile: http://www.excelforum.com/member.php...o&userid=34172
View this thread: http://www.excelforum.com/showthread...hreadid=564815


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
insert date Larry Excel Worksheet Functions 28 July 15th 06 02:41 AM
resetting last cell jagdish.eashwar Excel Discussion (Misc queries) 11 March 31st 06 02:06 AM
Separate first and second name in one cell into separate cells. Dwight in Georgia Excel Discussion (Misc queries) 3 January 25th 06 09:09 PM
Separate first and second name in one cell into separate cells. Gary's Student Excel Discussion (Misc queries) 0 April 27th 05 11:11 PM
parse cell and insert rows? Gorrila Grod Excel Worksheet Functions 3 November 5th 04 08:19 AM


All times are GMT +1. The time now is 01:17 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"