Min excluding zero values, without an array fomrula
Time travel is very reliable, but only in the forward direction!
Benadryl won yesterday and I got the formula wrong. Clearly:
If MIN() does not return zero then
use MIN()
else
use the SMALL() formula
endif
=IF(MIN(R2:AA2)<0,MIN(R2:AA2),SMALL(R2:AA2,COUNTI F(R2:AA2,0)+1))
This gets the correct min with any combination of positive and negatives and
specifically excludes zero.
--
Gary''s Student - gsnu200854
"Héctor Miguel" wrote:
hi, Gary''s !
An interesting alternative is:
=SMALL(R2:AA2,COUNTIF(R2:AA2,0)+1)
But I don't know if this will pick up any speed performance...
(just *curious*)... do you have a "time travel machine" ?
- the first post from you that I "saw" (in my OE) was it the one ~20 minutes *after* Tony's post...
where you state that the SMALL function doesn't work when negative values are present
- and *suddenly* (in my OE) *appears* a second post (from you) but ~3 minutes *before* Tony's post...
and your proposal is (exactly) the same Tony's formula, the one that you *after* question for negative values (???)
as I said... (just *curious*) :D
regards,
hector.
|