I have data that downloads as:
JohnSmith M
JaneDoe L
RobertJones A
I need to split the first and last name into two separate columns. Can anyone help with an Excel formula. I don't know VBA.
Thanks.
I have data that downloads as:
JohnSmith M
JaneDoe L
RobertJones A
I need to split the first and last name into two separate columns. Can anyone help with an Excel formula. I don't know VBA.
Thanks.
Splitting on Space
First name
=MID(I17,1,FIND(" ",I17,1))
Last name
=MID(I17,FIND(" ",I17,1)+1,LEN(I17)-FIND(" ",I17,1)+1)
Hi AntyLani
Asssuming your data is in A1:A3, try the following.
In B1: =LEFT(A1,SMALL(FIND(CHAR(ROW(INDIRECT("65:90"))),A1&"ABCDEFGHIJKLMNOPQRSTUVWXYZ"),2)-1) This is a array formula, CTRL + SHIFT + ENTER to commit and copy down.
In C1: =MID(A1,LEN(B1)+1,LEN(A1)-LEN(B1)-LEN(D1)) and copy down.
In D1: =RIGHT(A1,LEN(A1)-FIND(" ",A1)) and copy down.
Regards Kevin
Merged Cells (They are the work of the devil!!!)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks