How do a break apart a persons name listed in one column, i.e. - John Smith, into two columns, i.e- column A-John, column B-Smith?

Robin Hirschfield 20 Reputation points
2024-09-27T13:32:27.9533333+00:00

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?

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments
{count} votes

Answer accepted by question author
  1. Viorel 125.7K Reputation points
    2024-09-27T18:38:57.2133333+00:00

    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.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.