How to Create Excel Tables That Expand Based on Conditions using Power Query
Question details
The user wants to create dynamic Excel tables that automatically move or expand rows across different worksheets based on specific data conditions.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Organizing and splitting data records dynamically into separate worksheet tables according to specific criteria without manual copy-pasting.
- Observed behavior
- Standard Excel tables do not automatically move rows between worksheets based on conditions; a dedicated data transformation workflow is required.
Ensure your source data is formatted as a standard Excel Table (press Ctrl+T) and contains clear column headers before applying data transformations.
Use Power Query to Filter and Split Data
Use Excel's built-in Get & Transform (Power Query) feature to create dynamic connections that automatically sort and move data to separate worksheets based on your conditions.
Power Query allows you to build a reliable data transformation workflow without complex VBA macros. It connects to your main data table, filters the rows based on your specified criteria, and loads the output to a new worksheet.
Select your source data table and go to the 'Data' tab on the Excel ribbon. Click on 'From Table/Range' in the 'Get & Transform Data' group to open the Power Query Editor.
In the Power Query Editor, click the drop-down arrow on the column containing your condition and select the specific criteria you want to filter by.
Click 'Close & Load To...' on the Home tab, select 'Table', and choose 'New Worksheet' to load the conditionally filtered data.
When your source data changes or new rows are added, right-click the newly created table in the worksheet and select 'Refresh' to automatically expand it.

Create Dynamic Expanding Tables in WPS Spreadsheet
You can easily extract and expand data into separate sheets based on specific conditions using the dynamic FILTER function in WPS Spreadsheet, removing the need for manual refreshes.
- 1. Open your dataset: Launch WPS Spreadsheet and open the workbook containing your main source data.
- 2. Set up a destination sheet: Create a new worksheet where you want the conditional table to appear.
- 3. Enter the dynamic formula: Select the top-left cell of your destination range and enter the formula: =FILTER(SourceData, ConditionColumn="YourCondition").
- 4. Watch the table expand: Press Enter. The table will automatically expand to show all matching records and will update live the moment your source data changes.

Frequently Asked Questions
Can standard Excel tables automatically move rows to other sheets without Power Query?
No, standard Excel tables cannot physically move rows between sheets automatically based solely on their native behavior. You must use Power Query, VBA macros, or dynamic array formulas (like the FILTER function) to achieve this.
How do I update my conditionally expanded tables when the source data changes?
If you are using Power Query, simply right-click anywhere inside the generated destination table and select 'Refresh', or go to the Data tab and click 'Refresh All'.
Why isn't my Power Query filtering updating automatically as I type?
Unlike standard cell formulas, Power Query does not calculate live. It requires a manual refresh or a configured background refresh to pull the latest changes from the source table.
What should I do if my data transformation workflow becomes too complex?
It is recommended to create an anonymized sample workbook containing just your source structure and expected results. You can use this sample to troubleshoot the query steps safely without affecting your actual data.




