ElyxAI
formulas

How to How to Use MAKEARRAY Function in Excel

Excel 365

Learn how to use the MAKEARRAY function to dynamically create arrays of any size by applying a custom formula to each element. This powerful dynamic array function lets you generate tables, sequences, and calculated grids without manual entry, saving time on repetitive array creation tasks.

Why This Matters

MAKEARRAY eliminates tedious manual array creation and enables dynamic, formula-driven data generation that automatically adapts to changing parameters. It's essential for advanced data manipulation, automation, and building scalable spreadsheet solutions.

Prerequisites

  • Basic understanding of Excel formulas and cell references
  • Familiarity with dynamic arrays in Excel 365
  • Knowledge of row and column indexing concepts

Step-by-Step Instructions

1

Open a blank cell or create a new worksheet

Select an empty cell where you want the array to appear; MAKEARRAY will populate multiple cells with results starting from this position.

2

Enter the MAKEARRAY function syntax

Type =MAKEARRAY(rows, columns, LAMBDA(row, col, calculation)) where rows and columns define array dimensions and LAMBDA applies your formula to each cell.

3

Define the LAMBDA parameters

Set up the LAMBDA function with row and col parameters that will be used in your calculation; these reference the current position in the array being built.

4

Create your calculation formula

Inside LAMBDA, write your formula using row and col variables (e.g., row*col for a multiplication table or row+col for a sum grid).

5

Press Enter and review the results

Press Ctrl+Shift+Enter or simply Enter to execute; the formula will generate the complete array in the cells below your starting position.

Alternative Methods

Using nested IF and INDEX functions

Combine INDEX with conditional logic to create similar array structures, though this approach is more cumbersome and less efficient than MAKEARRAY.

Manual array entry with Ctrl+Shift+Enter

Enter multiple formulas manually and array-enter them, but this lacks the dynamic, scalable benefits of MAKEARRAY's single-formula approach.

Tips & Tricks

  • Use simple calculations first (like row+col) to understand MAKEARRAY behavior before attempting complex nested formulas.
  • MAKEARRAY automatically spills results to adjacent cells; ensure adequate empty space or results will be blocked with #SPILL! errors.
  • Combine MAKEARRAY with SEQUENCE for generating number patterns, or with RANDARRAY for random value grids.

Pro Tips

  • Nest MAKEARRAY inside other functions like SUM or AVERAGE to perform aggregate calculations on the generated array without storing intermediate results.
  • Use row=1 or col=1 conditions within LAMBDA to create headers or special formatting logic in your arrays.
  • Reference external cells in your LAMBDA formula (e.g., MAKEARRAY(5, $A$1, LAMBDA(r,c, r*$A$1))) to make your array generation data-driven and dynamic.

Troubleshooting

Formula returns #NAME? error

Verify you're using Excel 365 with dynamic array support; older Excel versions don't recognize MAKEARRAY. Also check that LAMBDA is spelled correctly.

Array only shows one value instead of filling multiple cells

Ensure your LAMBDA function references both row and col parameters and that your rows/columns arguments are greater than 1; check that the cell range below has no obstacles.

LAMBDA formula produces unexpected results

Test your formula logic independently by manually calculating expected values for specific row/col combinations to identify calculation errors.

Related Excel Formulas

Frequently Asked Questions

What Excel versions support MAKEARRAY?
MAKEARRAY is exclusive to Excel 365 (Microsoft 365 subscription) with dynamic array support. It's not available in Excel 2021, 2019, or earlier versions.
Can I use MAKEARRAY without LAMBDA?
No, LAMBDA is required within MAKEARRAY to define the calculation logic for each array element. Without it, the function cannot execute.
How do I create a multiplication table using MAKEARRAY?
Use =MAKEARRAY(10, 10, LAMBDA(r, c, r*c)) to generate a 10×10 multiplication table where each cell contains the product of its row and column numbers.
Can MAKEARRAY reference cells outside the formula?
Yes, use absolute references like $A$1 within your LAMBDA formula to reference external cells that provide input values for your calculations.

This was one task. ElyxAI handles hundreds.

Sign up