+ Reply to Thread
Results 1 to 5 of 5

LARGE( IF( AND( condition A; condition B);Array);rank)

  1. #1
    Registered User
    Join Date
    11-26-2019
    Location
    Geneva
    MS-Off Ver
    10
    Posts
    6

    LARGE( IF( AND( condition A; condition B);Array);rank)

    Hi team, I am trying to sort by weight an equity index through sector and subsector.

    Formula is ={LARGE(IF(AND($C:$C=$G3;$D:$D=$H3);$E:$E);1)} where in column C are sectors, column D subsectors, column E index weight.

    It doesn't work though. Your help is very welcome. I attach spreadsheet sample.

    Best,
    XL
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    05-29-2013
    Location
    MD
    MS-Off Ver
    Excel 365
    Posts
    148

    Re: LARGE( IF( AND( condition A; condition B);Array);rank)

    You can't use AND and IF like that in an array formula, since AND only returns one result. You can multiple the TRUE/FALSE (Excel substitues 1 and 0) for the following:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-26-2019
    Location
    Geneva
    MS-Off Ver
    10
    Posts
    6

    Re: LARGE( IF( AND( condition A; condition B);Array);rank)

    Excellent, that works. Why do I need to enter this formula with Ctrl+Shift+Enter i.e. brackets for it to work?

    Thanks Duncandhu

  4. #4
    Forum Contributor
    Join Date
    05-29-2013
    Location
    MD
    MS-Off Ver
    Excel 365
    Posts
    148

    Re: LARGE( IF( AND( condition A; condition B);Array);rank)

    Quote Originally Posted by Jambon95 View Post
    Excellent, that works. Why do I need to enter this formula with Ctrl+Shift+Enter i.e. brackets for it to work?

    Thanks Duncandhu
    Because it is an "array formula" - these functions usually only work with a single cell, and you are specifying many.

  5. #5
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: LARGE( IF( AND( condition A; condition B);Array);rank)

    A non-array solution perhaps

    =LARGE(INDEX(($C$3:$C$27=$G3)*($D$3:$D$27=$H3)*$E$3:$E$27,0),I$2)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

+ 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] Trying to use a formula to rank with a condition
    By tonym33 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-26-2019, 11:02 AM
  2. [SOLVED] How To Rank Or Create A Top 5 Count / Rank With If Condition
    By PaddyP in forum Excel General
    Replies: 10
    Last Post: 05-14-2019, 03:04 PM
  3. [SOLVED] Rank formula based on condition
    By shrijan in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 09-01-2016, 08:22 AM
  4. [SOLVED] Sum Large values along with Count Condition - Array Formula
    By acsishere in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-28-2013, 05:45 PM
  5. How to use Rank with 2 Condition
    By wpm7113 in forum Excel General
    Replies: 4
    Last Post: 06-25-2008, 02:53 PM
  6. rank function on condition
    By David Obeid in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-07-2008, 02:23 AM
  7. Rank with condition
    By R. Choate in forum Excel General
    Replies: 12
    Last Post: 04-26-2006, 10:55 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