Split Name into Two Columns in Google Sheets

How-to basics · Updated November 23, 2026

Yes, you can split a full name into two columns in Google Sheets using the built-in Split text to columns feature or the SPLIT function. The fastest method is to select your data, go to Data > Split text to columns, and choose Space as the separator—this instantly separates first and last names into adjacent columns.

Why You Might Need to Split Names

Full names in a single column are common when you import data from a CRM, a sign-up form, or a mailing list. But many tasks—like creating personalized email greetings, sorting by last name, or generating reports—work better when the first and last names are in separate columns. Splitting names also makes it easier to filter, deduplicate, or merge data with other spreadsheets. Google Sheets gives you two primary ways to do this: a one-time menu command and a dynamic formula.

Method 1: Using Split Text to Columns (No Formula)

The menu method is the quickest for a one-off split. Here’s how to do it in a web browser:

  1. Select the column that contains the full names (e.g., A1:A10).
  2. Go to Data > Split text to columns.
  3. A small menu appears at the bottom of the column. Choose Space as the separator.
  4. Google Sheets automatically fills the adjacent columns (B and C) with the first and last names.

If your names are separated by a comma (e.g., “Doe, John”), choose Comma instead. You can also select Custom to type any delimiter, such as a period or a tab. This method overwrites the data in the adjacent columns, so make sure those columns are empty or that you’ve saved a copy of your sheet first.

Method 2: Using the SPLIT Function (Dynamic)

If you need the split to update automatically when the original name changes, use the SPLIT function. It’s a real Google Sheets function that works in any browser. The syntax is:

=SPLIT(text, delimiter)

For example, with the name “Jane Smith” in cell A2, enter this in cell B2:

=SPLIT(A2, " ")

This returns “Jane” in B2 and “Smith” in C2. The formula spills into as many cells as there are parts. If a name has a middle initial, like “John Q. Public”, it will split into three columns: “John”, “Q.”, and “Public”. To combine the middle parts back into one column, you can wrap the function with other text functions, but for a simple first/last split, the basic SPLIT works fine.

Handling Names with Middle Names or Suffixes

Real-world names are rarely just two words. Here are common scenarios and how to handle them:

  • Middle names: If you want the first name in one column and the rest in another, use SPLIT with a space, then combine the extra parts using TEXTJOIN or simply leave them in separate columns.
  • Last name first (e.g., “Smith, Jane”): Use Data > Split text to columns with Comma as the separator. Then you can swap the columns if needed.
  • Suffixes like “Jr.” or “III”: These often appear after the last name. A simple space split will put them in a fourth column. You can manually move them or use a formula that checks for common suffixes.

For a more robust solution, you can use the INDEX and SPLIT functions together. For example, to get the first name from A2, use:

=INDEX(SPLIT(A2, " "), 1)

To get the last name (assuming only two parts), use:

=INDEX(SPLIT(A2, " "), 2)

These formulas are handy because they return a single value, making them easy to use in other calculations.

Common Problems and How to Fix Them

Several issues can trip you up when splitting names:

  • Extra spaces: If a name has double spaces (e.g., “Jane Smith”), the split will create empty columns. Use the TRIM function first: =SPLIT(TRIM(A2), " ").
  • Names with more than two parts: The split will produce more columns than you expect. You can either accept the extra columns or use a formula that extracts only the first and last parts. For the last word, use =INDEX(SPLIT(TRIM(A2), " "), COUNTA(SPLIT(TRIM(A2), " "))).
  • Data overwritten: The menu method overwrites adjacent cells. Always make a backup or use the SPLIT function in a new column.
  • Non-breaking spaces: Sometimes imported data contains special space characters. If the split doesn’t work, copy the text into a new cell and use =SUBSTITUTE(A2, CHAR(160), " ") to replace them with regular spaces.

Comparing Google Sheets with Excel

Microsoft Excel has a similar feature called Text to Columns (under the Data tab), but it works differently. In Excel, you select the column, go to Data > Text to Columns, choose Delimited, and pick Space. The result is static—it doesn’t update if the original name changes. Excel also has functions like TEXTSPLIT (in Microsoft 365) that work like Google Sheets’ SPLIT. The main difference is that Google Sheets’ menu method is more intuitive and the SPLIT function is dynamic by default. If you’re working in Excel for the web, the menu path is similar but the function names differ.

Frequently Asked Questions

Can I split names into two columns without a formula?

Yes, use Data > Split text to columns. It’s a one-click solution that doesn’t require any formulas. Just select your data, choose the separator (usually Space), and the names are split into adjacent columns.

What if some names have a middle name?

The split will put the middle name in its own column. If you want only two columns, you can use a formula to extract the first word and the last word. For example, to get the first name: =INDEX(SPLIT(A2, " "), 1). To get the last name, use =INDEX(SPLIT(A2, " "), COUNTA(SPLIT(A2, " "))).

How do I split a full name that’s in “Last, First” format?

Use Data > Split text to columns and choose Comma as the separator. This will put the last name in the first column and the first name in the second column. You can then swap the columns if you prefer first name first.

Will the split update if I change the original name later?

Only if you use the SPLIT function. The menu method creates static results. If you need dynamic updates, use a formula like =SPLIT(A2, " ") in the cell where you want the split to appear.

Can I split names that are separated by a period or a tab?

Yes, in Data > Split text to columns, choose Custom and type the delimiter (e.g., a period). For tabs, choose Tab from the separator menu. The SPLIT function also accepts any delimiter in quotes.

Tips for Large Datasets

If you have thousands of rows, the menu method can be slow because it processes everything at once. Instead, use the SPLIT function in the first row and drag it down, or use an array formula like =ARRAYFORMULA(SPLIT(A2:A, " ")) to split the entire column at once. This is more efficient and keeps your sheet responsive. Also, remember to check for empty cells—if a cell has no space, the SPLIT function will return an error. You can wrap it with IFERROR to handle those cases gracefully.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.