Help pls... Need to extract just last the text string from a cell

Lester07

New Member
Joined
Aug 4, 2009
Messages
29
Hi! I just have a simple question...

I have a list of names and I would like to extract the Lastname using a formula/function.
The problem is that when a full name on the list has two first names, my formula extracts the lastname but it includes the 2nd name that is on the firstname... (hope it make sense)

the formula i used is =MID(A2,FIND(" ",A2)+1,LEN(A2))

namePix.jpg
moz-screenshot.jpg
moz-screenshot-1.jpg
moz-screenshot-2.jpg
moz-screenshot-3.jpg
namePix.jpg


example for a name: "Mark Jay Robinson" - I just like to extract the last name "Robinson" but using my formula, it extract "Jay Robinson"

I couldn't find a way to count the text/character position from right to left (as in using the FIND function, it counts from left to right)

Thanks in advance....
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Try: =TRIM(RIGHT(SUBSTITUTE(A2," ",REPT(" ",50)),50))

Assuming nobody has a surname longer than 50 characters.

Dom
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,326
Members
452,635
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top