I have a workbook with 2 worksheets, Sheet1 and Sheet2.
Sheet1 has a value (product code) to look up, and an empty cell to fill:
A B
A100
A200
B150
C3AB
Sheet2 has a bunch of product codes and costs:
A B
A100 35
A100 14
A100 0
A200 10
A200 12
etc, etc, etc
I’m using the following formula in Sheet1 B1 to find the MIN matching value from Sheet2:
=MIN(IF(Sheet2!$A$1:$A$5=A1,Sheet2!$B$1:$B$5))
How can I also exclude returning a match of 0? In the case of product A100, I would want to return the lowest non-zero match which would be 14.
Try submitting this as an array formula in B1
untested
I think This Will work