TX Sheet Control

MAKEARRAY Function

Function

Create an array of a given size whose values a LAMBDA function calculates. The first argument is the number of rows, the second the number of columns, and the third a LAMBDA with two parameters, which receive the row and the column of each value, counted from 1. A size less than 1, or a LAMBDA without exactly two parameters, returns #VALUE!. The syntax names the arguments array_or_initial, array_or_lambda and lambda.

Syntax

MAKEARRAY(array_or_initial, array_or_lambda, lambda)

Category: Logical. Minimum arguments: 3. Maximum arguments: 3.

Available for supported offline calculation.

Examples

=MAKEARRAY(2,2,LAMBDA(row,col,row*col))

The formula returns a 2-by-2 array that spills: 1 and 2 in the first row, 2 and 4 in the second.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

See Also