Closed Thread
Results 1 to 2 of 2

Thread: Finding the maximum value meeting criteria

  1. #1
    Valued Forum Contributor
    Join Date
    12-07-2004
    Posts
    598

    Finding the maximum value meeting criteria

    Problem:

    \"Columns D:E contain two lists of numbers.
    How could we create a formula that will return the maximum value, providing that it meets the following two conditions:
    -If the maximum value is in List 1, it must be larger than 3.
    -If the maximum value is in List2, it must be larger than 25.
    In case the maximum value found does not meet the above criteria, the formula should look for the next largest number until finding the largest number matching criteria.

    Solution:

    Using the MAX and IF functions in the following Array Formula:
    {=MAX(MAX(IF(A2:A5>C2,A2:A5)),MAX(IF(B2:B5>C3,B2:B5)))}

    Example:

    List1____List2
    3________20_____3
    5________22_____25
    1________14
    2________4

    Result___5

  2. #2
    Registered User
    Join Date
    10-30-2003
    Location
    Fargo ND
    Posts
    1

    should you avoid array formulas if non-array formulas will do the job?

    This could be done with =MAX(IF(MAX(A:A)>C3,MAX(A:A),0),IF(MAX(B:B,)>C4,MAX(B:B),0)) without the need for using an array formula.

Closed 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