PC Review


Reply
Thread Tools Rate Thread

Columns to Rows to if more than 254.

 
 
geniusideas
Guest
Posts: n/a
 
      2nd Mar 2007
In one cell i have many char seperated by comma example :

Cell A1 - C123,A244,A555,....And sometime more than 254 (total Column
in excel)
Cell A2 - C451,A123,.....
Cell A3 - B123,D245,...
Until >100 rows.

Now I am using text to column to seperated the char into individual
cell in column.
The problem now :

1) I have to arrange in rows not column..Pls help.
2) We only can arrange in column if qty < 254, if > How..
If we use macro what code to be use..

http://microsoft-excel-macro.blogspot.com

 
Reply With Quote
 
 
 
 
=?Utf-8?B?SmltIFRob21saW5zb24=?=
Guest
Posts: n/a
 
      2nd Mar 2007
Something like this should work with your text string in A1 and the results
going int A2 -> A???

Public Sub TextToRows()
Dim arr As Variant
Dim rng As Range
Dim lng As Long

arr = Split(Range("A1"), ",")
Set rng = Range("A2")
For lng = LBound(arr) To UBound(arr)
rng.Value = arr(lng)
Set rng = rng.Offset(1, 0)
Next lng

End Sub
--
HTH...

Jim Thomlinson


"geniusideas" wrote:

> In one cell i have many char seperated by comma example :
>
> Cell A1 - C123,A244,A555,....And sometime more than 254 (total Column
> in excel)
> Cell A2 - C451,A123,.....
> Cell A3 - B123,D245,...
> Until >100 rows.
>
> Now I am using text to column to seperated the char into individual
> cell in column.
> The problem now :
>
> 1) I have to arrange in rows not column..Pls help.
> 2) We only can arrange in column if qty < 254, if > How..
> If we use macro what code to be use..
>
> http://microsoft-excel-macro.blogspot.com
>
>

 
Reply With Quote
 
=?Utf-8?B?R2FyeScncyBTdHVkZW50?=
Guest
Posts: n/a
 
      2nd Mar 2007
You are already aware that you can split up a cell horizontally by using Text
to Columns (up to 254 items). This samll macro:

Sub text_to_rows()
s = Split(Selection.Value, ",")
l = LBound(s)
u = UBound(s)
For i = l To u
Selection.Offset(i + 1, 0).Value = s(i)
Next
End Sub


will allow you to split it up vertically. Select any single cell and run
the macro. It will string the values down the column just below the Selected
cell.
--
Gary''s Student
gsnu200708


"geniusideas" wrote:

> In one cell i have many char seperated by comma example :
>
> Cell A1 - C123,A244,A555,....And sometime more than 254 (total Column
> in excel)
> Cell A2 - C451,A123,.....
> Cell A3 - B123,D245,...
> Until >100 rows.
>
> Now I am using text to column to seperated the char into individual
> cell in column.
> The problem now :
>
> 1) I have to arrange in rows not column..Pls help.
> 2) We only can arrange in column if qty < 254, if > How..
> If we use macro what code to be use..
>
> http://microsoft-excel-macro.blogspot.com
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Make Excel see columns as rows and rows as columns Xane Microsoft Excel Misc 3 18th Nov 2009 01:38 AM
how do i paste rows/columns avoiding hidden rows/columns perezli Microsoft Excel Misc 1 30th Jan 2009 03:58 PM
Excel 2003 - change columns to rows and rows to columns =?Utf-8?B?VHJpc2g=?= Microsoft Excel Misc 0 17th Aug 2007 02:22 AM
RE: Excel 2003 - change columns to rows and rows to columns =?Utf-8?B?SkxhdGhhbQ==?= Microsoft Excel Misc 0 17th Aug 2007 02:05 AM
how to interchange rows to columns & columns to rows in a table =?Utf-8?B?a290YWtrYW1sZXNo?= Microsoft Excel Misc 1 10th Jul 2006 07:58 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:49 AM.