Applies a LAMBDA function to each column in an array and returns an array of the results.
이 함수는 Google Sheets에서도 Excel과 동일하게 작동합니다 — 구문과 인수가 같습니다.
BYCOL(array, lambda)The BYCOL function processes an array column by column, passing each column as an array to the specified LAMBDA function. It is particularly useful for performing column-wise calculations, such as finding the maximum or sum of each column in a data range.
=BYCOL(A1:C2, LAMBDA(col, SUM(col)))결과: Array of 3 sums
Calculates the sum of each of the three columns in the range A1:C2.
BYCOL specifically iterates by columns, whereas MAP can iterate over arrays element by element.