Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 22

Splitting Columns: First & Last Names

Recommended resources

Introduction

In our last session, we cleaned up our datasets by removing entire duplicate rows, a critical step for data accuracy. Today, we'll continue refining your data structuring skills by tackling another extremely common task in data preparation: splitting the contents of a single column into multiple columns.

Imagine you have a list of full names in one column, but for a mail merge or database entry, you need separate columns for "First Name" and "Last Name". Or perhaps you have a full address in one cell that needs to be broken down into "Street," "City," and "Zip Code." This lesson will equip you with the tools in both Excel and Google Sheets to perform this task efficiently. You will learn how to split data based on common separators like spaces or commas, a fundamental skill for organizing data you've collected.


Splitting Columns in Excel

Excel offers two excellent, user-friendly methods for this task. We'll start with an almost magical feature called Flash Fill and then move to the more traditional and powerful "Text to Columns" tool.

1. The "Magic" of Flash Fill

Flash Fill is an intelligent feature that automatically recognizes patterns in your data entry. You provide one or two examples of how you want the data split, and Excel intuits the pattern and completes the task for the entire column. It's fast, intuitive, and perfect for straightforward splits like separating names.

To see this in action, the following video provides a perfect demonstration.

How to Separate Names in Excel

This video by Kevin Stratvert clearly demonstrates how to use Flash Fill to separate first and last names in Excel.

First, watch the introduction from 00:34 to 01:07 to understand the sample dataset. Next, see how Flash Fill automatically detects the pattern for the first name. Then, observe how it intelligently handles the last name, even when a middle name is present. Finally, take note of the useful keyboard shortcut Ctrl+E, which manually triggers Flash Fill.

Flash Fill is your best friend for quick, pattern-based data splitting. However, when the pattern is inconsistent or you need more explicit control, the "Text to Columns" feature is the more robust choice.

2. The Power of "Text to Columns"

The "Text to Columns" feature is a wizard that guides you through the process of splitting a column. It is located on the Data tab in Excel's ribbon.

Locating the Text to Columns feature in the Excel ribbon.

This tool works in two primary ways:

  • Delimited: This option splits the text based on a specific character, such as a space, comma, or semicolon. This is the most common use case.
  • Fixed width: This option splits the text at specific positions you define, which is useful for structured data that doesn't have delimiters.

The following video will walk you through using this feature with different types of delimiters.

MS Excel - Text to Columns

This tutorial from TutorialsPoint provides a thorough walkthrough of the "Text to Columns" wizard in Excel.

Start by watching the introduction to understand the concept of delimiters. Follow the main demonstration from 00:48 to 02:52, which shows how to split text using a space as the delimiter. Pay close attention to the step where you choose the destination for your new columns to avoid overwriting your original data. Next, see how this works with a custom delimiter like an ampersand (&). Finally, briefly watch the section on fixed-width splitting to understand this alternative method, even though you will use the delimited option far more often.


Splitting Columns in Google Sheets

Google Sheets provides similar functionality, with a dedicated tool and a flexible formula.

1. Using the "Split text to columns" Tool

Like Excel, Google Sheets has a built-in tool for this job. You select the column you want to split, go to the Data menu, and select Split text to columns. A small menu will appear allowing you to choose the separator (or let Google Sheets detect it automatically).

The separator detection menu for splitting text in Google Sheets.

The following resource explains how to use this tool and points out an important consideration.

How to split a cell in Google Sheets: Text to Columns, SPLIT

This article from Ablebits.com explains the standard 'Split text to columns' feature in Google Sheets.

Read the section titled "2. Split text to columns in Google Sheets: Built-in Tool". Focus on the process of selecting a separator and, crucially, understand the warning about overwriting data. As a rule of thumb, always insert empty columns to the right of your source column before splitting to ensure no data is accidentally lost.

2. Using the SPLIT Function

For more flexibility, Google Sheets has a dedicated SPLIT function. This is a formula-based approach that places the results in new cells without altering the original data, which is often a safer workflow.

The basic syntax is =SPLIT(text, delimiter). For example, =SPLIT(A2, " ") would take the text in cell A2 and split it into new columns wherever a space appears.

How to split a cell in Google Sheets: Text to Columns, SPLIT

This section of the Ablebits.com article explains the powerful SPLIT function.

Read the section titled "3. SPLIT function for Google Sheets". Focus on the basic usage of the function with a single cell. Then, review the tip on how to combine it with ARRAYFORMULA. The formula =ArrayFormula(SPLIT(C2:C69," ")) is particularly valuable, as it allows you to apply the split to an entire column at once—a huge time-saver for large datasets.


Conclusion

You now have a powerful set of tools for restructuring data by splitting single columns into multiple ones. This is a fundamental step in data cleaning and preparation that you will use constantly in your freelance data research work.

Here are the key takeaways from this lesson:

  • In Excel, you can use Flash Fill for quick, pattern-based splits or the Text to Columns wizard for more deliberate control using delimiters or fixed widths.
  • In Google Sheets, you can use the Split text to columns tool from the Data menu or the more flexible SPLIT function, which can be combined with ARRAYFORMULA to process an entire column at once.
  • Always be careful to ensure you have empty columns to the right of your data before splitting to avoid accidentally overwriting existing information.

In our previous lessons, we've focused on cleaning and restructuring the data you have. In our next lesson, we will address another common issue: inconsistent data formats. You will learn how to standardize formats for data like dates, phone numbers, and text capitalization to ensure your final dataset is clean, consistent, and professional.