The FILTER function allows you to extract specific data from a range based on given criteria, returning only the rows that meet the specified conditions. This function is handy when you need to filter out relevant information from a larger dataset without altering the original data.


=FILTER(array, include, [if_empty])

array The range or array that you want to filter.
include The criteria or conditions that the rows must meet to be included in the results.
if_empty (Optional) The value to return if no rows meet the specified criteria. Defaults to an empty array if omitted.


When you find yourself swimming in a sea of data and in need of a refined dataset that fits particular criteria, the FILTER function is your trusty lifeboat in Excel. It enables you to swiftly isolate and extract data that meets your specified requirements, ensuring you focus only on the relevant information while keeping the original dataset intact and untouched. This function is especially useful in scenarios where you need to analyze subsets of data based on specific conditions or rules, streamlining your data manipulation process with precision and efficiency.


Imagine you have a list of employee information with columns for names, departments, and salaries. You want to filter out only the rows where the salary is greater than $50,000. The FILTER formula would be: =FILTER(A2:C20, C2:C20>50000)

Suppose you have a sales report with columns for product names, quantities sold, and prices. You wish to extract the rows where the quantity sold is more than 100 units. The FILTER formula would be: =FILTER(A2:C100, B2:B100>100)


Can I apply multiple criteria while using the FILTER function?

Yes, you can incorporate multiple criteria by combining logical operators like AND and OR within the include argument. By structuring your conditions effectively, you can filter the data precisely based on multiple criteria.

Is the FILTER function case-sensitive when filtering based on text criteria?

Yes, the FILTER function is case-sensitive when filtering text data. Make sure to match the case of the text criteria exactly with the data in the array to ensure accurate filtering results.

What happens if the criteria in the include argument contradict each other?

If the criteria in the include argument contradict each other, the FILTER function will return an empty array since no rows can fulfill conflicting conditions simultaneously.

Can I nest the FILTER function within other functions in Excel?

Absolutely! The FILTER function can be nested within other functions like SUM, AVERAGE, or any other function that requires a range of data as input. This flexibility allows you to perform advanced data analysis and calculations on filtered datasets with ease.

Related functions