=MAKEARRAY(rows, columns, lambda)One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
Need more than a single MAKEARRAY formula? Try our free AI for Excel — it reads your entire spreadsheet, answers questions in plain English, and builds charts and analysis in the same chat.
rows:
The number of rows that the resulting array will have.
columns:
The number of columns that the resulting array will have.
lambda:
A LAMBDA function that defines the operation to perform on each element of the array, taking the row and column indices as parameters.
The MAKEARRAY function in Excel is a versatile tool that allows you to create an array of values based on a specified formula. It generates a two-dimensional array by applying a function to each element of the specified dimensions, making it a powerful feature for dynamic array calculations.
In simpler terms, the MAKEARRAY function helps you generate a grid of values based on a formula, enabling complex calculations and data manipulations in a structured format.
Imagine you want to create a multiplication table for the numbers 1 through 5 in an Excel spreadsheet.
| 1 | 2 | 3 | 4 | 5 | |
|---|---|---|---|---|---|
| 1 | |||||
| 2 | |||||
| 3 | |||||
| 4 | |||||
| 5 |
You want to fill this table with the product of the row and column numbers.
To create the multiplication table, you would use the MAKEARRAY formula as follows:
=MAKEARRAY(5, 5, LAMBDA(r, c, r * c))r is the row number and c is the column number.When you apply the formula, it generates a multiplication table as follows:
| 1 | 2 | 3 | 4 | 5 | |
|---|---|---|---|---|---|
| 1 | 1 | 2 | 3 | 4 | 5 |
| 2 | 2 | 4 | 6 | 8 | 10 |
| 3 | 3 | 6 | 9 | 12 | 15 |
| 4 | 4 | 8 | 12 | 16 | 20 |
| 5 | 5 | 10 | 15 | 20 | 25 |
Here, each cell is filled with the product of its row and column indices.
The MAKEARRAY function is particularly useful when you need to generate complex arrays or perform calculations that require a structured output. It allows you to create dynamic arrays without manually entering data, making it easier to visualize and analyze results.
Understanding how to use the MAKEARRAY function can significantly enhance your data manipulation capabilities in Excel, allowing you to create dynamic and insightful datasets.
Happy calculating!
You have a table where Column A contains the names of products and Column B contains their corresponding prices. You can use the MAKEARRAY function to create a new array that generates a grid of product names paired with their prices in a structured format. This allows for easy visualization of product offerings and pricing, facilitating better inventory management and sales presentations without the need for manual data entry or complex formatting.
Beyond the MAKEARRAY function: Better Analyst is a full Excel AI that goes well past individual formulas. Upload any spreadsheet and ask questions in plain English — you'll get formulas, data analysis, and charts back in seconds. It's a free AI Excel assistant that works with any .xlsx, .xls, or .csv file — no plugins, no Microsoft 365 required.
Don't have a spreadsheet yet? Use our free AI spreadsheet generator to turn a text prompt into a downloadable Excel file — a full AI Excel sheet maker that builds headers, columns, and formulas from your description.
Create a free account for formula help, explanations, and spreadsheet analysis. Usage limits depend on your plan.
Browse our complete library of Excel formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.