SORT + FILTER + UNIQUE Dynamic Table in Excel & Google Sheets

Build dynamic, sorted, and duplicate-free lists from raw spreadsheet rows in a single formula—and avoid #SPILL! or empty-result errors.

1. Sort & Filter Matching Rows Together (SORT + FILTER)

Wrap FILTER inside SORT to extract rows matching a condition and order them automatically (column index 1 = first column, 2 = second column; 1 = ascending, -1 = descending):

=SORT(FILTER(A2:C100, C2:C100="Active", "No Matches"), 1, 1)

2. Sort & Deduplicate a Single Column (SORT + UNIQUE)

To extract a clean, sorted list of distinct categories or client names from a column:

=SORT(UNIQUE(B2:B100), 1, 1)

Worked Example: Filtered & Sorted Active Records

Col A (Client) Col C (Status) Result in =SORT(FILTER(A2:C4, C2:C4="Active", "No Matches"), 1, 1)
Northstar Retail Active Row 1 (alphabetical first among Active)
Harbor Goods Paused Excluded (Status is Paused)
Crest Studio Active Row 2 (alphabetical second among Active)

Preventing Dynamic Array Errors

Editorial & Accuracy Note: Tested across Microsoft Excel and Google Sheets with worked sample inputs and outputs. Part of the Know Unlimited Excel & Google Sheets Hub.