Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default When does ISNUMERIC point to a number?


Help file indicates ISNUMERIC(expression) evaluates the expression to a
boolean value (True or False) depending upon whether it is a number or
not. It seems a simple concept. But as he so often does, Tom Ogilvy has
dazzled me with the following revelations (which are verified):

isnumeric("02,21,14.23")
True
? isnumeric("35E1")
True
? isnumeric("34D1")
True

I would add that while Isnumeric("5abc") -- False
Isnumeric("5abc7")---True
The presence of the first and last characters being present in the
STRING is crucial.

I await enligtenment. TIA


--
davidm
------------------------------------------------------------------------
davidm's Profile: http://www.excelforum.com/member.php...o&userid=20645
View this thread: http://www.excelforum.com/showthread...hreadid=390472

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default When does ISNUMERIC point to a number?

Excel will try to convert a string to a number. if it can, then ISNUMERIC
will be true.
A text string such as "5E2" can be converted to 5 x 10^2 := 500

however, I get this

?isnumeric("5abc7")
False

Excel XP, SP3


"davidm" wrote:


Help file indicates ISNUMERIC(expression) evaluates the expression to a
boolean value (True or False) depending upon whether it is a number or
not. It seems a simple concept. But as he so often does, Tom Ogilvy has
dazzled me with the following revelations (which are verified):

isnumeric("02,21,14.23")
True
? isnumeric("35E1")
True
? isnumeric("34D1")
True

I would add that while Isnumeric("5abc") -- False
Isnumeric("5abc7")---True
The presence of the first and last characters being present in the
STRING is crucial.

I await enligtenment. TIA


--
davidm
------------------------------------------------------------------------
davidm's Profile: http://www.excelforum.com/member.php...o&userid=20645
View this thread: http://www.excelforum.com/showthread...hreadid=390472


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default When does ISNUMERIC point to a number?

The problem is "what is a number" ?

If you meant only numbers and decimal and thousands separator, Excel is a
bit "smarter" than that an will validate a "number" that uses scientific
notation, currency character etc...

IMO, most often your best bet is to build your own function depending on
what exactly you are after (i.e. if you need to handle exactly the format
you want)...

--
Patrice


"davidm" a écrit dans
le message de ...

Help file indicates ISNUMERIC(expression) evaluates the expression to a
boolean value (True or False) depending upon whether it is a number or
not. It seems a simple concept. But as he so often does, Tom Ogilvy has
dazzled me with the following revelations (which are verified):

isnumeric("02,21,14.23")
True
? isnumeric("35E1")
True
? isnumeric("34D1")
True

I would add that while Isnumeric("5abc") -- False
Isnumeric("5abc7")---True
The presence of the first and last characters being present in the
STRING is crucial.

I await enligtenment. TIA


--
davidm
------------------------------------------------------------------------
davidm's Profile:

http://www.excelforum.com/member.php...o&userid=20645
View this thread: http://www.excelforum.com/showthread...hreadid=390472



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
IsNumeric with array or range Jerry M New Users to Excel 4 April 24th 07 01:29 PM
opposite of IsNumeric thephoenix12 Excel Discussion (Misc queries) 10 June 24th 05 07:37 PM
opposite of IsNumeric thephoenix12[_3_] Excel Programming 2 June 23rd 05 10:29 PM
IsNumeric Test scott Excel Programming 5 February 8th 05 07:59 PM
Not IsNumeric not working - or is it me? Ed Excel Programming 3 January 6th 05 11:30 PM


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

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

About Us

"It's about Microsoft Excel"