Formula to extract first name and last name

Thembela01

New Member
Joined
Jun 7, 2013
Messages
36
Office Version
  1. 2016
Platform
  1. Windows
I have searched everywhere . My formula doesnt work

John F Kennedy - JohnF
Ben Mango-BenM
Siya Ginger Kolisi - SiyaK

I want to combine the first name plus the last initial. It must ignore the middle name
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
What about people with multipart surnames, like Van Deeson, or with ordinals after name like John Brown III, or with Jr or Sr after name. There are so many variations and permutations of how a name may exist, I doubt you will get a formula to do what you want and cope with such possibilities.
 
Upvote 0
Then use this formula:
=LEFT(A2,FIND(" ",A2)-1)&LEFT(TRIM(RIGHT(SUBSTITUTE(TRIM(A2)," ",REPT(" ",100)),100)),1)
 
Upvote 0
Solution

Forum statistics

Threads
1,223,248
Messages
6,171,027
Members
452,374
Latest member
keccles

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