The three functions that replace half of your Pivot Tables in Excel 365 and Google Sheets.
Excel · 6 min read
By the FormulAI editorial team · Reviewed October 2026
The Spill Principle
A dynamic array formula written in a single cell automatically fills adjacent cells. If a cell in the spill range is occupied, Excel returns #SPILL!: clear the range rather than shortening the formula.
FILTER Replaces Manual Filtering
FILTER(A2:D500, (C2:C500="Overdue")*(D2:D500>1000)) returns a live table that updates as soon as the source changes. Multiplication acts as a logical AND, while addition acts as OR.
Combining UNIQUE and SORT
SORT(UNIQUE(B2:B500)) builds a clean reference list, ideal as a source for a data validation dropdown that updates itself automatically.
Compatibility
These functions do not exist in Excel 2016 / 2019. A workbook shared with older versions will display #NAME?: plan a fallback version using INDEX/MATCH.
How this guide was made
Every formula, query and script in this guide was run on a real sample file (Excel 365, Google Sheets, PostgreSQL, MySQL or Python 3) before publication. We document the edge cases we hit during testing, such as text-formatted numbers, empty months or NULL values. AI helps us draft and translate; a human checks each example and updates the guide when software versions change. Spotted an error? Write to contact@formulai-app.com.