Divide by the minimum non-zero number in a range of cells
If you don't want an array formula
Assuming there will always be at least 1 non-zero cell and there's no text
in the range:
=MIN(INDEX(((A1:A7<0)*A1:A7)+((A1:A7=0)*1E+100),, 1))
--
Biff
Microsoft Excel MVP
"Shane Devenshire" wrote in
message ...
Hi,
If you don't want an array formula try this
=SUMPRODUCT((A1:A7<0)*(MIN(A1:A7)=A1:A7)*A1:A7)
--
If this helps, please click the Yes button.
Cheers,
Shane Devenshire
"Opus" wrote:
I need to find the minimum non-zero number in a range of cells that
contains
some zeroes. So that I can divide by the minimum number. Any ideas?
If I just use the MIN function, it returns a value of 0, then when my
formula divides by that I get the divide by zero error.
|