Automate Excel Table Data Entry with Power Query
Question details
Populate more than 70 cells in an existing Excel table using data from a large raw data workbook and a filtered PivotTable.

- Product
- Microsoft Excel Power Query
- Device & OS
- not provided
- Scenario
- The user wants to replace repeated manual data entry with a refreshable process that transforms source data into the required table structure.
- Observed behavior
- The desired result is a table populated from the relevant source data and updated when new data is imported.
Identify the columns or keys that link the existing table to the raw data, and note the filters and calculations used in the PivotTable. Keep the original input table separate from the query output to avoid a circular reference.
Merge or append the data with Excel Power Query
Use Power Query to reshape the raw data and produce a table that can be refreshed when the source changes.
Merge queries when values need to be matched to existing rows by a common key. Append queries when the transformed data should be added as new rows with matching columns.
The exact transformations depend on the source structure. Reproduce the PivotTable filters and aggregations in Power Query when those results are needed for the final table.
Select a cell in the existing table and choose Data > From Table/Range. In Power Query, choose Home > Close & Load > Close & Load To, then select Only Create Connection.
Choose Data > Get Data > From File > From Workbook, select the raw data workbook, and use the Navigator to select the relevant sheet or table. Choose Transform Data.
In Power Query Editor, use column filter menus and commands such as Home > Group By to reproduce the relevant PivotTable filters or summaries. Rename columns and set data types to suit the destination.
Choose Home > Merge Queries to match rows using common key columns, then expand the needed fields. If the data represents additional rows instead, choose Home > Append Queries and select the existing and transformed queries.
Choose Home > Close & Load To and load the final query as a table in a separate location. After updating the source data, choose Data > Refresh All to update the result.

Work with Excel spreadsheets in WPS Office
WPS Office is a free, lightweight alternative for viewing and editing spreadsheets in a familiar interface. Its Excel format compatibility makes it easier to move existing workbooks between office suites; it does not fix Excel Power Query issues.

Frequently Asked Questions
Should I merge or append the queries?
Choose Home > Merge Queries when you need to match values to existing rows using a shared key. Choose Home > Append Queries when you need to add transformed data as new rows.
How do I update the table when the raw data changes?
Update the source workbook, then choose Data > Refresh All in the workbook containing the query. The output reflects changes that match the query's filters and transformation steps.
Can I use the filtered PivotTable results in Power Query?
You can reproduce the PivotTable's filters and aggregations in Power Query using column filters and Home > Group By. The required steps depend on how the PivotTable is configured.
Will the query write directly into the original input table?
Load the query result to a separate table using Home > Close & Load To. Using the same table as both the query input and output can create a circular reference.




