📥 Master FILTER with Hands-On Practice

Want to get the most out of this guide? Download the free practice workbook 👉 HERE and follow along step by step.

Basic Excel FILTER Formula

The Excel FILTER function helps you extract only the rows that meet certain conditions. Think of it as a quick way to filter data without sorting or manually searching.

Imagine you have a dataset with a list of products sold in different regions. You only want to show the products sold in “Asia” (cell G2).

Here’s a simple way to do this:

  • Download the practice file to follow along.
  • Click on the cell where you want the filtered data to appear (e.g., cell F5):
  • Enter the formula.
    • Here, A3:C17 is your data range.
    • B3:B17 is the column containing the “Region” data.
    • G2 contains your filter criteria (“Asia”).
= FILTER(A3:C17, B3:B17=G2)
  • Press Enter: Excel will display all rows where the “Region” is “Asia.”
filter function excel

How to Fix the #CALC! Error

When using the FILTER function in Excel, you might encounter a #CALC! error. This happens when:

  • The cell with your filter criteria (e.g., G2) is empty.
  • There’s no data that matches your filter criteria.

📌 Example:
If you’re filtering for “Asia” in column B, but the data doesn’t include “Asia,” the formula will break.

The Fix: Add a Custom Message

Instead of showing a confusing error, you can modify your FILTER formula to display a custom message when no data matches your criteria.

Here’s how:

= FILTER(A3:C17, B3:B17=G2, "Not Found")

This formula will show “No Data Found” if the filter criteria in G2 doesn’t match any rows:

filter function excel

How to Filter Data by a Certain Value in Excel

The FILTER function makes it easy to display rows that meet specific criteria. Let’s walk through an example where we filter a dataset based on revenue.

We want to show all records where the revenue (column C) is greater than a value defined in cell H2 (e.g., 45,000).

Step-by-Step Guide

  • Go to Cell F5: This is where the filtered data will appear.
  • Enter the Formula: Type the following formula:
= FILTER(A3:C17, C3:C17>$H$2, "Not found")
  • A3:C17: This is the range of data we want to filter.
  • C3:C17>$H$2: This is the condition. It checks if the revenue in column C is greater than the value in H2.
  • “Not found”: This message will appear if no rows meet the condition.

Test Dynamic Updating


One of the best features of the FILTER function is its ability to update dynamically. Here’s how to test it:

  • Change the Value in H2: Set the value in H2 to 3,000.
    • The formula will now show all rows where revenue is greater than 3,000.
  • Try Another Value: Change H2 to 50,000 and watch the results update automatically.

How to Fix the #SPILL! Error

When using Excel’s FILTER function, you might encounter a #SPILL! error.

This error happens when Excel can’t display all the results because the output range (called the spill range) is blocked.

What is the Spill Range?

The spill range is where Excel displays the results of dynamic formulas like FILTER. It adjusts automatically based on how many rows or columns the formula needs to display.

📌 Example:
If your FILTER formula returns ten rows of data, Excel needs ten empty rows to show the results.

If there’s any data or formatting in these rows, Excel will display a #SPILL! error.

How to Fix the #SPILL! Error

Here’s how to troubleshoot and resolve the error:

  1. Identify the Spill Range: When Excel shows a #SPILL! error, it highlights the blocked cells. This is the range where the results should appear.
  2. Check for Obstructions: Look for existing data, formatting, or merged cells in the spill range.
  3. Clear the Blocking Cells: Select the highlighted cells and press Delete to clear any obstructions.
  4. Re-Test the Formula: Once the spill range is clear, Excel will automatically display the full results.

For more details about the #Spill error check out this article.

How FILTER Function Works

When you use the FILTER function, Excel checks each row in your data to see if it meets a condition.

For example, if you want to filter rows where the “Region” is “Asia,” Excel creates a list of true or false outcomes:

  • True: The row matches the condition (e.g., “Region” = “Asia”).
  • False: The row doesn’t match the condition.

How to See the True/False Logic

You can see how Excel evaluates the condition by following these steps:

  • Select the Formula: Click on the cell where the FILTER formula is written (e.g., F5).
  • Highlight the Condition: In the formula, select just the include part, such as B3:B17=”Asia”.
  • Press F9: Excel will show a list of TRUE and FALSE values.
    • TRUE means the row matches the condition (e.g., “Region” is “Asia”).
    • FALSE means the row doesn’t match.
Excel filter boolean array

❗ Important: Press ESC after this step to avoid turning your formula into hard-coded values.

Why is F9 Useful?

The F9 key is an excellent tool for debugging formulas. It helps you:

  • Check whether your conditions are working as expected.
  • Understand how Excel evaluates each part of your formula.
  • Quickly spot errors in complex formulas.

FILTER with Excel Data Tables

Excel Data Tables are a game-changer when it comes to managing and analyzing your data.

They unlock advanced features, including structured references, that make formulas easier to read and update dynamically.

What Are Data Tables?

Excel Data Tables are more than just formatted tables—they’re dynamic tools designed to:

  • Simplify Formulas: Use column names (like [Region]) instead of confusing cell ranges (like B3:B17).
  • Update Automatically: Add new rows or columns, and your formulas adjust instantly—no manual updates required!
  • Save Time: Quickly select entire tables or columns using “sweet spots.”

What Are Sweet Spots in Data Tables?

One of the most useful features of Data Tables is their sweet spots, which make selecting data quicker and easier:

  1. Single Cell: Click anywhere in the table to select a single cell
  2. Single Column: Hover above a column header until you see a thick down arrow. Click to select all the data in that column.
  3. Entire Table: Hover over the top-left corner of the table until you see a thick diagonal arrow. Click to select the entire table.

These shortcuts save time when writing formulas and help avoid errors caused by manually typing ranges.

How to Convert a Plain Table to a Data Table

  • Select Your Data: Highlight your dataset (e.g., A3:C17).
  • Format as a Table:
    • Go to the Home tab.
    • In the Styles group, click Format as Table or press Ctrl + T.
  • Check for Success:
    • If the Table Design tab appears in the ribbon, your plain table has been converted.

💡 Pro Tip: A table might look formatted but not be a true Data Table. Always check for the Table Design ribbon!

How to Use the FILTER Function with Data Tables

Let’s filter a Data Table (table name is TableDiv2) to show only rows where the “Region” matches the value in G3 (e.g., “Australia”).

Here’s how to use the FILTER with the Excel data table:

  • Select the Output Cell: Click on the cell where you want the results to appear (e.g., F5).
  • Insert the FILTER Function: Start typing =FILTER( in F5.
  • Use Sweet Spots to Build the Formula:
    • For the Array: Hover over the top-left corner of the table until you see the diagonal arrow. Click it to select the entire table (e.g., TableDiv2).
    • For the Condition: Hover above the column header you want to filter (e.g., Region) and click to select the column. Excel will insert the structured reference (e.g., TableDiv2[Region]).
    • Complete the condition (e.g., =G3) and add an error message (e.g., “Not found”).

Your completed formula will look something like this:

= FILTER(TableDiv2, TableDiv2[Region]=G3, “not found”)

Dynamic Updates with Data Tables

One of the biggest advantages of using Data Tables is that they grow automatically when new rows or columns are added:

  • The FILTER function adjusts to include new rows without any changes to the formula.
  • You save time and reduce errors when managing large datasets.

📌 Example: Add a new row to the table with “Region” as “Australia.”

The FILTER formula will automatically include the new record.

Filter Function with Multiple Criteria

Check out this step-by-step guide to master the Excel FILTER function with AND/OR logic.

Whether you’re filtering sales by region AND date or pulling records that meet one of several conditions, this article will show you how to do it—fast and easily.

📌 What You’ll Learn:

  • How to filter data with multiple conditions using simple formulas.
  • When to use AND logic vs. OR logic.
  • Real-world examples to save time and reduce manual work.

Download the Workbook

Enhance your learning experience by downloading our workbook. Practice the techniques discussed in real-time and master the Excel FILTER Function with hands-on examples.

Download the workbook here and start applying what you’ve learned directly in Excel.

Excel Download Practice file

Leila Gharani

I’ve spent over 20 years helping businesses use data to improve their results. I've worked as an economist and a consultant. I spent 12 years in corporate roles across finance, operations, and IT—managing SAP and Oracle projects.

As a 7-time Microsoft MVP, I have deep knowledge of tools like Excel and Power BI.

I love making complex tech topics easy to understand. There’s nothing better than helping someone realize they can do it themselves. I’m always learning new things too and finding better ways to help others succeed.