How to Separate Numbers / Values in Excel & Google Sheets

Written by

Editorial Team

Reviewed by

Laura Tsitlidze

Last updated on March 16, 2023

This tutorial demonstrates how to separate numbers or values in Excel and Google Sheets.

 

separate numbers excel final data

 

Separate Numbers or Values

If you have a list of numbers and want to split each by digits, you can use Excel’s Text to Columns functionality.

Look at the list of phone numbers in the picture below.

 

separate numbers excel initial data

 

Say you want to separate the numbers and get the first three digits in Column C, the middle three digits in Column D, and the last four digits in Column E.

  1. First, eliminate all non-numeric characters from the phone numbers. Select the range (B2:B6) and in the Ribbon, go to Home > Find & Select > Replace.

 

separate number find and replace

 

  1. In the Find and Replace window, enter “(” (a left parenthesis) in the Find what box, and click Replace All. Leave the Replace with box blank, as you want to delete all occurrences of the character in the range (replace them with blanks).

 

separate number find and replace 2

 

Repeat this step (find and replace all) for “)” (right parenthesis), “” (hyphen), and ” ” (space) so that there are only numbers in Column B.

 

separate numbers find and replace 3

 

  1. Now use Text to Columns to separate the cleaned-up numbers. Select the cells with phone numbers (B2:B6) and in the Ribbon, go to Home > Text to Columns.

 

separate numbers text to columns

 

  1. In Step 1 of the Text to Columns Wizard, choose Fixed width and click Next. Here, you have to choose Fixed width and split data manually, because there is no delimiter.

 

separate numbers text to columns 1

 

  1. In Step 2 of the Wizard, click in the data preview on the position where you want to add a column break (between the third and the fourth digit). Repeat to create a second break line (between the sixth and the seventh digit), and click Next.

 

separate numbers text to columns 2

 

  1. In the last step of the wizard, in the Destination box, enter the cell where you want to position split data (C2). In the Data preview, you can see how the data would be split. Click Finish.

 

separate numbers text to columns 3

 

Finally, phone numbers from Column B are split into three columns: the first three digits (area code) in Column C, the middle three digits (exchange code) in Column D, and the last four digits (line number) in Column E.

 

separate numbers excel final data

 

Tips

  • If all of your numbers are formatted (with text characters) identically, it may be possible to skip Steps 1 and 2 and use delimiters instead, but dealing with numerical values does have other benefits.
  • You can also use formulas to split numbers by digits.
  • There’s a shortcut to open the Text to Columns Wizard: press ALT > A > E.

Separate Numbers or Values in Google Sheets

In Google Sheets, there is no Text to Columns option to manually split values. You need to use the LEFT, RIGHT, and MID Functions and extract data based on length.

 

extract numbers gs

AI Formula Generator

Try for Free

See all How-To Articles