Text to Columns - Text to Rows?

tobermory

New Member
Joined
Jun 4, 2012
Messages
46
Hello,

I am aware of the the text to columns feature, but in a super ideal world, I'd rather split my entry into rows.

Without exception, the data I'm looking to split is with the ";" sign. For instance....

;3009902682;20241721;3009902689;20177969;3009902686;20213043;20111594;3009902732;20154951;20169509;20015068;3009902692;20081331;20022861;3009902680;3009902697;20147580;3009902707;3009902725;3009902681;3009902696;20167826;20194011;20040230;20122749;20030071;20170639;3009902690;20062649;3009902688;20148229;20039783;20237919;3009902719;20266785;3009902706;3009902698;20071845;3009902687;20070422;3009902684;3009902693;20054425

<colgroup><col style="width:48pt" width="64"> </colgroup><tbody>
</tbody>

This entry is always in cell E1, and there could be upto 400 numbers that need separating.

In this instance, I'd like 3009902682 in A1, 20241721 in A2, 3009902689 etc etc etc.

Is this somehow possible by formula and/or VBA?

Many Thanks
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Here is a VBA macro that you can use...
Code:
Sub SplitCellE1Downward()
  Dim Data() As String
  Data = Split(Range("E1"), ";")
  Range("E2").Resize(UBound(Data) + 1) = Application.Transpose(Data)
End Sub
 
Upvote 0
The simplest way to do this is to do the Text-to-Columns that you already know, and then simply copy that range and Transpose to the columns / cells that you prefer. I'm sure that it can be done with more elegance - and maybe we'll see that soon, but this way works until you learn a better way.
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,202
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top