ExcelExcel 2024+
BYCOL function in Excel
Applies a LAMBDA to each column and returns an array of the results
=BYCOL(array, lambda(column))BYCOL syntax and parameters
Two arguments, two required.
- arrayarrayRequired
- lambda(column)anyRequired
BYCOL examples
Formulas you'll actually reuse.
A totals row for twelve monthly columns in one formula:
=BYCOL(B2:M13, LAMBDA(col, SUM(col)))The spread (max minus min) of each month's figures:
=BYCOL(B2:M13, LAMBDA(col, MAX(col) - MIN(col)))
BYCOL in Google Sheets
Same name — your formula ports as-is.
Try BYCOL in the playground
Edit the example — nothing to install.
Preloaded with the BYCOL formula from Example 1 — change anything and watch it respond.
Loading the editor…
Related functions
More ways Excel gets this done.
- ANDReturns TRUE if all of its arguments are TRUELogicalGoogle Sheets
- BYROWApplies a LAMBDA to each row and returns an array of the resultsLogicalGoogle Sheets
- FALSEReturns the logical value FALSELogicalGoogle Sheets
- IFSpecifies a logical test to performLogicalGoogle Sheets
- IFERRORReturns a value you specify if a formula evaluates to an error; otherwise, returns the result of the formulaLogicalGoogle Sheets
- IFNAReturns the value you specify if the expression resolves to #N/A, otherwise returns the result of the expressionLogicalGoogle Sheets