+ Reply to Thread
Results 1 to 5 of 5

Maximum value below a certain threshold.

  1. #1
    Registered User
    Join Date
    01-22-2009
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2007
    Posts
    22

    Maximum value below a certain threshold.

    I am trying to devise an excel formula that is able to find the maximum value within a range of values that is less than a certain threshold. For example, if there was a range of values 1, 2, 3, 4 and 5, and the threshold value was set to 4, then the formula would return 3 as this is the maximum value below this threshold. If the threshold was set to 4.1 the formula would then return 4.

    Many thanks in advance for your help.
    Last edited by Fishhooky; 09-16-2010 at 08:55 AM.

  2. #2
    Forum Contributor
    Join Date
    05-27-2008
    Location
    Newcastle Upon Tyne UK
    MS-Off Ver
    XP Excel 2003
    Posts
    105

    Re: Maximum value below a certain threshold.

    Try this

    =LARGE(B1:B10,(RANK(D1,B1:B10)+1))

    where the value that you set as maximum in D1

    Just realised if the value isn't in the list it returns N/A - there will be another solution

    edvwvw

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Maximum value below a certain threshold.

    Try this:
    =MAX(IF(B1:B5<D1,B1:B5))

    Comfirmed with ctrl+shift+ente

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Maximum value below a certain threshold.

    Similar to the earlier ex.

    =SMALL(B1:B10,1+COUNTIF(B1:B10,"<"&D1))

    where D1 holds threshold

  5. #5
    Registered User
    Join Date
    01-22-2009
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Maximum value below a certain threshold.

    Thanks for your replies, both edvwvw and Donkeyote's solutions seem to work for my case.

    Thanks again.

+ 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