• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Small Function With Multiple Condition

I am trying to pull the ranks using small function from sheet 2, by matching sector (C3 from Sheet1) with column B from Sheet 2.
But now I also want more condition to be added, i.e. it should pull only those Ranks which are less than cell B5)

Please help me with the same, I have tried adding multiple conditions, but its showing errors
 

Attachments

  • Small with Multiple Condition.xlsx
    14.6 KB · Views: 8
Hi,

Added in BOLD

=IFERROR(SMALL(IF(Sheet2!$B$4:$B$289=Sheet1!$C$3,IF(Sheet2!$C$4:$C$289<$B$5, Sheet2!$C$4:$C$289)),Sheet1!$B6), "<112")
 

Attachments

  • Small with Multiple Condition_Chris.xlsx
    15.5 KB · Views: 11
An alternative to nesting the IF statements is to use a product for the AND relationship between the two conditions
= IFERROR( SMALL( IF( (PrimarySegment=Segment)*(TSRRank<threshold), TSRRank), k ), "TSR<112")

I have left the defined names that I introduced to help me make sense of the formula but it should be obvious what they reference.
 
Back
Top