How to Use the FILTER Function in Excel - OnRamp Analytics

How to Use the FILTER Function in Excel

The FILTER function extracts data from a range based on criteria you define. It updates automatically if the source data changes, making it more flexible than copying and pasting or applying filters through the ribbon.

Filter Function Syntax

=FILTER(array, include, [if_empty])

array: the range of cells to filter
include: the condition that decides which rows or columns are returned
[if_empty]: an optional result if no data matches

Filter Function Example

Suppose you have a dataset of products, regions, and sales values in columns B–D. To return only the rows where the region is East, enter:

=FILTER(B4:D7, C4:C7="East", "Nothing")

The result will be:

If no rows matched, the formula would return “Nothing.”

Why Use FILTER in Excel

FILTER removes the need for manual steps when narrowing down data. It makes reports cleaner and ensures that outputs update automatically as the underlying dataset changes.

Conclusion

The FILTER function is a straightforward way to extract only the data you need. By applying conditions directly in the formula, you can keep your spreadsheets both accurate and easy to interpret.

Back to blog

Leave a comment