+ Reply to Thread
Results 1 to 5 of 5

Trying to find a max value with multiple criteria

  1. #1
    Forum Contributor
    Join Date
    11-23-2013
    Location
    La Crosse, Wi
    MS-Off Ver
    Excel 2010
    Posts
    106

    Trying to find a max value with multiple criteria

    I am trying to find the maximum stage value (column D) for numerous months (columns A and B). For example, if I want to get the maximum value for January 1949, it should come back with 4.70 feet. I get #VALUE with following formula. Any ideas on how to do this?

    Jeff
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Trying to find a max value with multiple criteria

    Please try
    =MAX(INDEX((A2:A16=F3)*(B2:B16=1)*D2:D16,))

  3. #3
    Forum Contributor
    Join Date
    11-23-2013
    Location
    La Crosse, Wi
    MS-Off Ver
    Excel 2010
    Posts
    106

    Re: Trying to find a max value with multiple criteria

    Thanks for the help! It works well for my example, but when I adjust it for the spreadsheet I am working on it generates an Index error.

    Jeff

  4. #4
    Forum Contributor
    Join Date
    11-23-2013
    Location
    La Crosse, Wi
    MS-Off Ver
    Excel 2010
    Posts
    106

    Re: Trying to find a max value with multiple criteria

    This was my new equation...

    =MAX(INDEX((Data!$A$1:$A$25714=A2)*(Data!$B$1:$B$25714=1)*Data!$D$1:$D$25714,))

    Jeff

  5. #5
    Forum Contributor
    Join Date
    11-23-2013
    Location
    La Crosse, Wi
    MS-Off Ver
    Excel 2010
    Posts
    106

    Re: Trying to find a max value with multiple criteria

    I figured out why there was an error. There was an alphanumeric character in column D which was throwing the error. Thanks for the help Bo!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Referencing one name find multiple criteria multiple results within a date range
    By Flora Lastra in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-14-2018, 04:47 PM
  2. Count/Find X on multiple lines w/ multiple criteria
    By artistapart in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-28-2016, 12:55 PM
  3. Replies: 1
    Last Post: 02-15-2016, 04:35 PM
  4. Trying to find median & average for multiple columns with multiple criteria
    By help-meplease in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-11-2016, 06:59 PM
  5. Replies: 2
    Last Post: 05-26-2015, 07:29 PM
  6. Find multiple values with multiple criteria in vba macro
    By Jovillanueva in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 10-02-2014, 09:46 PM
  7. Replies: 2
    Last Post: 05-10-2012, 10:38 AM

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