How to extract first initial and last name from a cell with full name?

akinch

New Member
Joined
Oct 17, 2024
Messages
1
Office Version
  1. 365
How to extract first initial and last name from a cell with full name? Looking to return J. Smith from John Smith. Please advice. Thank you!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
How to extract first initial and last name from a cell with full name? Looking to return J. Smith from John Smith. Please advice. Thank you!
Book1
BCDEFG
2
3
4John SmithJ. Smith
5
6
7
Sheet1
Cell Formulas
RangeFormula
F4F4=LEFT(C4,1) & ". " & TRIM(RIGHT(SUBSTITUTE(C4," ",REPT(" ",100)),100))
 
Upvote 0
try

Excel Formula:
=LET(name,B2,a,TEXTSPLIT(name," "),
IF(COLUMNS(a)=1,name,CONCAT(LEFT(name,1),". ",CHOOSECOLS(a,COLUMNS(a)))))


1729220777957.png
 
Upvote 0
Assuming you have a range of names to process (I used the setup in @SunnyAlv's reply), then this single formula will generate all of the abbreviated names for the range provided to it...
Excel Formula:
=LET(r,B2:B6,IF(ISNUMBER(FIND(" ",r)),LEFT(r)&". ","")&TEXTAFTER(r," ",-1,,,r))
 
Upvote 0

Forum statistics

Threads
1,223,101
Messages
6,170,116
Members
452,302
Latest member
TaMere

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