How your formula works (should be evaluted with array entry - CTRL+SHIFT+ENTER):
=MIN(NOT(ISBLANK(B42:E42)))
ISBLANK(B42:E42)
returns array{FALSE,FALSE,FALSE,FALSE}
NOT({FALSE,FALSE,FALSE,FALSE})
returns array{TRUE,TRUE,TRUE,TRUE}
MIN({TRUE,TRUE,TRUE,TRUE}) returns 1 because
TRUEin excel equals to
1`
if you're using your formula without array entry, you get:
ISBLANK(B42:E42)
evaluates toISBLANK(#VALUE!)
because it should accept single cell instead range.ISBLANK(#VALUE!)
returnsFALSE
NOT(FALSE)
returnsTRUE
MIN(TRUE)
returns1
becauseTRUE
in excel equals to1
You should use
=MIN(IF(NOT(ISBLANK(B42:E42)),B42:E42))
with array entry (CTRL+SHIFT+ENTER)
or simply:
=MIN(B42:E42)
UPD:
if all cells in target range are blank, above formulas still returns 0
, in that case you could use:
=IF(COUNT(B42:E42),MIN(B42:E42),"")