Function Problems

How to Sum Repeated Items by Period in Excel Without a PivotTable

Jason MillerJason Miller Oct 23, 2026 871 views

Question details

The user needs to calculate the total values for specific repeated labels within a defined period range in an Excel spreadsheet without using a PivotTable.

How to Sum Repeated Items by Period in Excel Without a PivotTable
Product
Excel
Device & OS
not provided
Scenario
Working with intermittent total rows or structured 2D tables where summarizing data by specific labels and time periods is required.
Observed behavior
The goal is to extract accurate conditional sums across rows and columns using formulas instead of a PivotTable.
Before you start

Ensure your period headers and data labels are consistently formatted without merged cells, and identify the specific criteria cells you will use to define your target periods and labels.

Solution 1Recommended

Use the SUMPRODUCT Function for 2D Ranges

The SUMPRODUCT function is highly effective when your data spans multiple columns (periods) and rows (labels), easily handling intermittent total rows and 2D arrays.

SUMPRODUCT can evaluate multiple arrays of data conditionally. By converting true/false criteria into 1s and 0s, it multiplies these values against your actual data range to return a targeted sum.

1
Select the result cell

Click on the cell where you want the calculated total to appear.

2
Enter the SUMPRODUCT formula

Type the formula structure to match the label and period boundaries. For example: =SUMPRODUCT(($A$2:$A$5=A8)*($B$1:$M$1>B8)*($B$1:$M$1<C8)*($B$2:$M$5)).

3
Adjust the ranges

Replace $A$2:$A$5 with your actual data label range, A8 with your target label cell. Adjust the period headers ($B$1:$M$1) and the date criteria (B8 and C8) to match your worksheet.

4
Calculate the result

Press Enter to calculate the sum of the matching items within the specified period.

Use the SUMPRODUCT Function for 2D Ranges
Understanding the logic: The formula multiplies boolean arrays (TRUE/FALSE) with the actual data range. Only cells where both the label condition and period conditions are TRUE will be included in the final sum.
Efficient Data Analysis

Easily Calculate Conditional Sums in WPS Spreadsheet

WPS Spreadsheet fully supports advanced array functions like SUMPRODUCT and SUMIFS. It allows you to analyze complex data sets seamlessly without relying on PivotTables, ensuring smooth handling of intermittent rows and large ranges.

  1. 1. Open your workbook: Launch WPS Spreadsheet and open your data file containing the tables.
  2. 2. Access the Function menu: Click on 'Formulas' in the top ribbon and select 'Insert Function'.
  3. 3. Input formula criteria: Search for SUMPRODUCT, select it, and follow the intuitive dialog box prompts to input your array ranges and criteria.
  4. 4. Confirm and apply: Press OK to instantly calculate your totals and drag the fill handle to apply it to other cells.
Fully compatible with Microsoft Excel formulas and .xlsx formats.Lightweight and fast, even when processing large 2D data arrays.Intuitive formula builder to help you construct SUMPRODUCT and SUMIFS logic easily.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my SUMPRODUCT formula return a #VALUE! error?

This usually happens if the dimensions of the arrays in your SUMPRODUCT formula do not match exactly, or if there is text in the data range being multiplied. Ensure your label range, period range, and data range have consistent starting and ending boundaries.

Can I use multiple criteria for the labels in SUMIFS?

Yes, but SUMIFS requires all conditions to be true (AND logic). If you need OR logic (e.g., sum if Label A OR Label B), you can add two separate SUMIFS formulas together or use SUMPRODUCT with a plus sign (+) between the array conditions.

How do I make the formula dynamic so I can drag it across columns?

Use absolute references (like $A$2:$A$50) for your fixed data ranges and relative references (like A8) for your criteria cells. This allows you to drag the formula down or across other cells without shifting the data lookup areas.