Function Problems

Automatically Populate Category Worksheets from a Master Table in WPS Spreadsheet

Anum MushtaqAnum Mushtaq Nov 12, 2026 869 views

Question details

Create category-specific worksheets that automatically display matching rows from a master data list.

Automatically Populate Category Worksheets from a Master Table in WPS Spreadsheet
Product
WPS Spreadsheet
Device & OS
not provided
Scenario
The user wants each category to appear on its own worksheet while new or edited source rows are reflected automatically.
Observed behavior
Each worksheet should show the master-table headers and all records whose Category value matches that worksheet's category.
Before you start

Make sure the master list has one header row and includes a column named Category. Use a current version of WPS Spreadsheet that supports dynamic-array functions such as FILTER and VSTACK.

Solution 1Recommended

Use VSTACK and FILTER with a named master table

Use this method when the source list is maintained as a table and each category worksheet needs a live, spill-based view of matching records.

The formula places the master table headers above the filtered records. It expands automatically when matching rows are returned, so keep the spill area clear of typed values or merged cells.

1
Convert the source range to a table

On the master worksheet, select the full data range, including headers, then use Insert > Table. Confirm that My table has headers is selected, and name the table MasterData from the table name box or Table Tools.

2
Verify the Category column name

In the MasterData header row, confirm that the category field is named Category. The formula uses this exact structured reference: MasterData[Category].

3
Enter the category formula

Open the worksheet for the first category, select cell A1, and enter =VSTACK(MasterData[#Headers],FILTER(MasterData,MasterData[Category]="First Category","No records")). Replace First Category with the category value to display.

4
Repeat for other category worksheets

Create or open each category worksheet, select A1, paste the formula, and replace the category text with that worksheet's required category. Leave the cells below and to the right empty for the spilled results.

Use VSTACK and FILTER with a named master table
Automatic category views are ready: When rows are added to MasterData or an existing row's Category value changes, the matching worksheet results recalculate automatically.
Dynamic worksheet views in WPS Spreadsheet

Build self-updating category worksheets with WPS Spreadsheet

WPS Spreadsheet can use FILTER and VSTACK formulas to create separate category views from one master table. Enter a dynamic-array formula on each destination sheet, and the displayed records update as the source table changes.

  1. 1. Create the master data table: Select the source list in WPS Spreadsheet and choose Insert > Table, then assign the table name MasterData.
  2. 2. Prepare a category worksheet: Add a worksheet for a category and select the top-left output cell, such as A1.
  3. 3. Enter the dynamic formula: Type =VSTACK(MasterData[#Headers],FILTER(MasterData,MasterData[Category]="First Category","No records")) in A1.
  4. 4. Set each worksheet category: Copy the formula to other category worksheets and change First Category to the relevant category value.
Create live category-specific worksheets without copying rows manually.Use FILTER to return only records that match a selected Category value.Use VSTACK to include the master-table headers above each filtered result.Open and edit Microsoft Excel .xlsx and .xls workbooks with compatible spreadsheet workflows.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my FILTER formula show a spill error on the category worksheet?

The formula needs empty cells for all returned rows and columns. Clear values, remove merged cells, or move the formula from its starting cell, such as A1, to an open area.

Can I use a cell reference instead of typing a category name in the formula?

Yes. Put the category name in a cell, such as B1, then use =VSTACK(MasterData[#Headers],FILTER(MasterData,MasterData[Category]=B1,"No records")). Changing B1 updates the returned records.

What happens when no records match the category?

The third FILTER argument controls this result. In the example formula, "No records" appears when MasterData contains no rows with the specified Category value.

Do new rows appear automatically after I add them to the master table?

Yes. If the source is an Excel-style table named MasterData and the new row is added within the table, the structured references expand and the FILTER result recalculates.

Can I keep the formulas when sharing the workbook with Excel users?

Yes, save the workbook as .xlsx. The recipient needs a version of Microsoft Excel that supports the dynamic-array functions used by the workbook, including FILTER and VSTACK.