Function Problems

How to Sum Invoice Amounts by Customer or Phone Number in WPS Office Spreadsheets

Kushani NimanthikaKushani Nimanthika Nov 13, 2026 869 views

Question details

The user needs to calculate one total invoice amount for each unique customer or phone number when multiple invoices share the same phone number.

How to Sum Invoice Amounts by Customer or Phone Number in WPS Office Spreadsheets
Product
WPS Office Spreadsheets
Device & OS
not provided
Scenario
The user has an invoice list with customer names, phone numbers, and invoice amounts, and wants a summarized total per unique phone number or customer.
Observed behavior
Multiple invoices share the same phone number, so the raw invoice list does not show a single total for each unique customer or phone number.
Before you start

Make sure your invoice data has separate columns for phone number or customer and invoice amount, with no completely blank header cells or merged cells in the data range.

Solution 1Recommended

Use a Dynamic Array Formula with UNIQUE and SUMIF

Fastest way to return a sorted list of unique phone numbers and their invoice totals in one step.

1
Select a result cell

Click an empty cell such as E2 where the spill range has enough space below and to the right.

2
Enter the dynamic array formula

Type =LET(uMobileNumber,UNIQUE(B2:B100),totals,SUMIF(B2:B100,uMobileNumber,C2:C100),SORT(HSTACK(uMobileNumber,totals))) and press Enter.

3
Adjust the cell ranges

Replace B2:B100 with your phone number column and C2:C100 with your invoice amount column to match your data.

Use a Dynamic Array Formula with UNIQUE and SUMIF
Version note: If your WPS version does not support UNIQUE or HSTACK, use the PivotTable or Remove Duplicates method.

Total Invoices by Customer or Phone Number in WPS Spreadsheets

WPS Office Spreadsheets gives you Excel-compatible tools to total invoice amounts by unique customer or phone number without extra add-ins. Use dynamic array formulas, PivotTables, or SUMIF and save as .xlsx to share with Microsoft Excel users.

  1. 1. Open your workbook: Open the invoice file in WPS Office Spreadsheets and confirm the phone number and invoice amount columns are named.
  2. 2. Enter the summary formula: Select an empty cell and type =LET(uMobileNumber,UNIQUE(B2:B100),totals,SUMIF(B2:B100,uMobileNumber,C2:C100),SORT(HSTACK(uMobileNumber,totals))).
  3. 3. Press Enter: Press Enter to let WPS spill the unique phone numbers and their invoice totals into the adjacent cells.
  4. 4. Or insert a PivotTable: Select the data range, click Insert > PivotTable, and drag Phone Number to Rows and Invoice Amount to Values.
  5. 5. Save as .xlsx: Click File > Save As and choose Excel Workbook (*.xlsx) to keep full Microsoft Office compatibility.
Returns one invoice total per unique phone number or customerFull .xlsx compatibility with Microsoft Office ExcelFree, lightweight, familiar ribbon-based spreadsheet interfaceBuilt-in PivotTable and SUMIF tools require no add-ins
microsoft office alternative - wps office

Frequently Asked Questions

Can I sum by customer name instead of phone number?

Yes. Replace the phone number range with the customer name range in the formula, or drag Customer Name to Rows in the PivotTable instead of Phone Number.

Why does my SUMIF formula return 0?

Check whether phone numbers are stored as text in one place and numbers in another, or if invoice amounts are text. Remove extra spaces and use Text to Columns or VALUE to convert the amount column.

Does WPS Office support UNIQUE and HSTACK?

Recent WPS Office versions support dynamic array functions. If your version does not, use the Remove Duplicates and SUMIF method or insert a PivotTable.

How do I keep totals updated when I add more invoices?

Convert the data to a Table with Ctrl+T and reference the table columns, or refresh the PivotTable after adding rows.

Can I save this summary and open it in Microsoft Excel?

Yes. Save the workbook as an Excel Workbook (*.xlsx), and the formula, PivotTable, or SUMIF results can be opened in Microsoft Excel.