If Then formula

  • Thread starter Thread starter Oskar
  • Start date Start date
O

Oskar

Greetings Oracle’s of Excel;

I am stumped. I an attempting to simply round up and round down base
on a decimal.

A whole number value is placed in (E2) now in (E3) I want to: Divide
(E2) by 7, If decimal remainder is .3 or less round down, if .4 or mor
round up.

Thanks in advance Sages of Excel.


Joh
 
Try something like this:

=IF(E2<>"",IF(MOD(E2,7)>3,INT(E2/7)+1,INT(E2/7)),"")

Note in your original question that you have not allowed for anythin
between .3 and .
 
Back
Top