Syntax
| Parameter | Description |
|---|---|
| rows | Parameter of the MAKEARRAY function. |
| cols | Parameter of the MAKEARRAY function. |
| lambda | Parameter of the MAKEARRAY function. |
Examples
Multiplication table
=MAKEARRAY(10, 10, LAMBDA(r, c, r*c))
Identity matrix
=MAKEARRAY(5, 5, LAMBDA(r, c, IF(r=c, 1, 0)))
Checkerboard pattern
=MAKEARRAY(8, 8, LAMBDA(r, c, IF(MOD(r+c, 2)=0, "B", "W")))
Common Errors
The LAMBDA function doesn't accept exactly 2 parameters (row and column index), or rows/cols is not a positive integer.
The LAMBDA function returns an error for one or more row/column combinations.
Tips
The LAMBDA receives row and column indices starting from 1, not 0. The top-left cell gets r=1, c=1.
Use MAKEARRAY to create structured test data: =MAKEARRAY(100, 5, LAMBDA(r,c, r*100+c)) generates unique IDs for a 100x5 grid.
The LAMBDA body can use IF, MOD, math, text functions — anything. The row and column arguments let you create position-dependent patterns.
Try MAKEARRAY in Viztab
Import your data and use MAKEARRAY with 370+ other formulas. No signup required.
Open Viztab