Convert “Smith, Jane” into “Jane Smith” (or vice versa). Split at the comma and reassemble the two parts in the order you want.
The example
“Smith, Jane” reordered to “Jane Smith”.
| A | B | |
|---|---|---|
| 1 | Last, First | First Last |
| 2 | Smith, Jane | Jane Smith |
The formula
Reassemble around the comma:
How it works
Find the comma, take each side, reorder:
FIND(",", A2)locates the comma.LEFT(A2, position-1)is the last name (before the comma).MID(A2, position+1, 100)is the first name (after it);TRIMremoves the leading space.- Concatenate first + space + last for “First Last.” In 365,
TEXTAFTER(A2,", ")&" "&TEXTBEFORE(A2,",")is cleaner.
Going the other way (“First Last” to “Last, First”) splits on the space instead: =lastWord & ", " & firstWords. REGEXREPLACE can do either swap in one shot in current Excel 365.
Try it: interactive demo
Type “Last, First”.
Variations
365 version
Clean:
First Last to Last, First
Reverse:
REGEXREPLACE (365)
One shot:
Pitfalls & errors
No comma = error. FIND fails if there’s no comma; wrap with IFERROR or validate the format.
Middle names. “Smith, Jane Q” puts “Jane Q” as the first part — usually fine, but be aware.
Extra spaces. TRIM the after-comma part to drop the leading space.
Practice workbook
Frequently asked questions
How do I switch "Last, First" to "First Last" in Excel?
What's the Excel 365 way?
What if there is no comma?
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