To turn Maria Lopez into ML — for avatars, IDs, or compact labels — grab the first letter of each word. For two-word names it’s a short LEFT/MID formula; for any number of words, Excel 365 does it in one.
The example
Initials from full names.
| A | B | |
|---|---|---|
| 1 | Name | Initials |
| 2 | Maria Lopez | ML |
| 3 | Devon Smith | DS |
The formula
Two-word initials:
How it works
Pick the first letter of each part:
LEFT(A2, 1)takes the first letter of the first name.FIND(" ", A2)+1is the position right after the space — the start of the last name.MID(A2, …, 1)grabs that first letter of the last name.- The
&joins them into the initials. AddUPPER()around it if names might be lowercase.
Any number of names (Excel 365): =TEXTJOIN("",1, LEFT(TEXTSPLIT(A2," "), 1)) takes the first letter of every word — so “Mary Jane Watson” becomes “MJW.”
Try it: interactive demo
Type a name; see its initials (first letter of each word).
Variations
All words (Excel 365)
First letter of every word:
With dots and spaces
“M.L.” format:
Force uppercase
Tidy lowercase input:
Pitfalls & errors
Single-word names error. No space means FIND fails. Guard with IFERROR, or use the 365 TEXTSPLIT version which handles any count.
Extra spaces shift the result. TRIM the name first if pasted data has double spaces.
Middle names. The two-word formula ignores them; the TEXTSPLIT version includes every word’s initial.
Practice workbook
Frequently asked questions
How do I get initials from a name in Excel?
How do I get initials for names with middle names?
How do I make the initials uppercase?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class