ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Quick/Easy Question? (https://www.excelbanter.com/excel-discussion-misc-queries/222106-quick-easy-question.html)

Dave

Quick/Easy Question?
 
Using Excel 2003...

I have a worksheet with three columns.
-In the first column I have data containg a name and position #. For
example, Joey Doe 01199.
-In the second column I would like to extra only the numerical values. How
can I do this? For the example above I would like to extract 01199.

Bob Phillips[_3_]

Quick/Easy Question?
 
=MID(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"01234 56789")),SUMPRODUCT(LEN(A1)-LEN(SUBSTITUTE(A1,{0,1,2,3,4,5,6,7,8,9},""))))

--
__________________________________
HTH

Bob

"Dave" wrote in message
...
Using Excel 2003...

I have a worksheet with three columns.
-In the first column I have data containg a name and position #. For
example, Joey Doe 01199.
-In the second column I would like to extra only the numerical values.
How
can I do this? For the example above I would like to extract 01199.




xlmate

Quick/Easy Question?
 
if your data is always the same with 5 numbers after the name, you can use
=RIGHT(B2,5)


--
Hope this is helpful

Appreciate that you provide your feedback by clicking the Yes button below
if this post have helped you.


Thank You

cheers, francis



"Dave" wrote:

Using Excel 2003...

I have a worksheet with three columns.
-In the first column I have data containg a name and position #. For
example, Joey Doe 01199.
-In the second column I would like to extra only the numerical values. How
can I do this? For the example above I would like to extract 01199.



All times are GMT +1. The time now is 02:11 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com