Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Is there a way to find out whether theres a number in a cell??

Hi,

Is there a worksheet function that could help finding out whether
theres a number in a cell, within a string etc??

Thanks.

Elaine.

  #2   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Is there a way to find out whether theres a number in a cell??

check "is functions" in help
there are isnumber(),istext() etc.

" wrote:

Hi,

Is there a worksheet function that could help finding out whether
theres a number in a cell, within a string etc??

Thanks.

Elaine.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Is there a way to find out whether theres a number in a cell??

how about if my cell contains apple123?? it doesnt seem that the
isnumber(), istext() function work....

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default Is there a way to find out whether theres a number in a cell??

Hi Elaine

Try
=SUMPRODUCT(--(ISNUMBER(FIND({0,1,2,3,4,5,6,7,8,9},A1))))0


--
Regards

Roger Govier


wrote in message
oups.com...
how about if my cell contains apple123?? it doesnt seem that the
isnumber(), istext() function work....



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 698
Default Is there a way to find out whether theres a number in a cell??

with
A1 containing a number, alphanumeric, text, or blank

Try this:
=MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"0123456789") )<=LEN(A1)

That formula returns TRUE if there are any numbers in A1's value

Does that help?
***********
Regards,
Ron

XL2002, WinXP


" wrote:

how about if my cell contains apple123?? it doesnt seem that the
isnumber(), istext() function work....




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 698
Default Is there a way to find out whether theres a number in a cell??

Here's a shorter alternative to the formula I posted

=SUM(--ISNUMBER(SEARCH({0,1,2,3,4,5,6,7,8,9},A1)))0

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Ron Coderre" wrote:

with
A1 containing a number, alphanumeric, text, or blank

Try this:
=MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"0123456789") )<=LEN(A1)

That formula returns TRUE if there are any numbers in A1's value

Does that help?
***********
Regards,
Ron

XL2002, WinXP


" wrote:

how about if my cell contains apple123?? it doesnt seem that the
isnumber(), istext() function work....


  #7   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Is there a way to find out whether theres a number in a cell??

Using a helper column with the entire column copied over to it, there is a
feature in the ASAP Utilities that will delete all alpha characters, leaving
only the numbers........ASAP Utilities is a free add-in available at
www.asap_utilities.com

Vaya con Dios,
Chuck, CABGx3



" wrote:

Hi,

Is there a worksheet function that could help finding out whether
theres a number in a cell, within a string etc??

Thanks.

Elaine.


  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Is there a way to find out whether theres a number in a cell??

Thanks guys!!

all the formulas work!! yay!

Thanks again!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I find the number of letters in a cell? dave_laroche Excel Discussion (Misc queries) 4 April 30th 07 07:17 PM
Find the 1st occurance of a number in a cell lovemuch Excel Worksheet Functions 4 August 17th 06 01:02 AM
Find max number of character and return cell address ExcelMonkey Excel Worksheet Functions 5 April 15th 06 04:13 AM
find number position in excel text cell Don Excel Discussion (Misc queries) 5 April 7th 06 09:34 PM
find the cell above any number in any range steve alcock Excel Worksheet Functions 12 May 27th 05 05:48 AM


All times are GMT +1. The time now is 02:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"