Separating mass groups of numbers

stephen.smith

Board Regular
Joined
Jul 7, 2010
Messages
119
Hey guys. I am trying to separate a huge group of phone numbers from one cell into individual cells in a column. the numbers are currently separated by a semicolon. Is there an easy way to perform this action?? Thanks
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Try using Text To Columns with a semicolon as your delimiter.
 
Upvote 0
Hey guys. I am trying to separate a huge group of phone numbers from one cell into individual cells in a column. the numbers are currently separated by a semicolon. Is there an easy way to perform this action?? Thanks
Individual cells in a column?
You could try out this small code
Code:
Sub separate()
Dim spl
With Range("A1")
    spl = Split(.Value, ";")
    .Offset(1).Resize(UBound(spl) + 1) = Application.Transpose(spl)
End With
End Sub
 
Upvote 0
Sorry, didn't notice you said column! After you do text to columns, you can copy>paste special>transpose into a column.
 
Upvote 0
Thats great thanks, worked like a dream, now I have my numbers separated however I need to add a "0" before every number in my list, is there a way to perform this easily.
Thanks again
Stephen
 
Upvote 0
Thats great thanks, worked like a dream, now I have my numbers separated however I need to add a "0" before every number in my list, is there a way to perform this easily.
Thanks again
Stephen
Not sure which answer you refer to, but if VBA then
Code:
Sub separate2()
Dim spl
With Range("A1")
    spl = Split(.Value, ",")
    With .Offset(1).Resize(UBound(spl) + 1)
        .Cells = Application.Transpose(spl)
        .NumberFormat = """0""General"
    End With
End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,445
Messages
6,172,177
Members
452,446
Latest member
walkman99

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