Function Name: BYCOL

The BYCOL function in Excel is a powerful tool that applies a LAMBDA function to each column in a given array and returns an array of the results. This function is particularly useful for performing operations on data organized in columns without needing to manually copy and paste information.
Syntax:
=BYCOL(array, lambda(column))
  • array: The range of data you want to process.
  • lambda: A LAMBDA function that takes a column as a single parameter and calculates one result per column.

Purpose:

  • Data Analysis: Quickly calculate statistics like sum, average, or maximum for each column in a dataset.
  • Dynamic Data Linking: Link data from external sources dynamically for analysis without manual update
  •  

Examples

  1. Maximum Value of Each Column

    =BYCOL(A1:C2, LAMBDA(column, MAX(column)))
    

    This formula returns the maximum value from each column in the range A1:C2

  2. Sum of Squared Values in Each Column

    =BYCOL(A1:C2, LAMBDA(column, SUMSQ(column)))
    

    This formula calculates the sum of the squared values for each column in the range A1:C2