BYCOL can accept an abbreviated “eta lamba” syntax for simple operations like SUM, as explained below.

The short form is for convenience.

It is concise and easy to read.

BYCOL function example - sum all columns

However, the behavior cannot be customized.

The long-form syntax uses the LAMBDA function and can be customized as desired.

See below for an example of BYCOL formulas that use both options.

BYCOL function example - sum all columns

However, you are free to use whatever name you like.

It will not work in all scenarios because the logic can’t be modified.

For example, the formula in the next section below can’t use the eta lambda syntax.

BYCOL function example - sum all columns

The formula is a bit more complex because we need more logic.

This is a situation where we can’t use the short-form syntax above.

SeeBoolean operations in array formulasfor more information about the logic inside of SUM.

BYCOL function example - sum all columns

You could use COUNTIFS instead of SUM to solve this problem.

The trick is to wrap the functions in theHSTACKorVSTACKfunctions (depending on the layout needed).

Because of the currentarray of arrayslimitation in Excel, this formula will not spill down across all columns.

BYCOL function example - sum all columns

It will initially only calculate results for the first column.

You will then need to copy the formula manually to all columns in a second step.

LET Function

The Excel LET function lets you define named variables in a formula.

BYCOL function example - sum columns with short-form syntax

BYROW can apply stock functions like SUM, COUNT, and AVERAGE or a custom LAMBDA function.

All results are returned at the same time in a single array….

BYCOL function example - count values over 900

BYCOL function example - multiple calculations at the same time

Excel formula: Get column totals

Excel formula: Count columns that contain specific values

Excel LAMBDA function

Excel LET function

Excel MAP function

Excel SCAN function

Excel REDUCE function

Excel MAKEARRAY function

Excel BYROW function

BYCOL function example - sum all columns

BYCOL function example - sum columns with short-form syntax

BYCOL function example - count values over 900

BYCOL function example - multiple calculations at the same time