Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there a more efficient way to determine if a single character is a
number versus a non-number? I use the ASC() function to check for the ASCII values between 48-57? Thanks in advance |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Your method is one of the "safest" methods.
Someone may suggest a more "standard" method of using "Isnumeric", for example: Isnumeric("1") However, this is not always "safe", especially in older versions of Excel (e.g. Excel 5 and 97) Therefore, to test single characters, it's not worth taking the risk. So, I think using the ASC test is more safe. Regards, Edwin Tam http://www.vonixx.com "AP" wrote: Is there a more efficient way to determine if a single character is a number versus a non-number? I use the ASC() function to check for the ASCII values between 48-57? Thanks in advance |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
AP,
If you wish to be pedantic, what does "½" or "?" mean to you ? Nick "AP" wrote in message oups.com... Is there a more efficient way to determine if a single character is a number versus a non-number? I use the ASC() function to check for the ASCII values between 48-57? Thanks in advance |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Numeric to character | Excel Discussion (Misc queries) | |||
TO DELETE ONLY NUMERIC VALUES IN A CHARACTER AND NUMERIC CELL IN | Excel Discussion (Misc queries) | |||
Numeric values as character in CSV | Excel Discussion (Misc queries) | |||
how do I convert numeric value to its character value ex. 10=Ten | Excel Worksheet Functions | |||
Determine if character is text or numeric? | Excel Programming |