Hey guys,
I need a solution to remove all characters in a cell except for numbers.
For example: 123456John*-acdf
Result: 123456
Thanks in advance!
Hey guys,
I need a solution to remove all characters in a cell except for numbers.
For example: 123456John*-acdf
Result: 123456
Thanks in advance!
A couple of questions...
Is the number always at the beginning of the string?
Will it always be a whole number?
Will there ever be leading zeros to start the number?
Last edited by Tony Valko; 12-05-2015 at 02:44 PM.
Biff
Microsoft MVP Excel
Keep It Simple Stupid
Let's Go Pens. We Want The Cup.
Try this formula
In B1 and copy down
Formula:Please Login or Register to view this content.
Data Range
A B 1 123456John*-acdf 123456 2 Test13224Test2 13224 3 TestTest3654789 3654789 4 Test321654Test3 Test4 321654
If you like my answer please click on * Add Reputation
Don't forget to mark threads as "Solved" if your problem has been resolved
"Nothing is so firmly believed as what we least know."
--Michel de Montaigne
Thanks Alkey! Your solution worked! Genius!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks