|
Home > Formulas > Functions > FILTER Excel FILTER Function Examples
|

1) Video: FILTER Function - 3 ExamplesIn this video, you'll see three FILTER function examples, to help you get started with this powerful Excel function. The written instructions are below the video.
Video Timeline:
Tip: To see the FILTER examples, download the FILTER function examples workbook |
The second example is similar to the first one, but the results will spill into 2 columns, to show the cities and sales reps for the selected region.
To do this, we'll change the first argument in the FILTER function:

Here is the revised formula in cell D4:
Now there are 2 columns in the formula's spill cells, showing the city names and sales rep names.
City names are in A-Z order, but the sales rep names are not sorted.

To fix that, we'll add a second SORT function, so both columns are sorted.
But first, we'll add the optional arguments for the existing SORT function - sort index and sort order.
This will be the SORT for the sales rep names, which should be sorted AFTER the city names are in alphabetical order. So, its
=SORT(UNIQUE(FILTER(Sales_Data[[City]:[NameL]], Sales_Data[Region]=B4, "--")) ,2,1)

Next, add another SORT function at the start of the formula, for the City column. It should be sorted first, so its
=SORT(SORT(UNIQUE(FILTER(Sales_Data[[City]:[NameL]], Sales_Data[Region]=B4, "--")) ,2,1)) ,1,1)
Now the cities are sorted in ascending order, and for each city, the sales reps are sorted in ascending order.

The third example will show product names that were sold in the selected region, with the price greater than a set amount.
On the filter results sheet,

Previous examples only had one criterion in the FILTER function's include argument:
In this example, there are 2 criteria
To use multiple criteria in the FILTER function,
Here is the include argument for the Example 3 FILTER function:
And here is the completed formula in cell D4, to create a list of product names for the selected region, with a price greater than the set amount.
Note: There is only one multiplication operator in this formula, but you can add more, if needed, to create additional criteria tests.
Instead of pulling unformatted data from the source data set, you can add formatting within the FILTER function formula.
The fourth example will show a list of months (yyyy-mm) when there were sales in the selected region, with the price greater than a set amount.
Just like the third example, this formula has 2 criteria in the FILTER function,

In this formula the FILTER function will return items from the Date field. However, we don't want a long list of specific dates.
Instead, we want a list of the months, formatted as yyyy-mm. That will group the individual dates by year and month.
To get that result, use the Excel TEXT function -- it formats numbers based on your specifications. Here is the array argument in the FILTER function, with the TEXT function formatting the results:
And here is the completed formula in cell D4, returning the list of formatted dates
To see more examples that use the FILTER function, click the links below.
Select up to 3 criteria from the drop down lists. The FILTER formula returns a list of records where there is a partial match for those criteria, in the Day, Item and Name columns. Click to get the Excel Partial Match Filter sample file.

After an employee name has been used in the "On Call" list, the FILTER function prevents it from appearing in the selection list. Employee List - Dynamic Arrays example
Select a region name from one drop down, and the FILTER function creates a dynamic list of employees from that region. Dependent Drop Down from Dynamic Arrays
In the FILTER function examples shown on this page, the original data set is stored in a food sales table, named Sales_Data. These are food product orders, for an imaginary food company.
In the Sales_Data table:
Each row in the food sales range of data shows values for the following fields:
The FILTER function examples shown above will pull data from the Sales_Data table, based on one criterion, or multiple criteria.
| ▶ |
Tip: I use the comma separator in the examples above. For some regional settings, you might need a semi-colon separator |

Don't miss my monthly Excel newsletter! You'll get quick tips, article links, and a bit of fun. Add your email, and click Sign Up.
Next, when you get my reply, click the Confirm button. I add this step to protect you from spam!
Last updated: September 16, 2026 2:12 PM