Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,905 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I need to sort data in an excel spreadsheet by last name but currently all the data in the column is listed as first name, last name. Is there a way I can break this data apart into two new columns, first name and last name?
Try to enter this formula to A1: =TEXTSPLIT(E1," ",,TRUE)
, where E1 contains “John Smith” (for example). The results will appear in A1 and B1.
If required, use ;
instead of ,
.
You can also put =TEXTBEFORE(E1," ")
in A1 and =TEXTAFTER(E1," ")
in B1.