Function Problems

How to Combine Duplicate Item Numbers and Sum Weights with SUMIF in WPS Spreadsheets

Khadija KhanKhadija Khan Nov 13, 2026 869 views

Question details

The user needs to consolidate duplicate item numbers from a BULK sheet into a SUMMARY sheet and sum tag weight and actual weight for each item.

Combine Duplicate Item Numbers and Sum Weights with SUMIF in WPS Spreadsheets
Product
WPS Spreadsheets
Device & OS
not provided
Scenario
A BULK sheet has multiple rows for the same item number, and a SUMMARY sheet must show one row per item with total tag weight and actual weight.
Observed behavior
Duplicate item numbers repeat across rows, so totals must be aggregated by item number using SUMIF.
Before you start

Make sure the BULK sheet uses consistent item numbers in one column and numeric weight columns without text or merged cells. Prepare a SUMMARY sheet with column A reserved for the unique item numbers.

Solution 1Recommended

Create a Unique Item List and Sum Weights with SUMIF

Use this method when you need a clear SUMMARY sheet that totals tag weight and actual weight for each item number.

SUMIF totals a range based on a matching criterion, so it can pull values from the BULK sheet for each unique item number. The formulas can be filled down to update all items at once.

1
Create the unique item list on the SUMMARY sheet

Open WPS Spreadsheets and go to the SUMMARY sheet. In column A, enter each unique item number once, starting at A2.

2
Enter the tag weight SUMIF formula

In cell B2, enter =SUMIF(BULK!$A:$A,A2,BULK!$B:$B) and press Enter to total the tag weight for the item number in A2.

3
Enter the actual weight SUMIF formula

In cell C2, enter =SUMIF(BULK!$A:$A,A2,BULK!$C:$C) and press Enter to total the actual weight for the same item number.

4
Copy the formulas down

Select B2:C2 and drag the fill handle down or double-click it to apply the SUMIF formulas to every unique item number.

Create a Unique Item List and Sum Weights with SUMIF
Weights totaled per item: The SUMMARY sheet now shows one row per item number with the total tag weight and actual weight.

Use SUMIF in WPS Spreadsheets to Consolidate Duplicate Item Numbers

WPS Spreadsheets can directly sum tag weight and actual weight for each item number with SUMIF formulas. Enter a unique item list, reference the BULK sheet ranges, and fill the formulas down to create a clean SUMMARY sheet.

  1. 1. Open the workbook in WPS Spreadsheets: Launch WPS Office and open the workbook that contains the BULK and SUMMARY sheets.
  2. 2. List unique item numbers on the SUMMARY sheet: In the SUMMARY sheet, enter each item number once in column A, starting at A2.
  3. 3. Enter the SUMIF formulas for both weights: In B2 and C2, enter =SUMIF(BULK!$A:$A,A2,BULK!$B:$B) and =SUMIF(BULK!$A:$A,A2,BULK!$C:$C), then press Enter.
  4. 4. Fill formulas down and check totals: Drag the fill handle from B2:C2 down through the unique item list and verify that the totals match the BULK sheet.
Automatically totals duplicate item numbers without manual calculationSUMIF formulas are compatible with Microsoft Excel .xlsx workbooksWorks across sheets so BULK data stays unchangedFree WPS Spreadsheets provides familiar Excel-like formulas and interface
microsoft office alternative - wps office

Frequently Asked Questions

Can SUMIF reference a different sheet in WPS Spreadsheets?

Yes. Use the sheet name followed by an exclamation mark, such as =SUMIF(BULK!$A:$A,A2,BULK!$B:$B), to sum values from another sheet.

What do I do if the weight values are not in columns B and C?

Change the sum_range in the SUMIF formula to the correct column. For example, if actual weight is in column D, use =SUMIF(BULK!$A:$A,A2,BULK!$D:$D).

How can I create a unique item number list without Microsoft 365 UNIQUE?

Copy the item numbers to the SUMMARY sheet, select the list, and use Data > Remove Duplicates in WPS Spreadsheets to keep one row per item. You can also type the unique item numbers manually.

Why does my SUMIF formula return 0?

Check that the item numbers in both sheets match exactly, with no extra spaces or different formatting, and confirm that the weight cells are formatted as numbers rather than text.

Does WPS Spreadsheets support the UNIQUE function?

Recent WPS Spreadsheets versions support UNIQUE. If your version does not, use the Remove Duplicates command or enter the unique item numbers manually.