Function Problems

How to Use Excel FILTER to Search Data by Group and Date

Elise WilliamsElise Williams Nov 10, 2026 869 views

Question details

The user wants to create a search sheet that retrieves specific members from an existing data sheet based on a selected group (e.g., A, B, C, or D) and a specific date (e.g., January 1, 2025).

How to Use the Excel FILTER Function to Search Data by Group and Date
Product
Excel
Device & OS
not provided
Scenario
Building a dynamic dashboard or search sheet to extract and display matching records using multiple criteria simultaneously.
Observed behavior
The goal is to successfully return a dynamic array of records matching both the selected group and date criteria without manually filtering the source data.
Before you start

Ensure that your version of Excel or WPS Spreadsheet supports dynamic array functions like FILTER. Also, verify that your source data is organized in a clear tabular format with standardized headers for the Group and Date columns.

Solution 1Recommended

Use the FILTER Function with Multiple Criteria (Logical AND)

Combine conditions using the multiplication operator (*) to act as an AND logic in the FILTER function, ensuring both the group and date criteria are met.

The FILTER function allows you to extract data based on one or multiple conditions. To filter by both a group and a date, you must multiply the two logical tests together. The multiplication symbol (*) acts as the AND operator in dynamic array formulas.

Make sure your date format in the search cell strictly matches the date format used in your source data column.

1
Set up your criteria cells

On your Search Sheet, designate two cells for user input. For example, use cell B1 for the 'Group' (e.g., type 'A') and cell B2 for the 'Date' (e.g., type '1/1/2025').

2
Select the destination cell

Click on the cell in your Search Sheet where you want the top-left corner of your filtered results to appear.

3
Enter the FILTER formula

Type the formula: =FILTER(DataSheet!A2:D100, (DataSheet!B2:B100=B1) * (DataSheet!C2:C100=B2), "No matching records"). Adjust the ranges to match your actual data sheet's dimensions and columns.

4
Apply the formula

Press Enter. The formula will spill the matching records automatically into the adjacent rows and columns. When you change the values in B1 or B2, the results will update instantly.

Use the FILTER Function with Multiple Criteria (Logical AND)
Formula Spill: You only need to enter the formula in the top-left cell. Ensure the cells below and to the right are empty so the dynamic array has enough room to 'spill' the results without returning a #SPILL! error.
Filter Data Easily with WPS Office

Use WPS Spreadsheet to Build Dynamic Search Sheets

WPS Spreadsheet fully supports dynamic array functions like FILTER, allowing you to seamlessly pull and search data across sheets by group, date, or multiple criteria with robust performance.

  1. 1. Open your data file: Launch WPS Spreadsheet and open the workbook containing your master data sheet.
  2. 2. Create a Search sheet: Add a new worksheet named 'Search' and designate specific input cells for your Group and Date variables.
  3. 3. Initiate the formula: Select the result cell and type =FILTER( to begin the dynamic filtering process, then highlight your source data array.
  4. 4. Define criteria logic: Add your conditions by highlighting the source columns and matching them to your input cells, joining the conditions with an asterisk (*).
  5. 5. View results: Press Enter to instantly populate your dynamically filtered records.
Fully compatible with Microsoft Excel formulas and formats (.xlsx, .xls).Native support for dynamic array functions like FILTER, UNIQUE, and SORT.Free and lightweight alternative to heavy spreadsheet tools.Intuitive interface for managing complex data tables and search sheets.
microsoft office alternative - wps office

Frequently Asked Questions

Why is my FILTER formula returning a #CALC! error?

The #CALC! error typically occurs when the FILTER function finds no records matching both your group and date criteria. You can prevent this by adding a customized 'if_empty' text at the end of your formula, such as =FILTER(array, include, "No matching records").

How do I filter by multiple groups at once, like Group A OR Group B?

To use OR logic in the FILTER function, you must use the addition operator (+) between the conditions instead of multiplication. For example: =FILTER(DataRange, (GroupRange="A") + (GroupRange="B")).

Does the FILTER function automatically update when I add new data to the source sheet?

Yes, dynamic array formulas update automatically when source data changes. To ensure newly added rows are automatically included in the range, it is highly recommended to format your source data as a Table, or use full column references (like A:D) in your formula.

Why does my date filter return nothing even though the date exists in the source data?

This usually happens due to mismatched date formats or dates stored as text. Ensure that both your search criteria cell and the source data column are strictly formatted as 'Date'. If your input date is a text string, you can wrap it in the DATEVALUE function within the formula.