ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Removing text from a cell with text and numbers (https://www.excelbanter.com/excel-discussion-misc-queries/194101-removing-text-cell-text-numbers.html)

DoubleZ

Removing text from a cell with text and numbers
 
I am using Excel 2007. I am pasting extensive lists into excel from a
website. Column A is a list of different section numbers. As pasted, they
have both text and numbers (i.e. Sec. 25.67). I am curious if it is possible
to use a function that will remove the text and return just the number (i.e.
25.67)?

Rick Rothstein \(MVP - VB\)[_844_]

Removing text from a cell with text and numbers
 
Are the number parts always at the end of the text line? If so...

=MID(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456 789")),99)

Rick


"DoubleZ" wrote in message
...
I am using Excel 2007. I am pasting extensive lists into excel from a
website. Column A is a list of different section numbers. As pasted,
they
have both text and numbers (i.e. Sec. 25.67). I am curious if it is
possible
to use a function that will remove the text and return just the number
(i.e.
25.67)?



DoubleZ

Removing text from a cell with text and numbers
 
Thanks, Rick. That did the trick. Any pride I had in my excel skills has
now been humbled.

"Rick Rothstein (MVP - VB)" wrote:

Are the number parts always at the end of the text line? If so...

=MID(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456 789")),99)

Rick


"DoubleZ" wrote in message
...
I am using Excel 2007. I am pasting extensive lists into excel from a
website. Column A is a list of different section numbers. As pasted,
they
have both text and numbers (i.e. Sec. 25.67). I am curious if it is
possible
to use a function that will remove the text and return just the number
(i.e.
25.67)?





All times are GMT +1. The time now is 01:59 AM.

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