How to Use Excel FILTER to Replace Google Sheets QUERY Formula
Question details
The user needs to filter form-response data in Excel based on a specific match in a column, replicating the functionality of a Google Sheets QUERY formula.
- Product
- Excel
- Device & OS
- not provided
- Scenario
- Extracting and filtering form responses into a separate view based on a specific respondent's name.
- Observed behavior
- The user wants to achieve a dynamically filtered data view in Excel equivalent to what they would get using the Google Sheets QUERY function.
Ensure you are using a version of Excel that supports dynamic array formulas, such as Excel for Microsoft 365 or Excel for the Web, as the FILTER function is not available in older standalone versions.
Use the FILTER Function in Excel for the Web
The FILTER function is the best direct equivalent to the Google Sheets QUERY formula for extracting rows that meet specific criteria.
In Excel, the FILTER function allows you to extract records based on one or more conditions. It behaves similarly to the QUERY function in Google Sheets by dynamically spilling the results into adjacent cells.
Click on the empty cell in Excel where you want the top-left corner of your filtered data to appear. Make sure there is enough empty space below and to the right.
Type `=FILTER(Responses!A:O, Responses!I:I="Nicole Williams")` into the formula bar. This searches for "Nicole Williams" in column I and returns data from columns A through O.
To make the criteria easily adjustable, replace the name with a cell reference. For example, use `=FILTER(Responses!A:O, Responses!I:I=Z1)` where Z1 contains the name you want to find.
Press the Enter key. The filtered results will automatically populate the necessary rows and columns.
Easily Filter Data using WPS Spreadsheet
WPS Office Spreadsheet provides robust support for dynamic array formulas like FILTER, allowing you to easily process form responses and query data just like you would in Excel or Google Sheets.
- 1. Open WPS Spreadsheet: Launch WPS Office and open your spreadsheet document containing the form responses.
- 2. Locate an output area: Navigate to a blank worksheet or a clear area in your current sheet where the filtered data can be displayed.
- 3. Enter the FILTER function: Click the target cell and input `=FILTER(Responses!A:O, Responses!I:I="Nicole Williams")` into the formula bar.
- 4. Apply and review results: Press Enter to instantly extract and display all rows matching your specified criteria.

Frequently Asked Questions
Why am I getting a #CALC! error when using the FILTER function?
The #CALC! error usually appears when the FILTER function finds no results matching your criteria. You can fix this by adding a third argument to the formula to handle empty results, such as `=FILTER(A:O, I:I="Name", "No results found")`.
Can I filter by multiple criteria in Excel like I do in Google Sheets QUERY?
Yes, you can use multiple criteria with the FILTER function by multiplying conditions together. For example, the formula `=FILTER(A:C, (A:A="Criteria1") * (B:B="Criteria2"))` will return only the rows that meet both conditions simultaneously.
Is the FILTER function available in all versions of Excel?
No, the FILTER function is only available in Microsoft 365, Excel 2021, and Excel for the Web. For older standalone versions like Excel 2016 or 2019, you must use alternative methods such as Advanced Filter or an INDEX/MATCH combination.
Why am I seeing a #SPILL! error after typing the FILTER formula?
A #SPILL! error occurs when there is not enough empty space for the dynamic array formula to output its results. Check the adjacent cells below and to the right of your formula and clear any existing data that might be blocking the spill range.




