How to Split First and Last Names into Columns in Excel and Google Sheets

If you need to split first and last names in a customer or employee database, doing it manually cell by cell is a waste of time. In this complete guide, you will learn how to split first and last names into separate columns in both Microsoft Excel and Google Sheets using quick, straightforward methods.

Both Excel and Google Sheets feature built-in tools to divide text into columns within seconds, without installing add-ons or running advanced macros.


Method 1: How to Split First and Last Names in Excel with Text to Columns

This is the fastest method when working with static data in Microsoft Excel.

  1. Insert blank columns to the right: Right-click the column next to your names and select insertLeave at least two blank columns to prevent last names from overwriting existing data.
  2. Select your data: Highlight all cells containing the names you want to split.
  3. Open the split tool: In the top ribbon, go to the tab Data and click Text to Text to Columns.
  4. Choose the split format:
    • Select Delimited and click Next.
    • In the delimiters screen, uncheck all options and select only Space.
  5. Complete the process: Click Finish. The first name will remain in the original column and the last names will populate the adjacent columns.

Dividir texto en columnas

Method 2: Use Flash Fill in Excel (The Smartest Way)

Flash Fill automatically detects patterns without needing formulas or complex wizards.

  1. Add clean target columns next to your list and label them "First Name" and "Last Name".
  2. In the first empty cell under "First Name", manually type the first name of the person in that row.
  3. Click Enter , pres the sortcut Ctrl + E (go to the Data > click Flash Fill. Excel will instantly populate the rest of the column.
  4. Repeat the exact same step in the "Last Name"column to complete your list and go back to press Ctrl + E.

Method 3: Split Text to Columns in Google Sheets

In Google Sheets, the process to split first and last names is straightforward and requires no additional formulas:

  1. Make sure you have at least two empty columns to the right of your list.
  2. Select the cells containing the full names.
  3. Go to the top menu Data and select Split text to columns.
  4. A small floating label named Separatorwill appear next to your selection. Click the dropdown and select Space (or leave it as Detect automatically).
  5. The data will immediately distribute across the adjacent columns.

Method 4: Split Names Using Formulas (For Dynamic Data)

If you want to automate this task for new entries, you can split first and last names using dynamic functions.

In Google Sheets:

Use the SPLITfunction. If the full name is in cell A2, type in B2:
=SPLIT(A2; " ")
The formula will split the content into as many adjacent cells as words in the name.

In Excel (Modern Versions):

Use the TEXTSPLITfunction. If the name is in A2, enter in B2:
=TEXTSPLIT(A2, " ")


Troubleshooting Common Issues

  • Compound names (e.g., John Paul Smith): Both the Text to Columns tool and splitting formulas divide every single space into a separate column. In these cases, review entries with multi-word first or last names to manually unify them in their respective column.
  • Accidental spaces: Copied data from the web often contains leading or trailing spaces. To clean them before splitting, use the =TRIM(A2) - - function beforehand.

Check out more tutorials on YouSoftHub!

3 thoughts on “Cómo separar nombre y apellidos en columnas en Excel y Google Sheets”

  1. Pingback: Cómo eliminar duplicados en Excel: 5 Métodos Fáciles y Perfectos

  2. Pingback: 3 Métodos para comparar dos columnas en Excel: Guía rápida

  3. Pingback: Find Matching Values in Two Excel Lists: 3 Key Ways

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top