Maximum value in a cell

G

Guest

I am trying to set a maximum value in a cell. I have a percentage calculated
in one cell, from time to time the precentage is greater than 100%. Is it
possible to set the formula to only allow a maximum of 100%?
 
M

mdupris

You didn't give the formula in the cell currently, so let's say it's:
=B1/C1
If you change this formula to =IF(B1/C1>1,1,B1/C1) you should get what
you need.

= Marchand =
 
G

Guest

Maybe something like this:

A1: (a number)
B1: (a percent)

This formula multiplies the value in A1 by the lesser of the B1 Percent OR
100%
C1: =A1*MIN(B1,100%)

Does that help?
***********
Regards,
Ron

XL2002, WinXP
 
G

Guest

Use the MIN function.

=MIN(your formula, 100%)

This returns whichever value is lower between "your formula" and 100%.

HTH,
Elkar
 
G

Guest

THANK YOU, this is it!! You have no idea how long I have been trying to
figure this out!!
 

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