split first name and last name into 2 columns

I have first and last names in 1 column and would like to separate them into 2 columns

MacBook Pro 15″, macOS 12.7

Posted on Jan 17, 2025 5:56 PM

Reply
Question marked as Top-ranking reply

Posted on Jan 17, 2025 7:23 PM

If you only have first names and last names (no middle names) then a simple way is to use TEXTBEFORE and TEXTAFTER, something like this:



In B2 =TEXTBEFORE(A2," ")

In B3 =TEXTAFTER(A2," ")


TEXTBEFORE - Apple Support

TEXTAFTER - Apple Support


There is also a TEXTBETWEEN function if you have middle names.


There are also ways using REGEX.EXTRACT but the above functions handle most cases.


SG



3 replies
Question marked as Top-ranking reply

Jan 17, 2025 7:23 PM in response to TechTG

If you only have first names and last names (no middle names) then a simple way is to use TEXTBEFORE and TEXTAFTER, something like this:



In B2 =TEXTBEFORE(A2," ")

In B3 =TEXTAFTER(A2," ")


TEXTBEFORE - Apple Support

TEXTAFTER - Apple Support


There is also a TEXTBETWEEN function if you have middle names.


There are also ways using REGEX.EXTRACT but the above functions handle most cases.


SG



This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

split first name and last name into 2 columns

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.