Power Query Problems

Create an Excel Total Sheet for Equipment IDs with Power Query

Aamir Naveed AkramAamir Naveed Akram Dec 2, 2026 868 views

Question details

Create a Total worksheet that sums values for each equipment ID across multiple worksheets with different lists.

Create an Excel Total Sheet for Equipment IDs with Power Query
Product
Microsoft Excel Power Query
Device & OS
not provided
Scenario
Equipment IDs and their values are listed on separate worksheets, and each worksheet may contain different IDs.
Observed behavior
The desired Total worksheet should show one combined value for each equipment ID found in the source lists.
Before you start

Check that each source list has the same column names, such as Equipment ID and Value, and that values are numeric. Remove blank ID rows and use consistent spelling and formatting for IDs that should be grouped together.

Solution 1Recommended

Append and group the source tables with Power Query

Use this method to create a refreshable total for every equipment ID, even when the lists differ between worksheets.

1
Create source tables

On each source worksheet, select the list and choose Home > Format as Table. Confirm that the table has headers, then give each table a distinct name on the Table Design tab.

2
Import each table

Click inside a source table and select Data > From Table/Range. In Power Query, choose Home > Close & Load > Close & Load To, then select Only Create Connection. Repeat for each source table.

3
Append the queries

Select Data > Get Data > Combine Queries > Append. Choose Three or more tables if needed, add all the source queries, and select OK.

4
Group and sum

In the appended query, select Home > Group By. Group by Equipment ID, name the new column Total, choose the Sum operation, and select the Value column.

5
Load the Total sheet

Choose Home > Close & Load > Close & Load To. Select Table and an existing worksheet location on the Total sheet, or load to a new worksheet and rename it Total.

6
Refresh after changes

After editing the source tables, right-click the result table on the Total sheet and select Refresh.

Append and group the source tables with Power Query
Adding a new source worksheet: Create a table and query for the new worksheet, then edit the append step to include that query before refreshing.
WPS Office

Sum equipment IDs across worksheets in WPS Spreadsheet

Use a Total worksheet and SUMIF formulas in WPS Spreadsheet to combine values for IDs listed on separate sheets. Maintain the ID list on the Total sheet as new IDs are added.

  1. 1. Open the workbook: Open your workbook in WPS Spreadsheet and check that each source sheet has equipment IDs in column A and values in column B.
  2. 2. List the IDs: Add a worksheet named Total. Enter Equipment ID in A1 and Total in B1, then list each distinct equipment ID from the source sheets in column A.
  3. 3. Enter the total formula: In Total!B2, enter =SUMIF('Sheet1'!A:A,A2,'Sheet1'!B:B)+SUMIF('Sheet2'!A:A,A2,'Sheet2'!B:B). Replace Sheet1 and Sheet2 with your source sheet names and add another SUMIF term for each additional sheet.
  4. 4. Fill down and maintain the list: Drag the fill handle from B2 down alongside the IDs in column A. When a new equipment ID appears on a source sheet, add it to the Total list and copy the formula down.
Sum matching equipment IDs across multiple worksheetsUse familiar spreadsheet formulas to update totalsOpen and edit Microsoft Excel XLSX and XLS filesWork in a free, easy-to-use office suite
microsoft office alternative - wps office

Frequently Asked Questions

Do the equipment IDs need to appear on every worksheet?

No. Appending the source queries combines their rows, and Group By totals each ID wherever it appears.

How do I update the Power Query totals after changing a value?

Right-click the result table on the Total worksheet and select Refresh. Changes made within the source tables will be included.

Will a new equipment ID appear in the Power Query result?

Yes, if you add it as a row within an existing source table and refresh the result. A new source worksheet must also be added to the append query.

Why are matching IDs showing as separate groups?

Check the source tables for differences in spelling, spaces, or ID formatting. Standardize the IDs, then right-click the result table and select Refresh.