FormulaCraft

BYCOL

BYCOL iterates over each column of an array and passes it to a LAMBDA function, returning the results as a row array. It is ideal for computing column-level summaries (sums, averages, maximums) without writing separate formulas for each column.

Excel
=BYCOL(A2:C4, LAMBDA(col, SUM(col)))
Google Sheets
=BYCOL(A2:C4, LAMBDA(col, SUM(col)))

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

How it works

  1. 1Select the array you want to process column by column (e.g., A2:C4).
  2. 2Define a LAMBDA with one parameter representing each column and the operation to apply (e.g., SUM, AVERAGE, MAX).
  3. 3BYCOL returns a horizontal array with one result per column; spill it into a row of cells.

Need a version for your data?

Try: “Sum each column of my data table separately with a single formula

Related

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: