Excel Split at Any Numbers? How-To Guide
In this article
Yes, Excel can split data at any numbers, but the method depends on what you mean by "numbers." If you need to separate text from numbers (like "ABC123" into "ABC" and "123"), Excel has built-in tools and formulas. If you need to split a number into its individual digits, that's also possible with formulas. This guide covers both scenarios, plus the common pitfalls to avoid.
What "Split at Numbers" Usually Means
Most people searching this phrase want to separate a cell that mixes text and numbers. For example:
- Product codes like "SKU4567" → "SKU" and "4567"
- Addresses like "123 Main St" → "123" and "Main St"
- Mixed data like "Q1Revenue$5000" → "Q1Revenue" and "$5000"
There are two main approaches: the Text to Columns wizard (quick, but not dynamic) and formulas (flexible, updates automatically). For splitting a number into digits, you'd use a different set of formulas.
Method 1: Text to Columns (Quick but Static)
This built-in tool works best when your data has a consistent delimiter—like a space, comma, or hyphen. If you want to split at the point where text meets a number, it's trickier because there's no fixed delimiter.
- Select the column with your data.
- Go to Data → Text to Columns.
- Choose Delimited if you have a consistent separator (e.g., space).
- Choose Fixed width if the split point is always at the same character position.
- Click Finish.
Limitation: Text to Columns overwrites your original data (unless you copy it first) and doesn't update if the source changes. It also can't automatically detect the transition from text to numbers unless you use the "Fixed width" option with a manual break line.
Method 2: Formulas for Text-Number Split
For a dynamic solution that updates when your data changes, use Excel functions. The goal is to find the position of the first digit in the string, then extract left and right parts.
Assuming your data is in cell A1:
- Position of first digit:
=MIN(IF(ISNUMBER(VALUE(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))),ROW(INDIRECT("1:"&LEN(A1)))))— this is an array formula; in older Excel, press Ctrl+Shift+Enter. In Excel 365, it works normally. - Text part:
=LEFT(A1, position-1) - Number part:
=RIGHT(A1, LEN(A1)-position+1)
You can also use a simpler approach with MATCH and array logic, but the above is the most common. For Excel 365, you can use TEXTSPLIT with a regex-like pattern, but that requires the new REGEXEXTRACT function (currently in beta).
Method 3: Splitting a Number into Digits
If you need to split a number like 12345 into separate cells (1, 2, 3, 4, 5), use the MID function:
- In the first cell, enter:
=MID($A$1, COLUMN(A1), 1) - Drag this formula to the right for as many digits as you have.
- Each cell will show one digit as text. To convert to numbers, wrap with
VALUE()or multiply by 1.
For example, with 12345 in A1, the formula in B1 gives "1", C1 gives "2", and so on. This works because COLUMN(A1) returns 1, and dragging right increments it.
How to Choose the Right Method
- One-time cleanup: Use Text to Columns—it's fast and doesn't require formulas.
- Ongoing data updates: Use formulas so the split updates automatically.
- Split at the first space or hyphen: Text to Columns with a delimiter is simplest.
- Split at the transition from text to number: Use the array formula above.
- Split a number into digits: Use
MIDwith a column-based start position.
Common Problems and Fixes
- #VALUE! errors: Often caused by the array formula not being entered with Ctrl+Shift+Enter (in older Excel). Or the cell contains no digits.
- Leading zeros lost: If you split "00123" into digits, Excel may drop the leading zeros. To preserve them, format the cells as text before entering the formula.
- Decimals and negative numbers: The text-number split formula treats the minus sign and decimal point as text, so "-123.45" would split at the "-" (giving "-" and "123.45"). Adjust the formula if you need to handle these.
- Numbers with commas: "1,234" would split at the comma. Use a different approach if you have thousands separators.
Alternatives: Flash Fill and Power Query
Flash Fill (Excel 2013+) can often guess the split pattern automatically. Type the desired result in the adjacent column, then press Ctrl+E. It's great for one-off tasks but not dynamic.
Power Query (Get & Transform) offers a more robust way to split columns by delimiter or by number of characters. You can also use the "Split Column by Digit to Non-Digit" transformation, which is exactly what you need for text-number splits. This is ideal for large datasets and repeatable workflows.
Frequently Asked Questions
Can I split at a specific number, like splitting "123456" into "123" and "456"?
Yes, use the LEFT and RIGHT functions. For example, =LEFT(A1,3) gives the first three characters, and =RIGHT(A1,3) gives the last three. This works for any position—just change the number of characters.
Why does my formula split at the first number but not the last?
The array formula finds the position of the first digit. If you want to split at the last digit, you'd need to find the position of the last digit, which requires a different formula (e.g., using LOOKUP or AGGREGATE). For most cases, splitting at the first digit is what you want.
Can I split text and numbers without formulas?
Yes, use Flash Fill (Ctrl+E) or Text to Columns with the "Fixed width" option. For Flash Fill, type the first result manually, then press Ctrl+E to fill the rest. For Text to Columns, set a manual break line at the right position.
How do I split a cell into multiple rows?
If you want each part in a separate row rather than column, use the TRANSPOSE function or copy the split columns and paste with "Transpose" (right-click → Paste Special → Transpose).
Does this work in Google Sheets?
Most formulas work the same in Google Sheets. The array formula may need to be entered with Ctrl+Shift+Enter (or use ARRAYFORMULA). Google Sheets also has a SPLIT function that splits by delimiter, and a REGEXEXTRACT function for more complex patterns.