0Pricing
Excel Formulas Academy · Lesson

What Spilling Means

Understand how one formula can output an array across many cells.

What Spilling Means is a free Excel Formulas Academy lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Excel Formulas Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

One Formula, Many Answers

Most formulas you have written return a single value into a single cell. Dynamic arrays change that. One formula can return a whole list or grid of results, and the spreadsheet automatically places each result into its own cell.

This automatic placement is called spilling. You type the formula once, press Enter, and the results flow out across nearby cells like water filling a tray.

A First Spill Example

Suppose A1:A5 holds the numbers 1 through 5. In cell C1 type =A1:A5*10 and press Enter.

Instead of one answer, you get five: 10, 20, 30, 40, 50, stacked down C1:C5. You only typed the formula in C1, but the result spilled into the cells below it automatically.

=A1:A5*10

The Spill Range

The block of cells a formula fills is called its spill range. Only the top-left cell, called the anchor, actually contains the formula. The other cells are filled automatically and show a faint blue border when you select the anchor.

You cannot edit the spilled cells directly. If you try, you get an error. To change the output, you edit the formula in the anchor cell.

Referencing a Spill With the # Operator

Because a spill can grow or shrink, you reference the whole result with the spill operator: a hash sign after the anchor address.

If a formula in C1 spills down to C5, then C1# means the entire spilled range. Use it elsewhere like =SUM(C1#) and the total will always include every spilled value, even if the spill grows later.

=SUM(C1#)

Spills Update Themselves

The real power of spilling is that it is dynamic. If you add a new number to the source range, the spill range automatically grows to include it. Remove a value and the spill shrinks.

You never have to copy a formula down again. The single anchor formula adjusts its output size to match the data it reads.

Functions That Spill

Many modern functions are built to return arrays and therefore spill:

  • FILTER returns matching rows.
  • UNIQUE returns a distinct list.
  • SORT and SORTBY reorder a range.
  • SEQUENCE generates a list of numbers.

You will meet FILTER and UNIQUE in this course. Each one outputs many results from a single formula.

A UNIQUE Spill in Action

Imagine column A lists regions: East, West, East, North, West. To get a clean list of distinct regions, type one formula:

=UNIQUE(A2:A6)

It spills three results: East, West, North. Add another region to the source and the spilled list grows on its own. One formula, an always-current list.

=UNIQUE(A2:A6)

Spilling Across Columns Too

Spills are not limited to going down. A formula can spill across columns, or even fill a two-dimensional grid.

For example =SEQUENCE(3,4) spills a block 3 rows tall and 4 columns wide, filling 12 cells with the numbers 1 to 12. The direction and shape depend entirely on the array the formula produces.

=SEQUENCE(3,4)

Where Dynamic Arrays Are Available

Dynamic arrays and spilling work in Excel for Microsoft 365 and Excel 2021 and later. Google Sheets has supported array spilling for years too.

Older versions like Excel 2016 and 2019 do not spill. There, array formulas had to be confirmed with Ctrl+Shift+Enter and could not grow automatically. If your formulas refuse to spill, check your version first.

No More Copying Down

Before dynamic arrays, you would write =B2*C2 in one cell and drag it down hundreds of rows. With spilling you write it once.

The formula =B2:B100*C2:C100 spills one result per row across the whole range. Maintenance becomes trivial: there is a single formula to read and fix, not hundreds of copies that might drift out of sync.

=B2:B100*C2:C100

Mental Model for Spilling

Think of a spilling formula as a small program that outputs a shape of data, not just one number. The spreadsheet then lays that shape into the grid starting at the anchor cell.

Your job is to make sure there is empty room for the shape to land. The next lessons show how to produce useful shapes with FILTER and UNIQUE, and what to do when the landing spot is blocked.

Quick Check

Test your understanding of spilling.

Recap: What Spilling Means

You learned that a dynamic array formula can return many results, and that the spreadsheet automatically lays them out in a spill range.

  • Only the anchor cell holds the formula.
  • Reference the whole spill with the # operator, like C1#.
  • Spills grow and shrink with the source data automatically.
  • Functions like FILTER, UNIQUE, SORT, and SEQUENCE all spill.

Next, you will use FILTER to return only the rows you want.

Frequently asked questions

Is the “What Spilling Means” lesson free?

Yes — the full text of “What Spilling Means” is free to read here on the web, and the Excel Formulas Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Excel Formulas Academy course, upgrade to CoddyKit PRO.

What will I learn in “What Spilling Means”?

Understand how one formula can output an array across many cells. You practise Excel Formulas Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Excel Formulas Academy?

No prior experience is required. Excel Formulas Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “What Spilling Means” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Excel Formulas Academy lesson?

Yes. Every Excel Formulas Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. What Spilling Means
  2. Filtering Data With FILTER
  3. Removing Duplicates With UNIQUE
  4. Handling the SPILL Error
← Back to Excel Formulas Academy