BYCOL Function
Runs a LAMBDA on each column of a range and returns one result per column.
Category
Logical
Available in
Microsoft 365, Excel 2024
Returns
A spilled row, one result per column
Overview
BYCOL is BYROW turned sideways: your LAMBDA receives one column at a time and returns a single value for it.
The results spill across, lining up neatly under (or over) the columns they summarise.
Syntax
=BYCOL(array, lambda(column)) Explain
Arguments
| Argument | Required? | What it does |
|---|---|---|
| array | Yes | The range to work through, column by column. |
| lambda | Yes | A LAMBDA with one parameter (the column) that returns a single value. |
Examples
Example 1 — Quarter totals
Total each quarter in one formula in B6.
B6fx=BYCOL(B2:D5, LAMBDA(c, SUM(c)))
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Rep | Q1 | Q2 | Q3 |
| 2 | Ana | 120 | 150 | 130 |
| 3 | Ben | 90 | 110 | 100 |
| 4 | Cara | 200 | 180 | 220 |
| 5 | Dev | 80 | 95 | 75 |
| 6 | Total | 490 | 535 | 525 |
=BYCOL(B2:D5, LAMBDA(c, SUM(c))) Explain
Example 2 — Best result per quarter
Swap SUM for MAX to find each quarter's top figure.
=BYCOL(B2:D5, LAMBDA(c, MAX(c))) Explain
Returns 200, 180, 220.
Common mistakes
- #CALC! errors. The LAMBDA returned an array instead of one value per column.
Notes

Author
Kyle Stott
Certified Microsoft Excel Expert
Kyle has worked professionally with Microsoft Excel for over a decade and has consulted on and taught Excel best practices to over 400 companies across 30+ countries.