Extracting Last names only from a cell of contacts

linaeum66

New Member
Joined
Jul 2, 2017
Messages
25
<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>Hello, I am looking for a formula to convert a full name in the various formats seen below and convert them all to a consistent "last name only" cell in an adjacent column. I've been trying myself for a while, but am not making much progress. Does anyone know how to do this?
Thanks so much@:)




[TABLE="width: 0"]
<colgroup><col style="width: 100px"><col width="100"><col width="100"></colgroup><tbody>[TR]
[TD]Full name[/TD]
[TD][/TD]
[TD]Last Name[/TD]
[/TR]
[TR]
[TD]John Doe[/TD]
[TD][/TD]
[TD]Doe[/TD]
[/TR]
[TR]
[TD]Doe, John[/TD]
[TD][/TD]
[TD]Doe[/TD]
[/TR]
[TR]
[TD]John D. Doe[/TD]
[TD][/TD]
[TD]Doe[/TD]
[/TR]
[TR]
[TD]John Doe MD[/TD]
[TD][/TD]
[TD]Doe[/TD]
[/TR]
</tbody>[/TABLE]
 
I suspect there will be other formats for which all or most of the suggestions will fail, but for those formats provided so far, here is yet another.

Excel Workbook
AB
1FullLast
2John DoeDoe
3Doe, JohnDoe
4John D. DoeDoe
5John Doe MDDoe
6John Doe PhDDoe
7John Hill PHDHill
8Sam WithersWithers
9Jones, Michael JohnJones
Last Name
 
Upvote 0

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

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