Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to split a cell at the first number in Excel?

Usually, you can split text string by delimiter or fixed width in Excel. However, have you ever tried to split the string by the first number as below screenshot shown? Here I introduce the tricks on splitting a cell at the first number of a string in Excel.
doc split by first number 1

Split cell at the first number with formulas

Split cell at the first number with Word and Text to Columns

Enable you to do smarter, faster and better

Kutools - the best office productivity tool brings 300 advanced features to Excel. Details... Download...

Office Tab - brings tabbed interface to Excel and Word, make your work much easier. Details...Download...


Split cell at the first number with formulas


To split cells at the first number, you need formulas in Excel.

1. Select a cell that you will output the text part in, for instance B1, type this formula =TRIM(LEFT(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789"))-1)), drag auto fill handle down to extract the text part from the strings. See screenshot:
doc split by first number 2

2. Select a cell to output the number part, for instance, C1, type this formula, =TRIM(REPLACE(A1,1,LEN(B1),"")), and then drag the auto fill handle down to extract the number part from the strings. See screenshot:
doc split by first number 3


Split cell at the first number with Word and Text to Columns

TIf the strings are mixed with numbers in the first part and texts in the second part as below screenshot shown, you need to use the Find and Replace utility in Word then apply the Text to Columns utility in Excel.
doc split by first number 4

1. Copy the strings and paste in a Word document, and press Ctrl + H keys to enable the Find and Replace dialog.
doc split by first number 5

2. In the Find and Replace dialog, type ([0-9]{1,}) into the Find what text box, type \1, into the Replace with dialog, click More to expand the dialog, and check Use wildcards. See screenshot:
doc split by first number 6

3. Click Replace All, and then click Yes > OK in the popping out dialogs. See screenshots:

doc split by first number 7 shot arrow right doc split by first number 8

Now a comma has been added after every number string. See screenshot:
doc split by first number 9

4. Copy the strings and paste back to Excel sheet, and click Data > Text to Columns. See screenshot:
doc split by first number 10

5. In the Text to Columns dialog, check Delimited, click Next, and then check Comma in Delimiters section. See screenshot:

doc split by first number 11 shot arrow right doc split by first number 12

6. Click Next, select a cell to output the result and click Finish. See screenshot:
doc split by first number 13

Now the strings have been split by the first text.
doc split by first number 14

Note: this method also works while the first part is text, and you only need to type ,\1 into the Replace with text box. See screenshot:
doc split by first number 15

pay attention1Kutools for Excel: The 200 functions you must have in Excel, you can free download from here


Excel Productivity Tools

Kutools for Excel - The Best Office Productivity Tool

  • Brings 300 powerful advanced features to Excel, enable you to do smarter, faster and better.
  • No longer need memorizing formulas and VBA codes, give your brain a rest from now on.
  • Become an Excel expert in 3 minutes, Complicated and repeated operations can be done in seconds, 
  • Reduce thousands of keyboard & mouse operations every day, say goodbye to occupational diseases now.
  • 110,000 highly effective people and 300+ world-renowned companies' choice.
  • 60-day full features free trial. 60-day money back guarantees. 2 years of free upgrade and support.

Office Tab - brings tabbed interface to Office, make your work much easier.

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.