Skip to content
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.

  1. A totals row for twelve monthly columns in one formula:

    =BYCOL(B2:M13, LAMBDA(col, SUM(col)))
  2. 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…