Combine Filtered Data from Multiple Excel Sheets into One Table
Question details
Combine matching columns from multiple sheets into one table that updates as source data changes.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Several sheets have the same table structure, and the user wants to stack rows that meet a filter condition.
- Observed behavior
- The desired result is a consolidated table containing nonblank rows from each sheet.
Check that the source ranges have the same columns in the same order and identify the column to use as the filter. Leave enough empty space on the destination sheet for the combined results.
Stack filtered ranges with VSTACK and FILTER in Excel
Use this method in Microsoft 365 to create a dynamic array that updates when values in the referenced ranges change.
Open the destination sheet and select the cell where the combined data should begin. Add column headers above it if needed.
In the selected cell, enter =VSTACK(FILTER('OE 17'!N6:O1000,'OE 17'!N6:N1000<>""),FILTER('OE 83'!N6:O1000,'OE 83'!N6:N1000<>"")) and press Enter.
Edit the sheet names and ranges in the formula to match your workbook. For each additional sheet, add another FILTER(range,condition) argument inside VSTACK.
Make sure the cells below and beside the formula are empty. Extend the row limits in the formula if source data goes beyond row 1000.

Append source tables with Power Query
Use Power Query when your Excel version supports it but does not provide VSTACK and FILTER. Refresh the query to pick up source changes.
Combine sheet data in WPS Spreadsheets
Use VSTACK and FILTER in WPS Spreadsheets if both functions are available in your version. Otherwise, copy matching rows into a consolidated sheet and update the result manually.
- 1. Open the workbook: Launch WPS Office, choose Open, and select the Excel workbook containing the source sheets.
- 2. Choose a destination cell: Open or add a destination sheet and click an empty cell below any desired headers.
- 3. Enter the stacking formula: If your version supports both functions, enter =VSTACK(FILTER('OE 17'!N6:O1000,'OE 17'!N6:N1000<>""),FILTER('OE 83'!N6:O1000,'OE 83'!N6:N1000<>"")) and press Enter. Adjust the sheet names and ranges as needed.
- 4. Use a manual alternative if needed: If the functions are unavailable, select and copy the matching rows from each source sheet, then paste them one below another on the destination sheet. Repeat the copy-and-paste process when the source data changes.

Frequently Asked Questions
How do I add another sheet to the VSTACK formula?
Add another FILTER argument inside VSTACK, such as FILTER('Sheet 3'!N6:O1000,'Sheet 3'!N6:N1000<>""). Keep the returned columns in the same order as the other ranges.
Will the formula include only rows visible after I apply an Excel filter?
No. The example tests whether column N is blank; it does not check whether a row is visible. Change the FILTER condition to match the values you want to include.
Why does my formula show a #SPILL! error?
The output needs empty cells for the entire result. Clear or move any content blocking the spill range, then check the formula again.
What happens if a source sheet has no matching rows?
FILTER returns #CALC! by default when it finds no matches. You can provide its optional if_empty argument, but an empty-string fallback can add a blank row to the stacked result.
Does the Power Query result update automatically?
Power Query results generally need a refresh after source changes. Choose Data > Refresh All, or configure refresh options in the query properties if available.




