Hi,
I'm trying to add multiple criteria to the formula I found on a website.
{=INDEX(array,SMALL(IF(vals=val,ROW(vals)-ROW(INDEX(vals,1,1))+1),nth))}
For their example, this formula translates to {=INDEX(amts,SMALL(IF(ids=id,ROW(ids)-ROW(INDEX(ids,1,1))+1),H6))}
This formula works for me, but now I would like to add 2 more criteria. One that the number has to be bigger than or equal to a threshold and one that the number has to be smaller than or equal to another threshold.
The website says I have to look at boolean logic and gives a link to this function {=INDEX(range1,MATCH(1,(A1=range2)*(B1=range3)*(C1=range4),0))}
Which translates to this formula in their example {=INDEX(E5:E11,MATCH(1,(H5=B5:B11)*(H6=C5:C11)*(H7=D5:D11),0))}
but the function on there doesn't let me get the nth match, only the first.
I'm looking for a way to combine both functions, so I can have multiple criteria, but still get the nth outcome.
Kind regards,
Matt
Bookmarks