Thread: INT and MOD
View Single Post
  #1   Report Post  
Big Rick
 
Posts: n/a
Default INT and MOD

Hello, one and all.

I have two cell formulas as follows.
=INT($I$6+A1+$Z$6+$A$13-$A$17-$A$21-$Y$7)
=MOD($I$6+A1+$Z$6+$A$13-$A$17-$A$21-$Y$7,1)*($S$4/5)
The first gives me the number of whole days holiday available.
The second gives me the number of hours left (up to 8) (S4 can be either
37.50 or 40)

Please can you tell me why, that if the number of holidays left was was 1/2
a day,(0.50) does the result give -1 for the first formula and 4 for the
second formula. Surely the INT of 0.50 should be 0.
Your help is and always has been greatly appreciated.

Thanking you in anticipation.
--
Big Rick