Function Problems

Total Quantities by Part Name with SUMIF in Excel

Huda QurayshiHuda Qurayshi Nov 18, 2026 869 views

Question details

Calculate the total quantity for each construction part name, regardless of the order in which the parts are entered.

How to Total Quantities by Part Name with SUMIF in Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Enter the source data

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.

2
Create a part-name list

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.

3
Enter the SUMIF formula

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.

4
Fill the formula down

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.

Use SUMIF to total quantities for each part name
Include new rows: If your data extends beyond row 1000, update both ranges in the formula to include the additional rows. Add any new part names to the summary list.
Calculate part totals in WPS

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. 1. Open your spreadsheet: Open WPS Spreadsheet and create a workbook or open an existing Excel file.
  2. 2. Arrange the data: Enter part names in A2:A1000 and corresponding quantities in B2:B1000.
  3. 3. List each part once: Enter a unique list of part names in column D, starting at D2.
  4. 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.
Total quantities for matching part names with SUMIFOpen and edit Microsoft Excel XLSX filesCreate a reusable summary for a list of parts
microsoft office alternative - wps office

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.