Excel BYCOL function

Calculates one result for each column of a range with a LAMBDA. It has the same name in Spanish Excel.

Syntax

English Excel

=BYCOL(array, lambda)

Spanish Excel (Mexico)

=BYCOL(matriz, lambda)

Spanish Excel (Spain, Latin America)

=BYCOL(matriz; lambda)

ArgumentWhat it is
arrayThe range to go through column by column.
lambdaA LAMBDA that receives one column and returns a single value.

Example

BYCOL is like BYROW, but it walks columns: it hands the LAMBDA one whole column at a time and returns a row with one result per column.

=BYCOL(B2:E6,LAMBDA(col,MAX(col)))

Common mistake

Excel 365 only. The result is a row that spills to the right; for rows use BYROW.

About Ads

This site uses Google AdSense to display ads. These ads help us keep WebHerramientas completely free. Ads are managed by Google and meet strict security and privacy standards.

Advertising
Loading ad...

Ads help us keep WebHerramientas free for everyone

Practice BYCOL

Type the formula in the sheet and check it instantly. Spanish or English function names both work. See all lessons

One result per column with BYCOL

BYCOL is like BYROW, but it walks columns: it hands the LAMBDA one whole column at a time and returns a row with one result per column.

Example=BYCOL(B2:E6,LAMBDA(col,MAX(col)))BYCOLLAMBDA
Step 1/2

In B7, with a single formula, show the highest sale of each month.

B7
ABCDEF
1BranchJanFebMarApr
2Downtown48,200.0051,300.0047,900.0052,800.00
3North35,900.0033,100.0039,800.0036,400.00
4South61,750.0058,200.0064,100.0060,300.00
5East29,400.0031,800.0030,500.0033,900.00
6West52,300.0049,700.0055,600.0054,100.00
7Best
8Average
9

Tip: while typing, click a cell or drag across several to insert their reference. F4 anchors the reference with $.

Frequently asked questions

What is BYCOL called in Spanish?
It has the same name: BYCOL. What changes is the separator: Spanish Excel in Spain and much of Latin America separates arguments with semicolons.
Why does BYCOL use semicolons in some Excel versions?
It depends on regional settings. Where the comma is the decimal mark (Spain, much of South America), Excel separates arguments with semicolons. English Excel and Mexican Spanish Excel use commas.
What is the most common BYCOL mistake?
Excel 365 only. The result is a row that spills to the right; for rows use BYROW.