How I separate first two letters of the sentence in msexcel

U

Ubaid Yousuf

I have a name and address of the person in one cell of the ms excel sheet
and I like to separate name and address in two cells by using any command.
like shown

I have ;
"Zarina Nawabe, FL No.72ohra Classic,317/1- A,Brftto" in one cell.
and I like;
"Zarina Nawabe" and "FL No.72ohra Classic,317/1- A,Brftto" in two
cells.

Please give me some commands to how to do it in msexcel?
 
M

Mike H

Hi,

First name
=LEFT(A1,FIND(",",A1,1)-1)
Second bit
=MID(A1,FIND(",",A1,1)+2,LEN(A1))

You may have to adjust the +2 to allow for spaces

Mike
 
P

PCLIVE

One way,

If your data was in A1:

First cell:
=LEFT(A1,FIND(",",A1)-1)

Second Cell:
=RIGHT(A1,LEN(A1)-FIND(",",A1)-1)

HTH,
Paul
 

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