Professional Documents
Culture Documents
Formula : =SMALL($A$2:$A$10,COUNTIF($A$2:$A$10,"<"&B2)+1)
Here come the difficult part what we need to do to make the range in above “small “ formula as dynamic
based on selection of product Type?
?
The formula to select the next highest value from dynamic range
Using simple “indirect” and “ concatenate “ formulas
=SMALL((INDIRECT(CONCATENATE("$B$",@CELL("ROW",INDEX($A$2:$B$10,MATCH(C2,$A$2:$A$10,0),2)))):INDIRECT(
CONCATENATE("$B$",@CELL("row",INDEX($A$2:$B$10,MATCH(C2,$A$2:$A$10,0),2))+(COUNTIF($A$2:$A$10,C2))-
1))),COUNTIF((INDIRECT(CONCATENATE("$B$",@CELL("ROW",INDEX($A$2:$B$10,MATCH(C2,$A$2:$A$10,0),2)))):INDIR
ECT(CONCATENATE("$B$",@CELL("row",INDEX($A$2:$B$10,MATCH(C2,$A$2:$A$10,0),2))+(COUNTIF($A$2:$A$10,C2))-
1))),"<"&D2)+1)