Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Array Formulas in Excel: How They Work

· 5 min read · Home Tech

In this article
  1. What Exactly Is an Array Formula?
  2. How Array Formulas Work Under the Hood
  3. How to Enter an Array Formula (Step by Step)
  4. Common Problems and How to Fix Them
  5. Array Formulas vs. Regular Formulas
  6. When to Use Array Formulas (and When Not To)
  7. Frequently Asked Questions

Array formulas in Excel let you perform multiple calculations on one or more items in a range, returning either a single result or multiple results without needing helper columns. They are entered by pressing Ctrl+Shift+Enter (in classic Excel) or by using dynamic array functions like SEQUENCE and FILTER (in Excel 365). This article explains what array formulas are, how to use them, common pitfalls, and how they compare to regular formulas.

What Exactly Is an Array Formula?

An array is a collection of values—numbers, text, or logical values—arranged in rows and columns. A normal Excel formula works on a single value, like =A1*2. An array formula works on a whole set of values at once, like =SUM(A1:A10*2), which doubles every number in A1:A10 and then sums the results.

There are two types:

  • Single-cell array formula: Performs multiple calculations but returns one result. Example: =SUM(IF(A1:A10>5, A1:A10)) sums only the values greater than 5.
  • Multi-cell array formula: Returns multiple results that spill into adjacent cells. Example: selecting C1:C3 and entering =A1:A3*B1:B3 gives the product of each row.

Before Excel 365 introduced dynamic arrays, you had to press Ctrl+Shift+Enter (CSE) to tell Excel you were entering an array formula. Excel would wrap it in curly braces like {=SUM(A1:A10*2)}. In Excel 365 and Excel 2021, dynamic arrays are the default—you just press Enter, and results spill automatically.

How Array Formulas Work Under the Hood

When you enter a normal formula, Excel evaluates it cell by cell. With an array formula, Excel evaluates the entire array in memory before returning the result. For example, =A1:A3*B1:B3 multiplies each pair of cells (A1*B1, A2*B2, A3*B3) to create a new array of three values. If you enter this as a single-cell formula in Excel 365, it spills the three results down the column.

Key operations that array formulas can perform:

  • Element-wise arithmetic: =A1:A10*2 doubles each value.
  • Conditional sums/counts: =SUM((A1:A10>5)*(B1:B10)) sums B where A is greater than 5.
  • Matrix multiplication: =MMULT(array1, array2) for linear algebra.
  • Lookup with multiple criteria: =INDEX(B1:B10, MATCH(1, (A1:A10="X")*(C1:C10="Y"), 0)).

Dynamic array functions like SEQUENCE, FILTER, SORT, UNIQUE, and RANDARRAY are built-in array formulas that automatically spill. They make many traditional CSE formulas obsolete.

How to Enter an Array Formula (Step by Step)

The method depends on your Excel version.

Excel 365 / Excel 2021 (Dynamic Arrays)

  1. Select the cell where you want the first result.
  2. Type the formula, e.g., =A1:A10*B1:B10.
  3. Press Enter. Excel automatically spills results into adjacent cells (if space is available).

Excel 2019 and Earlier (Legacy CSE)

  1. Select the cell (for a single result) or the range of cells (for multiple results).
  2. Type the formula without the curly braces.
  3. Press Ctrl+Shift+Enter instead of just Enter.
  4. Excel adds the curly braces { } automatically.

If you forget to press Ctrl+Shift+Enter, the formula will either return a #VALUE! error or calculate only the first element.

Common Problems and How to Fix Them

  • #VALUE! error: Often caused by mismatched array sizes. For example, =A1:A3*B1:B4 won't work because the arrays have different lengths. Ensure all arrays have the same number of rows and columns.
  • #SPILL! error: In dynamic Excel, this means the result would overwrite existing cells. Clear the obstructing cells or move the formula to a location with enough empty space.
  • Curly braces not appearing: If you're in legacy mode and pressed Ctrl+Shift+Enter but see no braces, check that you selected the correct range for a multi-cell result.
  • Editing a CSE formula: You cannot edit just part of a multi-cell array formula. You must select the entire range, edit, and press Ctrl+Shift+Enter again.
  • Performance issues: Large array formulas (e.g., over 100,000 cells) can slow down calculation. Use helper columns or Excel's built-in functions like SUMIFS instead when possible.

Array Formulas vs. Regular Formulas

FeatureRegular FormulaArray Formula
Operates onSingle valueRange of values
Entry methodEnterEnter (365) or Ctrl+Shift+Enter (legacy)
ReturnsOne resultOne or many results
Example=A1*B1=A1:A10*B1:B10
Use caseSimple calculationsComplex aggregations, matrix ops, multi-condition lookups

Regular formulas are easier to debug and maintain. Array formulas are more powerful but can be harder to understand. In many cases, modern alternatives like SUMIFS, COUNTIFS, and XLOOKUP can replace older array formulas without the complexity.

When to Use Array Formulas (and When Not To)

Use array formulas when:

  • You need to perform a calculation on a range that requires intermediate arrays (e.g., weighted averages with conditions).
  • You want to avoid helper columns for a one-off analysis.
  • You need matrix operations like MMULT or TRANSPOSE.
  • You're using dynamic array functions like FILTER or UNIQUE, which are array formulas by nature.

Avoid them when:

  • A dedicated function exists (SUMIF, COUNTIF, AVERAGEIF).
  • The dataset is very large—array formulas can be slow.
  • You need to share the workbook with users on older Excel versions that don't support dynamic arrays.
  • You want maximum clarity—helper columns are often easier for others to follow.

Frequently Asked Questions

Do I still need to press Ctrl+Shift+Enter in Excel 365?

No. Excel 365 and Excel 2021 use dynamic arrays by default. You just press Enter. However, if you open a workbook created in an older version that contains CSE formulas, they will still work, but you can edit them normally without Ctrl+Shift+Enter.

What does the @ symbol mean in array formulas?

The @ symbol is the implicit intersection operator. In dynamic Excel, it forces a formula to return a single value from an array, ignoring the spill. For example, =@A1:A10 returns the value in the same row as the formula, not the whole array.

How do I convert a CSE array formula to a dynamic array formula?

Simply select the cell with the old formula, press F2 to edit, then press Enter instead of Ctrl+Shift+Enter. If the formula is compatible with dynamic arrays (most are), it will spill automatically. If it returns a #SPILL! error, clear the obstructing cells.

Why does my array formula return 0 instead of the expected result?

This often happens when you're multiplying logical tests without double negatives. For example, =SUM((A1:A10>5)*(B1:B10)) works, but if you use =SUM(A1:A10>5) without SUM, it returns TRUE/FALSE. Wrap logical tests in parentheses and use -- to convert TRUE/FALSE to 1/0 if needed.

Can I use array formulas in Excel tables (ListObjects)?

Yes, but with limitations. Dynamic array formulas work in tables, but they don't spill within the table structure. You may need to place the formula outside the table or use structured references carefully. Legacy CSE formulas generally don't work well inside tables.

What is the difference between an array formula and a CSE formula?

They are the same thing. CSE stands for Ctrl+Shift+Enter, the key combination used to enter array formulas in legacy Excel. In modern Excel, array formulas are entered normally, so the term CSE is less common.