Apply any formula to every column automatically — one result per column, across the whole range.
BYCOL applies a LAMBDA function to each column of an array and returns one result per column as a spilled row. It's the column-based counterpart to BYROW — useful for column-level summaries, averages, or checks across a wide dataset.
BYCOL(array, lambda)| Argument | What it means |
|---|---|
| array required | The range to process column by column. |
| lambda required | A LAMBDA function with one parameter (representing each column). Must return a single value. |
=BYCOL(B2:F20, LAMBDA(col, AVERAGE(col)))Returns a 5-cell row where each cell is the AVERAGE of that column. A single formula replaces 5 separate AVERAGE formulas.
=BYCOL(B2:F20, LAMBDA(col, COUNTA(col)))=BYCOL(B2:F20, LAMBDA(col, MAX(col) > 1000))Returns TRUE or FALSE for each column — useful for quickly flagging which columns have any value above your threshold.
=VSTACK(B2:F20, BYCOL(B2:F20, LAMBDA(col, SUM(col)))) appends a totals row beneath your data as a formula output, leaving the original table untouched.
Type it in a live spreadsheet, get instant feedback. No videos, no downloads.
Start practising free →