View Single Post
  #5   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.


"Jacob Skaria" wrote:

Suppose you have your values in A,B,C

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

If this post helps click Yes
---------------
Jacob Skaria


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