Extract last name from a list that contains first, middle and last names

bearcub

Well-known Member
Joined
May 18, 2005
Messages
704
Office Version
  1. 365
  2. 2013
  3. 2010
  4. 2007
Platform
  1. Windows
I have list of full names. some names have first name only, and some have first and middle name. I would like to use a formula that will extract the last name from all of them. I know that flash fill could do it but I need a formula because the list is always updating.

For example

Code:
Name                       Extract Value
Jon Jay Jones                Jones
Mary Smith                   Smith
Jose A Jones Garcia       Garcia
Bill Graham                  Graham

is this possible?

Thank you for your help in advance

Michael
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
=right(h3,len(h3)-find("*",substitute(h3," ","*",len(h3)-len(substitute(h3," ","")))))
 
Upvote 0
Hi,

Here's another way:


Book1
ABC
1NameExtract Value
2Jon Jay JonesJones
3Mary SmithSmith
4Jose A Jones GarciaGarcia
5Bill GrahamGraham
Sheet2
Cell Formulas
RangeFormula
C2=TRIM(RIGHT(SUBSTITUTE(A2," ",REPT(" ",200)),100))
 
Upvote 0
Great, thank you both, this will work. I'll add this to my file when I get back to work on Monday.

Michael
 
Upvote 0

Forum statistics

Threads
1,215,064
Messages
6,122,942
Members
449,094
Latest member
teemeren

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