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.

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. Press 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.

Método 3: Dividir texto en columnas en Google Sheets

En Google Sheets, el proceso para split first and last names es directo y no requiere fórmulas adicionales

  1. Asegúrate de tener al menos dos columnas vacías a la derecha de tu listado.
  2. Selecciona las celdas con los nombres completos.
  3. Ve al menú superior Data y selecciona Dividir texto en columnas.
  4. Aparecerá una pequeña etiqueta flotante junto a la selección llamada Separador. Haz clic en el desplegable y selecciona Space (o deja Detectar automáticamente).
  5. Los datos quedarán repartidos de inmediato entre las columnas adyacentes.

Método 4: Separar nombres mediante fórmulas (Para datos dinámicos)

Si buscas automatizar la tarea para registros nuevos, puedes split first and last names mediante funciones dinámicas.

En Google Sheets:

Usa la función SPLIT. Si el nombre completo está en la celda A2, escribe en B2:
=SPLIT(A2; " ")
La fórmula dividirá el contenido en tantas celdas contiguas como palabras contenga el nombre.

En Excel (versiones modernas):

Usa la función DIVIDIRTEXTO. Si el nombre está en A2, introduce en B2:
=DIVIDIRTEXTO(A2; " ")


Solución a problemas frecuentes

  • Nombres compuestos (ej. Juan Carlos Pérez Gómez): Tanto la herramienta de texto en columnas como la función de separación dividen cada espacio en una columna distinta. En estos casos, revisa los registros con nombres de dos palabras para unificar los nombres o los apellidos en su columna correspondiente.
  • Espacios accidentales: A veces los datos copiados de webs contienen espacios extra al principio o al final. Para limpiarlos antes de separarlos, puedes aplicar previamente la función =ESPACIOS(A2) (o =RECORTAR(A2) según la versión de tu hoja de cálculo).

¡Consulta más tutoriales en la portada de YouSoftHub!

Leave a Comment

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

Scroll to Top