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

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????
 
M

Mike H

Hi,

Your parenthesis were incorrect

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

Mike
 
S

Shane Devenshire

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,))
 

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