View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JBeaucaire[_90_] JBeaucaire[_90_] is offline
external usenet poster
 
Posts: 222
Default How do I set a maximum value (e.g. cap at 200)

You can eliminate the double evaluation with a simple MIN() formula:

=MIN((A1*B1*C1,200)

This will always show the lower number...your formula or 200.

--
"Actually, I *am* a rocket scientist." -- JB

Your feedback is appreciated, click YES if this post helped you.


"LeeLobb" wrote:

That works exactly how I wanted it...thanks for your assistance!

"PJFry" wrote:

Try this:
A B C D
42 86 .05 =IF(A1*B1*C1200,200,A1*B1*C1)
--
Regards,

PJ
Please rate this post using the vote buttons if it was helpful.



"LeeLobb" wrote:

I have a formula set to multiply a rate by a quantity, I then need to cap the
total at 200
example:
42 people x 86 minutes x $0.05 = $180.60
but I need the total to cap at $200 when a different amount of people is
entered and takes it above $200
make sense?