Function Problems

Summarize Parts by Width and Length in Excel

Nimra MalikNimra Malik Dec 2, 2026 869 views

Question details

Combine fabrication parts with matching widths and lengths and total their quantities.

Summarize Parts by Width and Length in Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Add summary headings

Outside the source table, enter Width in D1, Length in E1, and Total Quantity in F1.

2
List unique dimensions

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.

3
Total the quantities

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.

4
Check the summary

Compare the totals in column F with the source quantities. If new dimension pairs appear, extend the formula in column F to cover them.

Use FILTER, UNIQUE, and SUMIFS to summarize matching parts
Allow room for the results: Keep the cells below D2 and E2 empty so the formula can spill. The fixed source ranges must also be extended if the list grows beyond row 100.
Summarize parts in WPS

Group fabrication parts in WPS Spreadsheets

Use a PivotTable in WPS Spreadsheets to group parts by width and length and sum their quantities.

  1. 1. Open the parts list: Open your Excel workbook in WPS Spreadsheets and select the parts data, including its column headings.
  2. 2. Create a PivotTable: Choose Insert > PivotTable and select where to place the summary.
  3. 3. Group the dimensions: Drag Width and Length into the Rows area of the PivotTable field list.
  4. 4. Sum quantities: Drag Quantity into Values. If it is counted instead of summed, open the value field settings and choose Sum.
Group matching widths and lengths in a parts listSum quantities without writing formulasOpen and edit Microsoft Excel XLSX filesUse a familiar spreadsheet interface
microsoft office alternative - wps office

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.