Multiplication table
=MAKEARRAY(12, 12, LAMBDA(r, c, r*c)) fills a times table in one formula.
MAKEARRAY creates a grid of specified height and width, computing each cell with a LAMBDA that receives row and column indexes. It builds lookup tables, sensitivity matrices, and coordinate-driven templates without manual fill.
Use MAKEARRAY when each cell depends on its row and column index, such as times tables or scenario grids.
Skip MAKEARRAY for a simple sequential list. SEQUENCE or ROW/COLUMN combos are lighter.
Set row count and column count for the output matrix.
Write LAMBDA(row_index, col_index, formula) using 1-based indexes.
Return the cell value from the LAMBDA for that position.
Let the result spill as a block with room on the sheet.
Combine with XLOOKUP inputs on edges for two-way lookup tables.
Keep LAMBDA bodies fast because rows times columns calls add up.
=MAKEARRAY(12, 12, LAMBDA(r, c, r*c)) fills a times table in one formula.
=MAKEARRAY(5, 3, LAMBDA(r, c, "R"&r&"C"&c)) prints grid addresses for a layout mock.
=MAKEARRAY(10, 4, LAMBDA(r, c, INDEX(fee_row, c)*r)) builds fees by tier column and volume row.
Build this without starting from a blank cell
Use a Better Sheets tool for MAKEARRAY, then watch a walkthrough when you want the full pattern.
Watch how MAKEARRAY works
Guides that explain MAKEARRAY in more depth.
3 possible ways to create a formula for every row in a column in a Google Spreadsheet. And two bonus ways to make it look nicer. - Auto fill - Double Click - ArrayFormula
Read post →Boost your confidence, master formula usage and overcome errors in this step-by-step guide. Join us to demystify spreadsheets.
Read post →SEQUENCE returns a grid of sequential numbers. You set how many rows and columns, the starting value, and the step between values. It replaces manual 1, 2, 3 fill patterns and pairs well with MAP, LAMBDA, and date math for generated row labels.
Read guide →LAMBDA defines an anonymous function inside a formula. You name parameters, write the calculation, then pass arguments when you call it. Combined with MAP, BYROW, or a named LAMBDA in the Name manager, it replaces fragile copy-paste logic across big tables.
Read guide →MAP walks aligned arrays element by element and applies a LAMBDA to each position. Pass one array for unary transforms or several arrays for element-wise combinations. It is the modern replacement for many ARRAYFORMULA column operations.
Read guide →TOCOL converts a range into a single column. You can choose whether it reads down each column first or across rows first. It replaces manual paste-special transpose chains when reshaping blocks for UNIQUE or FILTER.
Read guide →Done reading about MAKEARRAY?
Membership unlocks 636+ tutorials, unlimited generators, and every template. Practical lessons. Zero fluff.
Need this once
Jump to a free tool or a single tutorial for this topic.
Learning Sheets for real
Unlock the full library, generators, and templates with membership.