Excel FILTER Function
The Excel FILTER function filters a range of data based on supplied criteria, and extracts matching records.
- array - Range or array to filter.
- include - Boolean array, supplied as criteria.
- if_empty - [optional] Value to return when no results are returned.
The Excel FILTER function "filters" a range of data based on supplied criteria. In the example show, the formula in F5 is:
Since the value in H2 is "red", the FILTER function extracts data from array where the Group column contains "red".
More than one criteria
The include argument can be extended with boolean logic. For example, to extract only data where the group is "red" and score is greater than 80, you can use a formula like this: