how do i create a divisible formula

T

Tim

I use a xl doc that has numbers in the cells that need to be divisible by 15.
Can i incert a formula that will check the number in B5 and display an error
message in F10 if the number in B5 is not divisible by 15.
 
L

Lars-Åke Aspelin

I use a xl doc that has numbers in the cells that need to be divisible by 15.
Can i incert a formula that will check the number in B5 and display an error
message in F10 if the number in B5 is not divisible by 15.


Try this formula in cell F10:

=IF(MOD(B5,15)>0,"error message","")

Hope this helps / Lars-Åke
 
H

Huber57

Tim,

Insert this formula into F10:
=IF(B5/15-INT(B5/15)>0,0,1)

This will return a 1 or a 0 depending on whether or not it is divisible by 15.
You can change the 1 and 0 to any message you would like, just use quotes if
it is text.

Doug
 

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

Top