Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel Filter Table Based on Cell Value

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To filter a table based on a cell value in Excel, you can use the built-in Filter feature, a formula with the FILTER function (Excel 365/2021), or a dynamic array approach. The quickest method: click any cell in your table, go to the Data tab, and click the Filter button, then use the dropdown arrows to filter by a specific value. For a more automated approach, use the FILTER function to extract rows that match a cell reference. This guide covers both methods step by step.

What You'll Need

  • Excel 2010 or later for the basic Filter feature (works on all versions).
  • Excel 365 or Excel 2021 for the FILTER function (dynamic arrays).
  • A table or range of data with headers.
  • A cell where you want to type the value to filter by (optional, for the formula method).

Step-by-Step

Method 1: Using the Built-in Filter (All Excel Versions)

  1. Select any cell inside your data range or table. If your data is a formal Excel Table (created with Ctrl+T), it already has filter arrows. If not, go to the Data tab and click the Filter button (a funnel icon). You'll see dropdown arrows appear in each header cell.
  2. Click the dropdown arrow on the column you want to filter by.
  3. In the dropdown menu, uncheck Select All to clear all selections.
  4. Check the box next to the specific value you want to show. For example, if you have a "Status" column, check only "Complete". Click OK.
  5. Excel now shows only the rows that match that value. To clear the filter, click the dropdown arrow again and select Clear Filter From "Column Name".

To filter based on a cell value dynamically (so the filter changes when you change the cell), you can use the FILTER function. This is only available in Excel 365 and Excel 2021.

Method 2: Using the FILTER Function (Excel 365/2021)

  1. Set up a cell where you will enter the filter value. For example, put the value in cell G1. Make sure the cell is not inside your data range.
  2. Select a blank cell where you want the filtered results to appear (e.g., G3).
  3. Type the formula: =FILTER(A2:E100, B2:B100=G1) — replace A2:E100 with your actual data range and B2:B100 with the column you want to match. The formula will return all rows from the range where column B equals the value in G1.
  4. Press Enter. The results will spill into adjacent cells automatically.
  5. Change the value in G1, and the filtered results update instantly.

For multiple conditions, you can add more criteria using the * operator. For example, =FILTER(A2:E100, (B2:B100=G1)*(C2:C100="Yes")) filters rows where column B equals G1 AND column C is "Yes".

Method 3: Using a Helper Column with a Formula (All Versions)

  1. Add a new column next to your data (e.g., column F). Label it "Filter".
  2. In the first data row (e.g., F2), enter a formula that returns TRUE or FALSE based on your cell value. For example, =B2=$G$1 (assuming G1 holds the value).
  3. Copy the formula down to all rows.
  4. Now apply the built-in filter (Data > Filter) to your range, and filter column F for TRUE.
  5. When you change G1, the TRUE/FALSE values update, but you must re-apply the filter (or refresh) to see the new results. This method works in any Excel version.

Common Mistakes

  • Filtering on a column that contains blank cells – blanks may be hidden or shown unexpectedly.
  • Using the FILTER function with a range that includes merged cells – this can cause errors.
  • Forgetting to use absolute references (like $G$1) in formulas when copying down.
  • Applying the filter to the wrong range – make sure you select a cell inside the data before clicking Filter.
  • Not accounting for exact matches – the FILTER function is case-insensitive by default, but spaces or extra characters can cause mismatches.

Tips

  • Use Excel Tables (Ctrl+T) for your data – they automatically expand and make filtering easier.
  • To filter by a cell value using the built-in filter, you can type the value in a cell and then use the Search box in the dropdown to find it quickly.
  • If you want to filter by a value that is not in the list (e.g., a partial match), use the "Text Filters" > "Contains" option in the dropdown.
  • For dynamic filtering without the FILTER function, consider using a PivotTable with a slicer – slicers are visual and easy to use.
  • When using the FILTER function, you can wrap it in SORT to order results: =SORT(FILTER(...)).

Troubleshooting

If the filter does not show the expected rows:

  1. Check for hidden rows: If some rows are missing, there might be an existing filter. Go to the Data tab and click Clear to remove all filters.
  2. Verify the cell value: Ensure the value you are filtering by exactly matches the data (no extra spaces, different text case – though filters are case-insensitive). Use the search box in the dropdown to confirm.
  3. If the FILTER function returns a #VALUE! error: This often means the ranges in the formula have different sizes. Make sure the data range and the condition range have the same number of rows.
  4. If the FILTER function returns a #CALC! error: This means no rows matched the condition. Check the criteria and the cell value.
  5. If the filter arrows are missing: Your data might not be in a table or the filter was turned off. Select the data and press Ctrl+Shift+L to toggle filters on.
  6. If the filtered results are not updating when you change the cell: For the helper column method, you may need to re-apply the filter. For the FILTER function, check that automatic calculation is enabled (Formulas > Calculation Options > Automatic).

Frequently Asked Questions

Can I filter a table based on a cell value without using a formula?

Yes, you can use the built-in filter dropdown and manually select the value. But if you want the filter to change automatically when the cell changes, you need a formula (FILTER function) or a helper column.

Does the FILTER function work in Excel 2019 or earlier?

No, the FILTER function is only available in Excel 365 and Excel 2021. In older versions, use a helper column with a formula and the built-in filter.

How do I filter based on a cell value that is a date?

Use the same methods. For the built-in filter, use the date filters (e.g., Equals, Before, After). For the FILTER function, compare the date column to a cell containing a date, e.g., =FILTER(A2:C100, B2:B100=G1).

Can I filter based on a partial match using the FILTER function?

Yes, you can use the ISNUMBER(SEARCH(...)) function. For example, =FILTER(A2:C100, ISNUMBER(SEARCH(G1, B2:B100))) returns rows where column B contains the text in G1.

Why does my FILTER function return a #SPILL! error?

This error occurs when the result would overlap with existing data. Make sure there are empty cells below and to the right of the formula cell.

Can I filter based on a cell value in another sheet?

Yes, reference the cell with the sheet name, e.g., =FILTER(Sheet2!A2:C100, Sheet2!B2:B100=Sheet1!G1).