What about?
Sometimes you find yourself with a column of values and a criteria column containing 1 or 0 depending whether the value is to be included or not:
For getting set of data responding to the criteria the product of the two columns is suitable, if 0 is not a valid value:
While the Max-Function on the product column (as Matrix formula) simply returns the maximum (13) asked for, the Min-function fails because it also considers the zeros.
What's the answer?
Zeros in the product column remain zero, no matter what we do to the values. An idea is to shift down the values enough so the minimum becomes negative. An excellent choice is the maximum (determined before):
Das Minimum of these shifted products (-4) corrected for the shift (+13) is then the minimum (9) asked for.
Comments :