I have a list of prices for products that are variations (different size, color) of multiple parent product. Some products (for reasons not important to this question) have a p
If the input data is sorted based on the parent reference level you can simply
SMALL
formula (i.e. the smallest value)Place this in the 1st row
=IF(SMALL(OFFSET($I$1,MATCH(C1,$C:$C,0)-1,0,COUNTIF($C:$C,C1)),1)=0,SMALL(OFFSET($I$1,MATCH(C1,$C:$C,0)-1,0,COUNTIF($C:$C,C1)),2),SMALL(OFFSET($I$1,MATCH(C1,$C:$C,0)-1,0,COUNTIF($C:$C,C1)),1))