BYCOL Function
Apply a LAMBDA to each column of an array and return the results as a row. BYCOL takes two arguments: the array, and a LAMBDA with one parameter that receives each column and returns a single value. A LAMBDA that returns an array returns #CALC!, and a second argument that is neither a LAMBDA nor a function name such as SUM returns #VALUE!.
Syntax
BYCOL(array_or_initial, array_or_lambda, lambda)
Category: Logical. Minimum arguments: 2. Maximum arguments: 2.
Available for supported offline calculation.
Examples
=BYCOL({1,2;3,4},LAMBDA(col,SUM(col)))
The formula spills the row 4, 6: the sums of the columns {1;3} and {2;4}.
Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.