Function Problems

Track Total Sales for an Item Across Excel Worksheets

Anum MushtaqAnum Mushtaq Nov 12, 2026 869 views

Question details

Calculate total sales for a single product when order information is currently stored on separate worksheets.

Track Total Sales for an Item Across Excel Worksheets
Product
Microsoft Excel workbook
Device & OS
not provided
Scenario
The user needs to report sales by item across multiple order or invoice worksheets.
Observed behavior
Sales data split across individual worksheets is difficult to summarize and maintain with formulas.
Before you start

Identify the fields needed for each invoice line, such as invoice number, item name, quantity, and unit price. Use consistent item names and numeric values for quantity and price before creating a summary.

Solution 1Recommended

Consolidate invoice lines and calculate item sales with SUMIFS

Use this method when you want a formula-based total that updates as new invoice lines are added to one central table.

Keeping all order lines in one structured table makes reporting more reliable than referencing many separate worksheets. Add a Total column for each line, then use SUMIFS to total sales for the selected item.

1
Create a consolidated sales table

Add a worksheet named Sales Data and create columns for Invoice Number, Item, Quantity, Unit Price, and Total. Copy each invoice line from the separate worksheets into this table, with one row per item sold.

2
Calculate each line total

In the Total column, enter a formula such as =C2*D2, where C is Quantity and D is Unit Price. Fill the formula down for all invoice lines.

3
Convert the range to a table

Select the consolidated data range, then choose Insert > Table. Confirm that My table has headers is selected, and give the table a clear name such as SalesTable.

4
Enter the item to summarize

On a summary worksheet, type the product name to report in a cell, such as H2. Make sure it matches the item name used in the Item column.

5
Use SUMIFS to return total sales

In the result cell, enter =SUMIFS(SalesTable[Total],SalesTable[Item],H2). The formula adds the Total values for all rows whose Item equals the product entered in H2.

Consolidate invoice lines and calculate item sales with SUMIFS
A single sales table simplifies reporting: After consolidation, new sales only need to be added as new rows. The SUMIFS result updates automatically when the table expands.
WPS Spreadsheet solution

Create Item Sales Reports with WPS Spreadsheet

WPS Spreadsheet lets you organize invoice lines in one table and calculate product sales with SUMIFS or a PivotTable. Its familiar spreadsheet tools make it easy to migrate an existing workbook and maintain an up-to-date sales summary.

  1. 1. Open the sales workbook: Open the existing Excel workbook in WPS Spreadsheet and add a new worksheet for the consolidated sales data.
  2. 2. Create sales-data columns: Enter headers for Invoice Number, Item, Quantity, Unit Price, and Total, then place each invoice line on its own row.
  3. 3. Calculate line totals: In the Total column, enter =QuantityCell*UnitPriceCell and fill the formula down through the sales records.
  4. 4. Calculate product revenue: On a report sheet, enter the product name and use =SUMIFS(TotalRange,ItemRange,ItemCell) to return its total sales.
  5. 5. Build a PivotTable when needed: Select the data table, choose Insert > PivotTable, then place Item in Rows and Total in Values to view totals for all products.
Use SUMIFS to calculate total revenue for a selected item.Build PivotTables to compare sales totals for every product.Open and edit Microsoft Excel .xlsx and .xls sales workbooks.Use a familiar spreadsheet interface for quick workbook migration.
microsoft office alternative - wps office

Frequently Asked Questions

Can I total one item from several Excel worksheets without consolidating the data?

You can build formulas that reference each worksheet individually, but they become difficult to maintain as sheets are added or renamed. A single consolidated table is the more reliable option for ongoing reporting.

What columns should a sales table include?

At minimum, include Invoice Number, Item, Quantity, Unit Price, and Total. You can also add Order Date, Customer, Salesperson, or Region if you need filtering and more detailed reports.

Why does SUMIFS return zero for an item that has sales?

Check that the item name in the criteria cell exactly matches the Item column. Remove leading or trailing spaces, confirm that the SUMIFS sum range contains numeric Total values, and make sure the criteria and sum ranges have matching row counts.

How do I calculate total sales if I only have quantity and unit price?

Add a Total column with a formula such as =C2*D2, where C2 is Quantity and D2 is Unit Price. Then use SUMIFS on that Total column for the selected item.

Should I use SUMIFS or a PivotTable for sales reporting?

Use SUMIFS for a focused report that returns the total for a selected product. Use a PivotTable when you need a list of totals for many items and want to filter or group the data interactively.