spliting a column of data into multiple columns

C

CiceroCF

I am trying to split up some data into multiple columns with part of the data
in each column... ie: 02-34-5-M is currently in one column... i need it
split into 4 columns as the following....
02 34 5 M
01 256 0 Q
7 45 4 T
This needs to be done so I can sort by using the 2nd set of numbers.
Currently, this is an Excel file.
Thanks in advance for your help.
Carl
 
F

Fredrik Wahlgren

CiceroCF said:
I am trying to split up some data into multiple columns with part of the data
in each column... ie: 02-34-5-M is currently in one column... i need it
split into 4 columns as the following....
02 34 5 M
01 256 0 Q
7 45 4 T
This needs to be done so I can sort by using the 2nd set of numbers.
Currently, this is an Excel file.
Thanks in advance for your help.
Carl

Assuming 02-34-5-M is in A1, use

=LEFT(A1,2) ->02
=MID(A1,4,2) ->34
=MID(A1,7,1) ->5
=RIGHT(A1,1) ->M

/Fredrik
 
M

Max

One way ..

Select the col, say col A ?

Click Data > Text to columns
(Delimited will be selected)
Click Next, and enter a dash in the box for "Other"
Click Finish

This will split the source col into 4 cols

And if you need to retain the appearance of the leading zeros for the first
col's numbers, just select the col and format as Custom, type: 00
 
G

Gord Dibben

Data>Text to Columns>Delimited by "other" and enter a hyphen.

Make sure you have 3 empty columns to the right of the data.


Gord Dibben Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top