How to Split Numbers and Units into Separate Excel Columns
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.

- 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.
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.
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.
In the first adjacent blank cell, manually type just the number part (e.g., '5') from your original mixed cell and press Enter.
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.
In the next blank column, manually type the text unit part (e.g., 'kg') for the first row and press Enter.
Select that cell and use 'Flash Fill' (Ctrl+E) again. Excel will infer the pattern and automatically fill the units for the remaining rows.

Apply Custom Format to Display Units Without Altering Values
If you only need a single consistent unit across all cells and want to keep the data calculable, applying a custom number format is highly recommended.
Use Formulas to Extract Numbers and Text
Use text-extraction formulas if your data updates dynamically and you need the split to happen automatically as new data is entered.
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. Open File: Open your dataset containing the mixed numbers and units in WPS Spreadsheet.
- 2. Provide an Example: In the adjacent blank column, manually type the extracted number for the first row.
- 3. Use Flash Fill: Navigate to the Data tab and click Flash Fill, or simply press Ctrl+E to auto-fill the numbers.
- 4. Extract Units: Repeat the exact same process in the next column to effortlessly extract the text units.

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.




