+ Reply to Thread
Results 1 to 5 of 5

Get max value

  1. #1
    Forum Contributor
    Join Date
    08-29-2014
    Location
    Chicago, IL
    MS-Off Ver
    2014
    Posts
    164

    Get max value

    i'm trying to get a max value based on 2 criteria.

    call data sheet is the raw data source

    i press Shift, ctrl, enter and get error


    =MAX(IF('call data'!B2:B14=F2,IF('call data'!C2:C14=G2,'call data'!D2:D14)))

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Get max value

    I would revert to

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    the above simply divides the values by the boolean results, if any 1 boolean returns FALSE the act of #/0 will lead to error, and that value will be ignored -- the use of 15 (LARGE) and 6 (ignore errors) means you will get the largest valid result
    (add an outer IFERROR if you need to account for possibility of no valid results)

  3. #3
    Forum Contributor
    Join Date
    08-29-2014
    Location
    Chicago, IL
    MS-Off Ver
    2014
    Posts
    164

    Re: Get max value

    ty. what is the 14 and 6 in the beginning for?

  4. #4
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Get max value

    sorry, typo in my prior post, 14 is the function call (LARGE) and 6 is the option which, in this instance, tells AGGREGATE to ignore errors, the final parameter of 1 provides the "k" value for use with LARGE, i.e. 1 (largest)

  5. #5
    Forum Contributor
    Join Date
    08-29-2014
    Location
    Chicago, IL
    MS-Off Ver
    2014
    Posts
    164

    Re: Get max value

    thanks for the explanation. the formula worked

+ 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