MAKEARRAY can be used to create arrays with variable dimensions that are calculated.

Thefunctionis a custom LAMBDA (see below) to use when creating values in the array.

The total number of values in the array returned by MAKEARRAY will equal rows * columns.

Excel LAMBDA function

LAMBDA structure

The MAKEARRAY uses theLAMBDA functionto apply the function used to calculate array values.

Note: to generate an array with sequential values, see theSEQUENCE function.

Thecalculationcan be a hardcoded value as well.

Excel LET function

In the formula below.

LET Function

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

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

Excel MAP function

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….

Excel SCAN function

Excel REDUCE function

Excel MAKEARRAY function

Excel BYCOL function

Excel BYROW function