ExcelExcel 2024+
MAKEARRAY function in Excel
Returns a calculated array of a specified row and column size, by applying a LAMBDA
=MAKEARRAY(rows, cols, lambda(row, col))MAKEARRAY syntax and parameters
Three arguments, three required.
- rowsnumberRequired
- colsnumberRequired
- lambda(row, col)anyRequired
MAKEARRAY examples
Formulas you'll actually reuse.
A 12×12 multiplication table from row and column indexes:
=MAKEARRAY(12, 12, LAMBDA(r, c, r * c))A 5×3 grid with ones on the diagonal:
=MAKEARRAY(5, 3, LAMBDA(r, c, IF(r = c, 1, 0)))
MAKEARRAY in Google Sheets
Same name — your formula ports as-is.
Try MAKEARRAY in the playground
Edit the example — nothing to install.
Preloaded with the MAKEARRAY formula from Example 1 — change anything and watch it respond.
Loading the editor…
Related functions
More ways Excel gets this done.
- ANDReturns TRUE if all of its arguments are TRUELogicalGoogle Sheets
- BYCOLApplies a LAMBDA to each column and returns an array of the resultsLogicalGoogle Sheets
- BYROWApplies a LAMBDA to each row and returns an array of the resultsLogicalGoogle Sheets
- FALSEReturns the logical value FALSELogicalGoogle Sheets
- IFSpecifies a logical test to performLogicalGoogle Sheets
- IFERRORReturns a value you specify if a formula evaluates to an error; otherwise, returns the result of the formulaLogicalGoogle Sheets