Summarize Parts by Width and Length in Excel
Question details
Combine fabrication parts with matching widths and lengths and total their quantities.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A calculated parts list contains repeated width and length combinations that need a quantity summary.
- Observed behavior
- The desired result is one row per width and length combination with the combined quantity.
Identify the Width, Length, and Quantity columns in your parts list. Ensure dimensions use consistent units and quantities are numeric so matching and totals are accurate.
Use FILTER, UNIQUE, and SUMIFS to summarize matching parts
Use dynamic-array formulas in a recent version of Excel to list distinct dimensions and total their quantities.
This example assumes widths are in A2:A100, lengths are in B2:B100, and quantities are in C2:C100. Adjust the ranges to cover your parts list.
Outside the source table, enter Width in D1, Length in E1, and Total Quantity in F1.
In D2, enter =UNIQUE(FILTER(A2:B100,(A2:A100<>"")*(B2:B100<>""))). The results spill into columns D and E, excluding rows with a blank width or length.
In F2, enter =SUMIFS($C$2:$C$100,$A$2:$A$100,D2,$B$2:$B$100,E2), then drag the fill handle down alongside the dimension pairs.
Compare the totals in column F with the source quantities. If new dimension pairs appear, extend the formula in column F to cover them.

Summarize part quantities with a PivotTable
Use a PivotTable when you prefer a menu-based summary without dynamic-array formulas.
Group fabrication parts in WPS Spreadsheets
Use a PivotTable in WPS Spreadsheets to group parts by width and length and sum their quantities.
- 1. Open the parts list: Open your Excel workbook in WPS Spreadsheets and select the parts data, including its column headings.
- 2. Create a PivotTable: Choose Insert > PivotTable and select where to place the summary.
- 3. Group the dimensions: Drag Width and Length into the Rows area of the PivotTable field list.
- 4. Sum quantities: Drag Quantity into Values. If it is counted instead of summed, open the value field settings and choose Sum.

Frequently Asked Questions
Why are two parts with the same displayed dimensions listed separately?
Their underlying values may differ due to decimal precision, or one value may be stored as text. Check the source cells and use consistent numeric values and units before creating the summary.
Why does the formula show a #SPILL! error?
The UNIQUE and FILTER result needs empty cells below and to the right of D2. Clear any obstructing cells and place the formula outside an Excel table.
Will the quantity formula automatically fill down for new dimension pairs?
The dimension list can expand within the specified source range, but the SUMIFS formula in column F must be filled down to cover any new result rows.
How do I update a PivotTable after changing the parts list?
Select the PivotTable and choose Refresh. If new rows fall outside its source range, update the PivotTable data source to include them before refreshing.




