This tutorial demystifies Excel 365's "spill range" feature, a key aspect of dynamic arrays. Understanding spill ranges is crucial for effectively using dynamic array formulas.
- Spill Range References
- Key Spill Range Characteristics
- Clearing a Spill Range
- Modifying a Spill Range
- Controlling Spill Range Size
- Removing a Spill Range
Excel Spill Ranges
Dynamic array formulas, when producing multiple results, "spill" these results onto the worksheet. The spill range is the array of values outputted by the formula into adjacent cells. A blue border highlights the entire spill range, indicating its connection to the formula in the top-left cell.
Unlike traditional array formulas, dynamic arrays eliminate the need to manually select the output range. The formula is entered in a single cell, and Excel handles the rest. The spill range dynamically adjusts as the source data changes. Deleting the top-left cell's formula removes the entire spill range.
Spill Range References (# Operator)
To reference an entire spill range, use the hash symbol (#) after the top-left cell's address. This is a spill range reference.
For instance, if the UNIQUE
formula in cell C2 produces a spill range, referencing =C2#
accesses all values within that range. To reference from another sheet, use =Sheet1!C2#
, and from another workbook, use =[Book1.xlsx]Sheet1!$C2#
.
This is equivalent to a standard range reference (e.g., =C2:C5
), but automatically updates as the spill range expands or contracts. This is especially useful when feeding the spill range to other functions. You can even use it with named ranges and data validation. To count unique names in the C2 spill range, use =COUNTA(C2#)
.
Tip: Selecting the spill range with your mouse automatically generates the correct spill reference.
Note: Spill range references only work with open workbooks. A closed source workbook will result in a #REF!
error.
Understanding Excel Spill Ranges: Key Points
- Editability: Only the top-left cell (containing the formula) is directly editable. Changes to this cell automatically update the entire spill range.
- Dynamic Updates: The spill range dynamically adjusts to changes within the referenced range. Adding a unique name to the source data expands the spill range. However, adding data outside the original referenced range requires adjusting the formula's range. Using Excel Tables or dynamic named ranges provides automatic expansion.
-
#SPILL! Errors: Obstructions (data, formulas, etc.) within the potential spill range cause a
#SPILL!
error. Clear the obstruction or relocate the formula.
Frequently Asked Questions
-
Clearing a Spill Range: Delete the formula in the top-left cell to remove all spilled values.
#SPILL!
errors are resolved by removing obstructions or moving the formula. -
Changing a Spill Range: Modify the formula in the top-left cell and press Enter.
-
Fixing a Large Spill Range: The spill range size is determined by Excel. In some cases, the formula itself can control the size (see examples on limiting FILTER results).
#SPILL!
errors are handled as described above. -
Removing a Spill Range: Delete the formula in the top-left cell. Globally disabling spill ranges isn't possible. To prevent spilling, use the
@
operator (implicit intersection) to return a single value.
Mastering spill ranges unlocks the full power of Excel's dynamic arrays.
The above is the detailed content of Excel spill range explained. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)
