logo
search
Data Import & Export

How to Split Numbers and Units into Separate Excel Columns

WPS EditorWPS Editor Oct 1, 2026 869 views

Question details

The user needs to separate combined values consisting of numbers and text units (e.g., '5kg') into two distinct columns when there is no delimiter or space between them.

How to Split Numbers and Units into Separate Excel Columns
Product
Excel
Device & OS
not provided
Scenario
Organizing and cleaning imported dataset where numerical values and measurement units are combined in single cells.
Observed behavior
Numbers and units are merged together in one cell without spaces, preventing mathematical operations on the numerical values.
Before you start

Ensure you have inserted two blank columns directly next to your original data column to accommodate the separated numbers and text units without overwriting existing data.

Solution 1Recommended

Use Flash Fill to Split Numbers and Units Automatically

Flash Fill is the fastest and most efficient method to extract numbers and text patterns automatically without using complex formulas.

Excel's Flash Fill feature can detect patterns in your manual data entry and automatically fill the rest of the column based on that pattern. This works perfectly for extracting numbers and units.

1
Type the number

In the first adjacent blank cell, manually type just the number part (e.g., '5') from your original mixed cell and press Enter.

2
Activate Flash Fill for numbers

Select the cell you just typed in, go to the 'Data' tab on the ribbon, and click 'Flash Fill', or simply press the keyboard shortcut Ctrl+E. Excel will extract all numbers down the column.

3
Type the text unit

In the next blank column, manually type the text unit part (e.g., 'kg') for the first row and press Enter.

4
Activate Flash Fill for units

Select that cell and use 'Flash Fill' (Ctrl+E) again. Excel will infer the pattern and automatically fill the units for the remaining rows.

Use Flash Fill to Split Numbers and Units Automatically
Quick Formatting: Flash Fill learns from your examples. If the data is slightly inconsistent, you may need to provide two or three manual examples before pressing Ctrl+E.
Efficient Data Cleaning

Split Mixed Data Effortlessly with WPS Spreadsheet

WPS Spreadsheet offers powerful data extraction tools, including intelligent Flash Fill and advanced formulas, allowing you to split combined numbers and text instantly. It provides a familiar, fast interface fully compatible with Excel files.

  1. 1. Open File: Open your dataset containing the mixed numbers and units in WPS Spreadsheet.
  2. 2. Provide an Example: In the adjacent blank column, manually type the extracted number for the first row.
  3. 3. Use Flash Fill: Navigate to the Data tab and click Flash Fill, or simply press Ctrl+E to auto-fill the numbers.
  4. 4. Extract Units: Repeat the exact same process in the next column to effortlessly extract the text units.
Fully compatible with Microsoft Excel (.xlsx) formats and formulas.Includes built-in Flash Fill (Ctrl+E) for instant, automated data splitting.Lightweight, fast, and completely free to use for everyday office tasks.Familiar ribbon interface ensures zero learning curve.
microsoft office alternative - wps office

Frequently Asked Questions

Why is Flash Fill not working correctly for my mixed data?

Flash Fill relies on recognizing consistent patterns. If your data formatting is highly irregular (e.g., mixing spaces, varying unit text lengths, or placing text before numbers randomly), Flash Fill might make mistakes. Try providing two or three manual examples before using the tool to improve its pattern recognition.

Can I split numbers and units using Text to Columns?

Text to Columns works best when there is a delimiter, such as a space or comma, separating the number and the unit. If there is no space (e.g., '10lbs'), Text to Columns cannot automatically split them using the Delimited option. You can use the 'Fixed Width' option, but only if all numbers in your column have the exact same number of digits.

How do I calculate cells that already contain text units?

Spreadsheet software cannot perform mathematical operations on cells containing mixed text and numbers. You must either split them into separate columns using Flash Fill, or strip the text completely and apply a Custom Number Format to display the unit visually while keeping the underlying value as a calculable number.

Is there a simple formula to remove letters from numbers?

Removing letters from numbers using formulas usually involves complex text and sequence functions, especially if the text length varies. While newer spreadsheet versions have advanced functions for this, Flash Fill (Ctrl+E) remains the most straightforward and beginner-friendly method for stripping letters from numbers.