8. Dynamic Arrays & VBA Macros

Dynamic Arrays: UNIQUE, FILTER & SORT Functions

Syntax Structure
=SORT(UNIQUE(FILTER(array, include, [if_empty])))
Nests FILTER to isolate matching criteria, UNIQUE to drop duplicates, and SORT for alphabetical ordering.
Live Interactive Spreadsheet ⚡ Excel 365, Excel 2021, Excel for Web

Extract unique list of categories from a list with repeated entries.

fx
#A (Item)B (Price)C (Category)D (In Stock)
2OLED TV$1200ElectronicsYES
3Wool Coat$220ApparelYES
4Air Fryer$140Home GoodsYES
5Bluetooth Pods$90ElectronicsNO
6Silk Scarf$65ApparelYES
Calculated Output: ["Electronics", "Apparel", "Home Goods"]
💡 Edit any table cell or formula to recalculate

The Dynamic Array Revolution

In modern Excel, a single formula entered into one cell can spill dynamic results across multiple rows and columns automatically.

💡 Pro Tip / Best Practice
Use the # (Spill Operator) after a cell reference to reference the entire dynamic spill range automatically!
Scroll to Top