How do I set a maximum value (e.g. cap at 200)

L

LeeLobb

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

Jacob Skaria

Suppose you have your values in A,B,C

=IF((a1*b1*c1)>200,200,a1*b1*c1)

If this post helps click Yes
 
J

JBeaucaire

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.
 
J

JBeaucaire

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.
 
P

PJFry

Good point.
--
Regards,

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

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