==BYCOL(array, [lambda])
=BYCOL(range,LAMBDA(column,SUM(column)))
The BYCOL function can be used to quickly calculate the sum of all columns in a range. This is done by using the above formula, and will return the sum of each column in the range using the SUM function.
=BYCOL(range,LAMBDA(column,AVERAGE(column)))
The BYCOL function can also be used to calculate the average of each column in a range. This can be done by using the above formula and will return the average of each column in the range using the AVERAGE function.
=BYCOL(range,LAMBDA(column,MAX(column)))
The BYCOL function can also be used to calculate the maximum value of each column in a range. This can be done by using the formula above and will return the maximum value of each column in the range using the MAX function.
=BYCOL(range,LAMBDA(column,MIN(column)))
This formula can also be used to calculate the minimum value of each column in a range, and will return the minimum value of each column in the range using the MIN function.
BYCOL is a function that takes two arguments and applies a LAMBA function to each column of an array in a "by column" fashion, returning one result per column.