+ Reply to Thread
Results 1 to 4 of 4

Maximum and minimum cell value

  1. #1
    Registered User
    Join Date
    03-05-2006
    Posts
    31

    Maximum and minimum cell value

    I need help with a formula. I need C22 to return a value of O5 x C21, but the value of C22 should never be higher than the value in Z98 and never lower than the value in Z99. Right now, all I have in C22 is =O5*C21 but of course it returns higher than Z98 or lower than Z99 so my spreadsheet won't work. Can anyone help? Thanks in advance!

  2. #2
    Guest

    Re: Maximum and minimum cell value

    Hi

    What do you want if O5*c21 is less than Z99 or more than Z98?

    Andy.

    "sharkfoot" <[email protected]> wrote
    in message news:[email protected]...
    >
    > I need help with a formula. I need C22 to return a value of O5 x C21,
    > but the value of C22 should never be higher than the value in Z98 and
    > never lower than the value in Z99. Right now, all I have in C22 is
    > *=O5*C21 *but of course it returns higher than Z98 or lower than Z99 so
    > my spreadsheet won't work. Can anyone help? Thanks in advance!
    >
    >
    > --
    > sharkfoot
    > ------------------------------------------------------------------------
    > sharkfoot's Profile:
    > http://www.excelforum.com/member.php...o&userid=32164
    > View this thread: http://www.excelforum.com/showthread...hreadid=519148
    >




  3. #3

    Re: Maximum and minimum cell value

    In C22 put the formula .MIN(MAX(Z99,05*C21),Z98) ed


  4. #4

    Re: Maximum and minimum cell value

    whoops: that should have a = in front of it
    =MIN(MAX(Z99,.05*C21),Z28)


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1