+ Reply to Thread
Results 1 to 7 of 7

LARGE Function with Conditions

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    839

    LARGE Function with Conditions

    Hi,

    I have data arranged in columns A and B in the attached file and would like to create a formula in cell D2 that will return the largest (and the 2nd, 3rd etc largest) values from column B that are associated with AAA, CCC or DDD.

    I've had a go producing at the formula but it doesn't seem to work - I would expect the answer to be 800 for the largest value and the 2nd largest would be 700.

    Can someone please suggest how to fix my formula.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: LARGE Function with Conditions

    =large(if(isnumber(find($b$2:$b$11,"aaacccddd")),$a$2:$a$11),1)

  3. #3
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    839

    Re: LARGE Function with Conditions

    Thanks for the quick reply

    Unfortunately this seems to return 0 rather than the number that I expected

  4. #4
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: LARGE Function with Conditions

    it is strange
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,175

    Re: LARGE Function with Conditions

    Try:

    =LARGE(IF(($B$2:$B$11="AAA")+($B$2:$B$11="CCC")+($B$2:$B$11="DDD"),$A$2:$A$11),1)

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: LARGE Function with Conditions

    This also will work in your version of Excel. It does not have to be array entered. Just commit with 'Enter' and fill down.
    Formula: copy to clipboard
    =IFERROR(AGGREGATE(14,6,$A$2:$A$11/(($B$2:$B$11="AAA")+($B$2:$B$11="CCC")+($B$2:$B$11="DDD")),ROWS(C$2:C2)),"")
    Dave

  7. #7
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,936

    Re: LARGE Function with Conditions

    #2 works when "UPPER CASE" vs lower.
    Ben Van Johnson

+ 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. [SOLVED] Request for Excel formula for two conditions (Large to small, then small to large)
    By nicholascky in forum Excel Formulas & Functions
    Replies: 29
    Last Post: 08-14-2016, 01:16 PM
  2. Using large amount of formulas based on conditions
    By tabishali in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-31-2016, 09:30 PM
  3. large function multiple conditions
    By jaredf in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-25-2016, 12:49 PM
  4. LARGE Function with multiple conditions
    By andrewc in forum Excel General
    Replies: 5
    Last Post: 08-20-2014, 11:40 AM
  5. Excel 2007 : INDEX LARGE with two conditions.
    By jvelez198 in forum Excel General
    Replies: 2
    Last Post: 02-20-2012, 08:26 AM
  6. Replies: 9
    Last Post: 07-17-2010, 05:28 PM
  7. Sum Large with Conditions
    By mcjohn in forum Excel General
    Replies: 4
    Last Post: 09-30-2009, 12:40 PM

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