Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Checking if value is a number

How would I check to see if a value is an integer? Is there such
function

I am trying to grab values off a worksheet and perform calculations t
them, the only problem is that sometimes these values are "N/A" whic
is a string. Since we can't perform calculations on strings, m
program will crash

I was hoping to do something like this:

If value is integer the
perform calculatio
end i

how would i do this
--------
Message sent via www.excelforums.com
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Checking if value is a number

Hi
see your other posting

--
Regards
Frank Kabel
Frankfurt, Germany

"jonx - ExcelForums.com"
schrieb im Newsbeitrag ...
How would I check to see if a value is an integer? Is there such a
function?

I am trying to grab values off a worksheet and perform calculations

to
them, the only problem is that sometimes these values are "N/A" which
is a string. Since we can't perform calculations on strings, my
program will crash.

I was hoping to do something like this:

If value is integer then
perform calculation
end if

how would i do this?
---------
Message sent via www.excelforums.com


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Checking if value is a number

if isnumeric(value) then
perform calculation
End if

--
Regards,
Tom Ogilvy

"jonx - ExcelForums.com" wrote in
message ...
How would I check to see if a value is an integer? Is there such a
function?

I am trying to grab values off a worksheet and perform calculations to
them, the only problem is that sometimes these values are "N/A" which
is a string. Since we can't perform calculations on strings, my
program will crash.

I was hoping to do something like this:

If value is integer then
perform calculation
end if

how would i do this?
---------
Message sent via www.excelforums.com



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
checking the absolute value of a number Derrick Excel Discussion (Misc queries) 3 July 2nd 09 07:40 PM
Checking a date/number between two others [email protected] Excel Discussion (Misc queries) 6 March 31st 09 12:01 AM
number checking diam Excel Discussion (Misc queries) 0 November 29th 06 05:46 PM
number checking diam Excel Discussion (Misc queries) 0 November 29th 06 05:35 PM
Checking a number of sheets sphenisc Excel Worksheet Functions 1 November 17th 05 06:55 PM


All times are GMT +1. The time now is 12:31 AM.

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"