How can I use the ROUNDOWN and ROUNDUP functions in an "IF" functi

  • Thread starter Thread starter EXCEL IN NEED
  • Start date Start date
E

EXCEL IN NEED

I am trying to have the "ROUNDOWN" function as my true, and "ROUNDUP"as my
false... See my current incorrect formula below.... HELP

=IF(I35/I21>1,ROUNDDOWN((I35/(I21+(I21+1)/2),0),(ROUNDUP(I35/I21),0)


why wont this work????
 
Hi,

Your parenthesis were incorrect

=IF(I35/I21>1,ROUNDDOWN(I35/(I21+(I21+1)/2),0),(ROUNDUP(I35/I21,0)))

Mike
 
Hi,

And while you are fixing the parenthesis problem we could also simplify it to:

=IF(I35/I21>1,ROUNDDOWN(I35/(1.5*I21+0.5),),ROUNDUP(I35/I21,))
 
Back
Top