FIND the first (and any) number within a cell

  • Thread starter Thread starter Matt
  • Start date Start date
M

Matt

is there some sort of wildcard that can be used to represent any number? I
would like to find the first number in a cell.
 
Hi Matt,

Consider a cell contains both alphabet and numeric say cell A1 contains as
follows

Soundar1

Use the following formula in B1(or where ever your want), you will get
result as 1

=MID(A1,MATCH(TRUE,ISNUMBER(1*MID(A1,ROW($1:$9),1)),0),1)

and press control+shift+enter. You will get first number from the cell A1.

Note it will work upto 9 characters length in A1, if your text length is
more, change $9 to the length you want.

For more details information please refer below link

http://office.microsoft.com/en-us/excel/HA011549011033.aspx

Hope this will clear your doubt.

Regards,
Soundar.


and give
 
Thank you Soundar1.

Soundar said:
Hi Matt,

Consider a cell contains both alphabet and numeric say cell A1 contains as
follows

Soundar1

Use the following formula in B1(or where ever your want), you will get
result as 1

=MID(A1,MATCH(TRUE,ISNUMBER(1*MID(A1,ROW($1:$9),1)),0),1)

and press control+shift+enter. You will get first number from the cell A1.

Note it will work upto 9 characters length in A1, if your text length is
more, change $9 to the length you want.

For more details information please refer below link

http://office.microsoft.com/en-us/excel/HA011549011033.aspx

Hope this will clear your doubt.

Regards,
Soundar.


and give
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top