• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Separate Name's Id

naveenakh

New Member
How do I split the name's & Id with extra spaces

pls find link

http://speedy.sh/k324D/Emp-Name-Id..xlsx


Thanks
 
Naveena


Why not just:


Select Column A2:A37

Data, Text to Columns

Delimited

Select Space and Apply
 
Thanks Hui

I did, but not working properly,there so many space in the cell,

I tried clean, trim First Name Middle Name & Last name formula.

So pls give any other solution for joining these names & id properly.
 
Hi Naveena,


For code you can use
Code:
=RIGHT(A2,7)


For Name you can use =LEFT(A2,LEN(A2)-LEN(C2))


But this name still contains some extra spaces.


Regards,

Faseeh
 
Try this for name:


Code:
=MID((TRIM(SUBSTITUTE(A2,CHAR(160),""))),1,LEN(TRIM(SUBSTITUTE(A2,CHAR(160),"")))-LEN(C2))
 
If employee code is always 7 letters long then:


=TRIM(SUBSTITUTE(LEFT(A2,LEN(A2)-7),CHAR(160)," "))


will also work.
 
Back
Top