Split single cell data into multiple colums

P

Pradeep

i have a huge data, converted from image to Excel. After converting the image
to Excel all the data are stored in one cell( A1). But i want that to be
split into different colums

Example
A1
September 15,2006 Name Email ID Father's Name Address City
State Pincode Phone1 Phone2 Contact Time Area Code City
Code State Code Amount Discount Total Occupation Emp
no Remarks

The above headers are the data in one single cell, but have too many spaces
between each word.

Help me get this resolved
 
J

Jacob Skaria

With the data in cell A1 try the below formula in cell B1 and copy/drag the
formula to the cells to the right...which will split the string with 3
spaces...Adjust to suit//

=TRIM(MID(SUBSTITUTE(" " & $A$1& REPT(" ",6)," ",
REPT(CHAR(32),255)),COLUMNS($B$1:B$1)*255,255))

PS: This is under the assumption that the individual headers within your
data will have atleast 3 spaces between each header
 
P

Pradeep

Hai Jacob,

If you provide me your email id i'll send the some example data, so that i
can have a clear solution
 

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