... If - Then ...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to display the results a mathmatical equation in a cell unless the
results is greater that 300. If the result is greater than 300 I want to
display 300.

The function is <<< =(12*C15)/(3.1416*B15) >>>

I thought that this is the correct statement, but it doesn't work; <<<
=IF(300>(12*C15)/(3.1415*B15),(12*C15)/(3.1415*B15),300) >>>

Could you tell me if I'm on the right track, or could you steer my down the
correct path?

Darrell
 
What you suggested works fine for me. (You could do it even more simply
though, with the MIN function: =min((12*C15)/(3.1415*B15),300)
Perhaps there is another problem?
 
=MIN((12*C15)/(3.1416*B15),300)

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Darrell, try this,

=IF((12*C15)/(3.1416*B15)>300,300,(12*C15)/(3.1416*B15))
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003
 
Thanks

Paul B said:
Darrell, try this,

=IF((12*C15)/(3.1416*B15)>300,300,(12*C15)/(3.1416*B15))
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003
 
Thanks

peter dmz said:
What you suggested works fine for me. (You could do it even more simply
though, with the MIN function: =min((12*C15)/(3.1415*B15),300)
Perhaps there is another problem?
 

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

Back
Top