min_cond function

Minimum Value on a Subset