Excel FILTER and UNIQUE: explained simply
You want to see only the orders of one region from a long list, and you want that list to update itself. That is exactly what the FILTER function does. Here you see what to select, what stands for what and how to enter the formula step by step. Bonus: UNIQUE, so every customer shows up only once.
=FILTER(A2:C13,B2:B13=E2)FILTER fetches every row that meets a condition and lists them automatically: =FILTER(what comes back, which column = what you look for).
What stands for what?
The formula has two required parts. The second one is a column plus a condition. That gives you three things to select or click.
The whole table without the header: A2:C13.
Everything you want to see in the result.
The column with the regions: B2:B13.
Same number of rows as part 1.
The cell with the search value: E2, which says “North”.
Change E2 and the result changes right away.
The use case: all orders of one region at a glance
On the left is the order list. In E2 you enter the region you want to see. From E5 down, FILTER lists all matching orders. The colours show what you select:
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Customer | Region | Revenue | Region | |||
| 2 | Miller Ltd | North | 1200 | North | |||
| 3 | Baker Inc | South | 850 | ||||
| 4 | Smith & Co | North | 640 | Customer | Region | Revenue | |
| 5 | Walker Ltd | West | 980 | =FILTER(A2:C13,B2:B13=E2) | North | 1200 | |
| 6 | Hoffman Inc | South | 1150 | Smith & Co | North | 640 | |
| … | … | … | … | … | … | … | |
| 13 | Cook Ltd | East | 390 |
Practice data to copy
Open a blank Excel workbook. Click “Copy data”, click the cell shown in Excel and press Ctrl+V.
| Customer | Region | Revenue |
|---|---|---|
| Miller Ltd | North | 1200 |
| Baker Inc | South | 850 |
| Smith & Co | North | 640 |
| Walker Ltd | West | 980 |
| Hoffman Inc | South | 1150 |
| Miller Ltd | North | 700 |
| Cook Ltd | West | 520 |
| Baker Inc | South | 430 |
| Smith & Co | North | 910 |
| Richards Ltd | East | 760 |
| Walker Ltd | West | 1040 |
| Cook Ltd | East | 390 |
| Region |
|---|
| North |
Step by step: how to enter the formula
- Type the headers in E4 to G4: Customer, Region, Revenue. FILTER returns the data only, not the headers.
- Click cell E5 and type
=FILTER(Excel now shows the parts of the formula: array, include, if_empty. - Select A2 to C13: press the mouse on A2, hold, drag to C13, let go. Then type
, - Select B2 to B13 and type
= - Click E2, type
)and press Enter. - Done: Excel lists all orders from the North, from E5 to G8. You entered one single formula.
- Test it: type “South” in E2. The list switches to the southern orders right away.
This is what cell E5 now says:
=FILTER(A2:C13,B2:B13=E2)What your result looks like
With “North” in E2, FILTER shows these four orders. When a new order from the North is added to the list, it appears here without another click.
| Customer | Region | Revenue |
|---|---|---|
| Miller Ltd | North | 1200 |
| Smith & Co | North | 640 |
| Miller Ltd | North | 700 |
| Smith & Co | North | 910 |
Three extras once FILTER works
Every customer only once: UNIQUE
Want to know which customers are in the list at all? UNIQUE removes all duplicates. Seven names remain.
=UNIQUE(A2:A13)Combined: customers of one region without duplicates
Filter first, then remove duplicates. For “North”, Miller Ltd and Smith & Co remain.
=UNIQUE(FILTER(A2:A13,B2:B13=E2))Two conditions and a note for zero matches
The asterisk joins two conditions: region North and revenue above 800. The third part shows when nothing matches.
=FILTER(A2:C13,(B2:B13=E2)*(C2:C13>800),"No matches")If it does not work
- #SPILL! – there is already something below or next to E5. Clear those cells and the result appears.
- #CALC! – nothing matches the condition, often because of a typo in E2. Add a note like "No matches" as the third part.
- #NAME? – your Excel version does not know FILTER yet. It exists from Excel 2021 and in Microsoft 365.
- #VALUE! – the ranges have different lengths, such as A2:C13 and B2:B10. Both must end in row 13.
Excel lists that update themselves
This exercise comes from our advanced Excel training. Your team learns FILTER, XLOOKUP and SUMIFS on its own lists, as corporate Excel training on site or live online. A good next read: Excel drop-down list explained simply.
Deutsche Version: FILTER und EINDEUTIG in Excel · More Excel tips: XLOOKUP, SUMIFS and drop-down lists explained simply · Google Sheets: XLOOKUP
Excel FILTER function: frequently asked questions
How is this different from the filter button?
Can I sort the result?
Why can I not change a cell in the result?
Is there FILTER in Google Sheets too?
Which Excel versions have FILTER and UNIQUE?
Microsoft and Excel are trademarks of the Microsoft group of companies; Google Sheets is a trademark of Google LLC. SkillDay is an independent training provider. The practice data is fictitious.