Data Import & Export

Combine Filtered Data from Multiple Excel Sheets into One Table

Ayan MasoodAyan Masood Dec 2, 2026 869 views

Question details

Combine matching columns from multiple sheets into one table that updates as source data changes.

Combine Filtered Data from Multiple Excel Sheets into One Table
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.
Before you start

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.

Solution 1Recommended

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.

1
Choose the destination

Open the destination sheet and select the cell where the combined data should begin. Add column headers above it if needed.

2
Enter the formula

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.

3
Adjust the source ranges

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.

4
Check the spilled results

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.

Stack filtered ranges with VSTACK and FILTER in Excel
How the filter works: This formula includes rows where column N is not blank; it does not use a sheet's visible filter selection. FILTER returns a #CALC! error if a source has no matching rows unless an if_empty value is supplied.
Combine spreadsheet data

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. 1. Open the workbook: Launch WPS Office, choose Open, and select the Excel workbook containing the source sheets.
  2. 2. Choose a destination cell: Open or add a destination sheet and click an empty cell below any desired headers.
  3. 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. 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.
Stack matching columns from multiple sheets in one placeUse a familiar spreadsheet interfaceOpen and edit Microsoft Excel XLSX filesCreate a manually consolidated table if the formula functions are unavailable
microsoft office alternative - wps office

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.