Total Quantities by Part Name with SUMIF in Excel
Question details
Calculate the total quantity for each construction part name, regardless of the order in which the parts are entered.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Part names and quantities are entered in separate columns, and a summary is needed for each unique part.
- Observed behavior
- Each part name should have one total that includes all matching quantities in the source list.
Arrange part names in column A and numeric quantities in column B, with headers in row 1. Use consistent spelling for each part name so matching entries are counted together.
Use SUMIF to total quantities for each part name
Use this method when part names and quantities are listed in separate columns and you want a formula-based summary.
Enter part names in A2:A1000 and their corresponding quantities in B2:B1000. Each quantity must be on the same row as its part name.
Copy the part names from column A into column D, then select the copied cells and choose Data > Remove Duplicates. Alternatively, type each part name once in column D.
In E2, enter =SUMIF($A$2:$A$1000,D2,$B$2:$B$1000) and press Enter. Excel totals the quantities in column B for rows whose part name matches D2.
Drag the fill handle from E2 down alongside the remaining part names in column D. The reference to D2 changes for each row, while the source ranges stay fixed.

Total part quantities with SUMIF in WPS Spreadsheet
Use WPS Spreadsheet to list construction parts and calculate totals with the same SUMIF formula used in Excel.
- 1. Open your spreadsheet: Open WPS Spreadsheet and create a workbook or open an existing Excel file.
- 2. Arrange the data: Enter part names in A2:A1000 and corresponding quantities in B2:B1000.
- 3. List each part once: Enter a unique list of part names in column D, starting at D2.
- 4. Calculate the totals: Enter =SUMIF($A$2:$A$1000,D2,$B$2:$B$1000) in E2, press Enter, and drag the fill handle down for the other parts.

Frequently Asked Questions
Does the order of the part names affect SUMIF?
No. SUMIF checks the entire specified name range, so matching entries can appear in any order. Keep each quantity on the same row as its part name.
How do I create a list with each part name only once?
Copy the names to a separate column, select the copied cells, and choose Data > Remove Duplicates. You can also type each name once in the summary column.
Why is a part missing from the total?
Check that its name matches the summary entry and that its row falls within both formula ranges. Differences in spelling or extra spaces can prevent a match.
Will newly entered parts be included automatically?
New rows within A2:A1000 and B2:B1000 are included in existing totals. For rows beyond 1000, extend both ranges; add new part names to the summary list and fill the formula down.




