Working with data in Excel often involves manipulating and organizing text and numbers. One common task is splitting text or numbers into separate columns, which can be essential for data analysis and presentation. In this comprehensive guide, we will explore various methods to instantly split text and numbers in Excel, making your data management more efficient and streamlined.
Method 1: Using Text-to-Columns Feature

The Text-to-Columns feature is a powerful tool in Excel that allows you to split data based on a delimiter or fixed width. Here's a step-by-step guide on how to use it:
-
Select the column or range of cells containing the data you want to split.
-
Go to the Data tab on the Excel ribbon and click on Text to Columns.
-
The Convert Text to Columns Wizard will appear. Here, you have two options:
-
Delimited: Choose this option if your data is separated by a specific character, such as a comma, space, or tab.
-
Fixed Width: Select this option if your data has a consistent width between the splits.
-
-
For this example, let's assume you have a list of full names that you want to split into first and last names.
-
Click Next to proceed to the next step.
-
In the Step 2 of 3 section, you can specify the delimiter or fixed width settings:
-
If you chose Delimited, select the delimiter that separates your data. Common delimiters include commas, spaces, or tabs.
-
If you chose Fixed Width, adjust the Field Info to define the width of each split.
-
-
Click Next to continue.
-
In the Step 3 of 3 section, you can further customize the split:
-
Select the data format for each column (Text, General, Date, etc.).
-
You can also choose to create a header row if your data has column headings.
-
-
Click Finish to apply the split.
-
Excel will split the selected data into separate columns, making it easier to work with.
Note: The Text-to-Columns feature is versatile and can handle various data formats. Experiment with different delimiters and settings to find the best fit for your data.
Method 2: Using Formulas

Excel provides several formulas that can help you split text and numbers. Let's explore some commonly used formulas for splitting data.
LEFT, RIGHT, and MID Functions

These functions allow you to extract a specific portion of a text string. You can use them to split text based on a known character position.
-
LEFT(text, num_chars): Returns the leftmost
num_chars
characters from thetext
. -
RIGHT(text, num_chars): Returns the rightmost
num_chars
characters from thetext
. -
MID(text, start_num, num_chars): Returns a specific portion of the
text
starting fromstart_num
and includingnum_chars
characters.
Example:
Full Name | First Name | Last Name |
---|---|---|
John Smith | John | Smith |
Jane Doe | Jane | Doe |
Robert Johnson | Robert | Johnson |

To split the "Full Name" column into "First Name" and "Last Name" using formulas:
-
In the "First Name" column, enter the formula
LEFT(Full Name, FIND(" ", Full Name) - 1)
and drag it down to apply to all rows. -
In the "Last Name" column, enter the formula
RIGHT(Full Name, LEN(Full Name) - FIND(" ", Full Name))
and drag it down.
Note: The
FIND
function locates the position of a specific character, and the LEN
function returns the length of a text string. These formulas work when there is a consistent delimiter (in this case, a space) between the first and last names.
SPLIT Function

The SPLIT function is a more recent addition to Excel and is available in Excel 365 and later versions. It allows you to split a text string into an array of substrings based on a specified delimiter.
Example:
Full Name | First Name | Last Name |
---|---|---|
John Smith | John | Smith |
Jane Doe | Jane | Doe |
Robert Johnson | Robert | Johnson |
To split the "Full Name" column using the SPLIT function:
-
In the "First Name" column, enter the formula
=SPLIT(Full Name, " ")
and drag it down. -
In the "Last Name" column, enter the formula
=SPLIT(Full Name, " ")[2]
and drag it down. The [2] indicates the second item in the array, which corresponds to the last name.
Note: The SPLIT function is a powerful tool for splitting text, but it may not be available in older Excel versions. Ensure you have the necessary version to use this function effectively.
Method 3: Utilizing Flash Fill

Flash Fill is an intelligent feature in Excel that can automatically detect patterns in your data and fill them accordingly. It's particularly useful for splitting text or numbers based on existing patterns.
-
Enter the first split value in the adjacent column, following the desired pattern.
-
Continue entering the split values for a few more rows, ensuring they follow the same pattern.
-
Select the cell containing the first split value and the cells below it.
-
Go to the Data tab and click on Flash Fill.
-
Excel will automatically fill the remaining cells based on the detected pattern.
Flash Fill is a handy feature for quick and easy data splitting, especially when dealing with simple patterns.
Method 4: VBA Macro for Advanced Splitting

For more complex splitting tasks or when you need to automate the process, Visual Basic for Applications (VBA) can be a powerful tool. Here's a simple VBA macro to split a column of data into two columns based on a delimiter.
-
Open the Visual Basic Editor by pressing
Alt + F11
or going to Developer > Visual Basic. -
Insert a new module by clicking Insert > Module.
-
Paste the following code into the module:
Sub SplitData() Dim delimiter As String Dim startRow As Long, endRow As Long Dim sourceCol As Long, targetCol As Long delimiter = InputBox("Enter the delimiter (e.g., ',', ' ', etc.):") startRow = InputBox("Enter the starting row:") endRow = InputBox("Enter the ending row:") sourceCol = InputBox("Enter the source column number (e.g., 1 for A, 2 for B, etc.):") targetCol = InputBox("Enter the target column number (e.g., 1 for A, 2 for B, etc.):") For i = startRow To endRow Dim cellValue As String cellValue = Cells(i, sourceCol).Value Dim splitValues() As String splitValues = Split(cellValue, delimiter) If UBound(splitValues) >= 0 Then Cells(i, targetCol).Value = splitValues(0) Cells(i, targetCol + 1).Value = splitValues(1) End If Next i End Sub
-
Save the module and close the Visual Basic Editor.
-
To use the macro, go to Developer > Macros and select SplitData.
-
Enter the required inputs when prompted, such as the delimiter, starting row, ending row, and column numbers.
-
The macro will split the data based on the delimiter and place the results in the specified target columns.
Note: VBA macros offer great flexibility and automation for complex data splitting tasks. However, they require basic programming knowledge and may not be suitable for beginners.
Conclusion

Splitting text and numbers in Excel is a fundamental skill for data manipulation and organization. By mastering the methods outlined in this guide, you can efficiently split data into separate columns, making your Excel work more manageable and effective. Whether you choose the Text-to-Columns feature, utilize formulas, leverage Flash Fill, or explore VBA macros, Excel provides a range of tools to cater to your data splitting needs.
FAQ

Can I split text and numbers simultaneously in Excel?

+
Yes, Excel allows you to split both text and numbers using the Text-to-Columns feature. Simply select the range of cells containing the data, and Excel will prompt you to choose the appropriate splitting method.
Are there any limitations to the Text-to-Columns feature in Excel?

+
The Text-to-Columns feature works best with consistent delimiters or fixed widths. If your data has irregular patterns, you may need to use other methods like formulas or VBA macros to achieve the desired split.
Can I split data based on a specific character position using formulas?

+
Absolutely! Formulas like LEFT, RIGHT, and MID allow you to extract specific portions of a text string based on character positions. This can be useful when splitting data with consistent character lengths.
Is the SPLIT function available in all Excel versions?

+
The SPLIT function is a relatively new addition to Excel and is available in Excel 365 and later versions. If you’re using an older version, you may need to explore alternative methods like the Text-to-Columns feature or VBA macros.