evaluate division
evaluate division
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 6 of 6

Thread: evaluate division

  1. #1
    New Member
    Join Date
    Apr 2002
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    I need help with a formula that will evaluate whether a number is divisible by 8 (no remainder). If the number in a cell (and it can be any number) is divisible by 8, formula returns Yes, if not, No.

    Thanks.

  2. #2
    MrExcel MVP
    Join Date
    Mar 2002
    Location
    Michigan USA
    Posts
    11,454
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-04-16 11:28, vincenzo wrote:
    I need help with a formula that will evaluate whether a number is divisible by 8 (no remainder). If the number in a cell (and it can be any number) is divisible by 8, formula returns Yes, if not, No.

    Thanks.
    One of the ways would be to use the MOD FUNCTION

    =IF(MOD(A2,8),"not divisible by 8","divisible by 8")



    Regards!

    Yogi Anand, D.Eng, P.E.
    Energy Efficient Building Network LLC
    www.energyefficientbuild.com

  3. #3
    MrExcel MVP Jay Petrulis's Avatar
    Join Date
    Mar 2002
    Location
    Chicago, IL USA
    Posts
    2,040
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi,

    Use the MOD function. If the test cell is A1, then try:

    =IF(MOD(A1,8)=0,"Yes","No")

    HTH,
    Jay

  4. #4
    New Member
    Join Date
    Apr 2002
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    That's it. Thanks very much!

  5. #5
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    =IF(MOD(A1,8),"No","Yes")

    or

    =MOD(A1,8) and custom format the cell containing this formula as...

    [=0]"Yes";"No"

  6. #6
    MrExcel MVP
    Join Date
    Mar 2002
    Location
    Michigan USA
    Posts
    11,454
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    =MOD(A1,8) and custom format the cell containing this formula as...

    [=0]"Yes";"No"
    Hi Mark:
    That's a beauty ... really ingenious use and practical!

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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

 

 
DMCA.com