TABLE OF CONTENTS

Excel Filter

Learn how to use the Excel FILTER function to filter your data lists, ranges, and arrays.

5 minute read
career-principles-excel-filter

Usage:

Use this formula to filter a range of data (also known as a list or array of data) using single or multiple criteria.

The FILTER formula is perfect for when you want to take a large table of data and extract a small subset of the table using certain rules or specifications.

Function Layout (Syntax):

=FILTER(array, include, [if_empty])

Inputs (Arguments):

  • Array: The set of base cells that you want to filter.
  • Include: The criteria used to filter the data. This input should be in the form of a boolean equation (which basically means in the form of a yes or no question using “=”, “>”, “<”, etc).
  • [If_empty]: This is an optional input. If you fill this in, you can tell Excel to put a value or string of text when the filter returns an empty table. Some common inputs here are empty quotes “ ” or “N/A” or “No Results”.

Example: Single Criteria

Let’s take a look at an example where we filter a range of data based on one criterion or one rule.

Starting Excel Filter Data Example
Excel Filter Data

In this particular example, we have a list of employee names and we would like to filter for the employees that work in the finance department. To do this, follow these steps:

  1. Initiate the formula by typing “=FILTER(“.
  2. Fill in the “array” input. In this case, it should be cells B3:C11.
  3. Set up the filter criteria. Here we can type “C3:C11=”Finance”.
  4. Then for the third optional step, we can put “N/A” in the case the list changes and we have no finance employees on the list.
  5. Hit enter. You should see a filtered list of finance employees that matches the image below.
=FILTER(B3:C11,C3:C11=”Finance”,”N/A”)
Excel Filter Single Criteria Example
Excel Filter Single Criteria

Spill Error

Note: Make sure to leave enough empty cells below for the filtered array. For example, if cell E4 was not empty, you would see a spill error.

Excel Filter Spill Error Scenario
Excel Filter Spill Error

Example: Multiple Criteria

So what happens if you need to filter a range with multiple criteria? Well, you can do so pretty easily with some slight adjustments.

Criteria 1 AND Criteria 2

If you want to filter with multiple criteria you’ll need to decide if you need all criteria rules to be true or if you only need one of the criteria rules to be true. If you want all criteria to be true, you can use the * character to divide your rules.

For example, if you want to filter the list below for employees that are in the finance department AND have a salary greater than $80,000, you can use the below formula.

=FILTER(B3:D11,(C3:C11=”Finance”)*(D3:D11>80000),”N/A”)
Excel Filter Multiple Criteria AND
Excel Filter Multiple Criteria (AND)

Notice how each criteria rule is contained within a set of parentheses () and they are split by a * symbol. This part of the formula simple translates to: (Rule 1) AND (Rule 2). If you wanted to use more than 2 criteria, simply continue using the same format by stringing on more (criteria) with the * symbol.

Criteria 1 OR Criteria 2

Now instead of AND, what if you only needed criteria 1 OR criteria 2 to be true? Well this can be setup as well.

To do this, simply replace the * symbol with a + symbol. This essentially changes the translated formula from AND to OR.

For example, if we wanted to filter for employees that work in the finance department OR have a salary greater than $80,000, we can use the below formula.

=FILTER(B3:D11,(C3:C11="Finance")+(D3:D11>80000),"N/A")
Excel Filter Multiple Criteria OR
Excel Filter Multiple Criteria (OR)

Similar to the previous example, all you need to do is contain your criteria rules in () and separate them with a + symbol. And again, if you need to add more criteria, simply keep the pattern going by adding more (criteria) with + symbols.

Additional Resources

If you’re interested in further developing your Excel skills to better perform in the workplace, check out our Excel for Business & Finance Course and more using the get started button below.

Other Articles You May Find Helpful

Introduction

Building a cash flow statement from scratch using a company income statement and balance sheet is one of the most fundamental finance exercises commonly used to test interns and full-time professionals at elite level finance firms.

Test hyperlink

Image caption goes here
Sample Image Insertion
Dolor enim eu tortor urna sed duis nulla. Aliquam vestibulum, nulla odio nisl vitae. In aliquet pellentesque aenean hac vestibulum turpis mi bibendum diam. Tempor integer aliquam in vitae malesuada fringilla.

Elit nisi in eleifend sed nisi. Pulvinar at orci, proin imperdiet commodo consectetur convallis risus. Sed condimentum enim dignissim adipiscing faucibus consequat, urna. Viverra purus et erat auctor aliquam. Risus, volutpat vulputate posuere purus sit congue convallis aliquet. Arcu id augue ut feugiat donec porttitor neque. Mauris, neque ultricies eu vestibulum, bibendum quam lorem id. Dolor lacus, eget nunc lectus in tellus, pharetra, porttitor.

  • Test Bullet List 1
  • Test Bullet List 2
  • Test Bullet List 3
"Ipsum sit mattis nulla quam nulla. Gravida id gravida ac enim mauris id. Non pellentesque congue eget consectetur turpis. Sapien, dictum molestie sem tempor. Diam elit, orci, tincidunt aenean tempus."

Tristique odio senectus nam posuere ornare leo metus, ultricies. Blandit duis ultricies vulputate morbi feugiat cras placerat elit. Aliquam tellus lorem sed ac. Montes, sed mattis pellentesque suscipit accumsan. Cursus viverra aenean magna risus elementum faucibus molestie pellentesque. Arcu ultricies sed mauris vestibulum.

Conclusion

Morbi sed imperdiet in ipsum, adipiscing elit dui lectus. Tellus id scelerisque est ultricies ultricies. Duis est sit sed leo nisl, blandit elit sagittis. Quisque tristique consequat quam sed. Nisl at scelerisque amet nulla purus habitasse.

Nunc sed faucibus bibendum feugiat sed interdum. Ipsum egestas condimentum mi massa. In tincidunt pharetra consectetur sed duis facilisis metus. Etiam egestas in nec sed et. Quis lobortis at sit dictum eget nibh tortor commodo cursus.

Odio felis sagittis, morbi feugiat tortor vitae feugiat fusce aliquet. Nam elementum urna nisi aliquet erat dolor enim. Ornare id morbi eget ipsum. Aliquam senectus neque ut id eget consectetur dictum. Donec posuere pharetra odio consequat scelerisque et, nunc tortor.
Nulla adipiscing erat a erat. Condimentum lorem posuere gravida enim posuere cursus diam.

Michael Quach
Michael Quach
Senior Instructor

Ready to Level Up Your Career?

Learn the practical skills used at Fortune 500 companies across the globe.