+ Reply to Thread
Results 1 to 4 of 4

Thread: Formula for returning a value with a min and max

  1. #1
    Registered User
    Join Date
    08-29-2011
    Location
    Oregon, USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Formula for returning a value with a min and max

    I'm attempting to write a formula that will need to do the following:

    Using 10% of the sum of a block of cells (B17:E17) calculate that sum but,
    if the sum < 130,000, show 130,000
    if the sum > 250,000, show 250,000

    I can get it to calculate based on one of the criteria above, but I'm not sure how to take both into consideration. This is how it's started so far:

    =IF((SUM(B17:E17))/10<130000,130000,(SUM(B17:E17))/10)

    I'm stumped on how to now plug in the maximum criteria.

    Any help would be greatly appreciated.
    Last edited by NBVC; 08-29-2011 at 02:09 PM.

  2. #2
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,640

    Re: Formula for returning a value with a min and max

    Try:

    =MEDIAN(130000,SUM(B17:E17),250000)
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,228

    Re: Formula for returning a value with a min and max

    The MIN/MAX formula would be:

    =MIN(MAX(130000, SUM(B17:E17)), 250000)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    08-29-2011
    Location
    Oregon, USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Formula for returning a value with a min and max

    Thank you for the quick solutions!

+ 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.2.0