I've seen some examples of using SUM()
inside an ARRAYFORMULA()
in Google Spreadsheets (and oddly enough, they all seem like workarounds) but I can't figure out how to apply them to using MIN()
instead.
Let's say I have columns A
, B
and C
and I just want to get the result of MIN(A:C)
on the D
column, just for the three cells that would match each row. The straightforward way should be ARRAYFORMULA(MIN(A1:C))
but surely enough that doesn't work.
How can I programmatically calculate the MIN()
of some cells within a row, for all the rows in a Google Spreadsheet?
in D1 try this workaround/formula:
and see if that works ?
Basically this
MIN()
always returns a single value, regardless of the range size, soARRAYFORMULA()
does not change the output - it only helps convert formulas that do not handle a range.As a quick answer, you could simply rewrite the logic of
MIN()
using something likeIF()
:=ARRAYFORMULA(if(A:A < B:B, if (A:A < C:C, A:A, C:C), if(B:B < C:C, B:B, C:C)))