how do I test for Integer?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I wish to test if the results of a calculation is an integer. An unknown
function perhaps in the stats package?
 
Stephen,

I can't think of a formula that tests whether or not it is a integer however
I can supply another solution:

If A1 = the results of your calculation, let's say 0.5

Then in A2 write =int(A1), this will return the value 1

In A3 write = if(A1=A2,"Yes","No"). This will tell you whether or not your
original value was an integer or not.

You may also wish to check out ROUND (roundup/rounddown) and CEILING formulae.

Regards

Jim
 

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