Not More Than or Maximum in a formula

E

Ed

Hopefully fourth time's the charm on trying to post this question:

Is there a way to have excel limit a sum to not more than ____? The
formula as it stands is =IF(AND(C16="Pharmacy",ISNUMBER
(X16),D16>5),D16-5). To that final equation, I'd like the sum to
result in a maximum or ceiling of $30. I've tried it with MAX a few
different ways so far, (e.g., ... MAX(D16-5, 30)) but no luck.
 
L

Lars-Åke Aspelin

Hopefully fourth time's the charm on trying to post this question:

Is there a way to have excel limit a sum to not more than ____? The
formula as it stands is =IF(AND(C16="Pharmacy",ISNUMBER
(X16),D16>5),D16-5). To that final equation, I'd like the sum to
result in a maximum or ceiling of $30. I've tried it with MAX a few
different ways so far, (e.g., ... MAX(D16-5, 30)) but no luck.

Try this formula:

=MIN(D16-5,30)

Hope this helps / Lars-Åke
 
E

Ed

Try this formula:

=MIN(D16-5,30)

Hope this helps / Lars-Åke

Perfect!

Now if someone can figure out why I wasn't allowed to post this
question directly on Microsoft Online....?
 

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