+ Reply to Thread
Results 1 to 9 of 9

how do I test for Integer?:check out ROUND

  1. #1
    DerbyJim1978
    Guest

    how do I test for Integer?:check out ROUND

    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

    "Stephen P Thomas" wrote:

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


  2. #2
    Bob Phillips
    Guest

    re: how do I test for Integer?:check out ROUND

    =IF(INT(formula_result)=formula_result,"Integer","")

    --
    HTH

    Bob Phillips

    "Stephen P Thomas" <Stephen P Thomas@discussions.microsoft.com> wrote in
    message news:264C81F6-130E-4C94-A174-5C0ACA17A9DC@microsoft.com...
    > I wish to test if the results of a calculation is an integer. An unknown
    > function perhaps in the stats package?




  3. #3
    Shaz
    Guest

    re: how do I test for Integer?:check out ROUND

    =IF(MOD(B8,INT(B8))=0,"integer","not integer")

    hope this helps.


  4. #4
    Shaz
    Guest

    re: how do I test for Integer?:check out ROUND

    =IF(MOD(B8,INT(B8))=0,"integer","not integer")


  5. #5
    Stephen P Thomas
    Guest

    how do I test for Integer?

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

  6. #6
    DerbyJim1978
    Guest

    re: how do I test for Integer?:check out ROUND

    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

    "Stephen P Thomas" wrote:

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


  7. #7
    Bob Phillips
    Guest

    re: how do I test for Integer?:check out ROUND

    =IF(INT(formula_result)=formula_result,"Integer","")

    --
    HTH

    Bob Phillips

    "Stephen P Thomas" <Stephen P Thomas@discussions.microsoft.com> wrote in
    message news:264C81F6-130E-4C94-A174-5C0ACA17A9DC@microsoft.com...
    > I wish to test if the results of a calculation is an integer. An unknown
    > function perhaps in the stats package?




  8. #8
    Shaz
    Guest

    re: how do I test for Integer?:check out ROUND

    =IF(MOD(B8,INT(B8))=0,"integer","not integer")

    hope this helps.


  9. #9
    Shaz
    Guest

    re: how do I test for Integer?:check out ROUND

    =IF(MOD(B8,INT(B8))=0,"integer","not integer")


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1