How to Use SUMPRODUCT by Month with Multiple Value Columns in Excel
Question details
The user needs to multiply a Count column by multiple 0-or-1 Value columns and sum the final results categorized by month.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Creating a summary table that aggregates data monthly across multiple conditional value columns without relying on auxiliary tables.
- Observed behavior
- The user seeks a one-step formula solution using structured references that can be easily dragged across columns and down rows to automatically calculate the values.
Ensure your source data is properly formatted as an Excel Table (by pressing Ctrl+T) and named appropriately (e.g., 'mnthTbl') to take advantage of dynamic structured references.
Use SUMPRODUCT with Structured Table References
Apply a combined SUMPRODUCT formula to match the specific month, multiply the count, and apply the specific value column simultaneously.
The SUMPRODUCT function is ideal for this scenario because it can handle array operations inherently without needing a Ctrl+Shift+Enter array formula. By using structured references, your formula will automatically accommodate new data as your table grows.
Create a summary area with your target Months listed in the first column (e.g., column A) and your Value categories as headers across the top row.
In the first result cell (e.g., B2), input the following formula: =SUMPRODUCT((mnthTbl[[Month]:[Month]]=$A2)*mnthTbl[[Count]:[Count]]*mnthTbl[Value 1]).
Select the cell with the formula, click the fill handle in the lower-right corner, and drag it down for all the months. Then, drag it across for your other Value columns.
As you move across columns, ensure you manually adjust the '[Value 1]' reference in the formula to point to the correct subsequent Value column headers in your source table if they do not automatically update.

Easily Handle Complex Array Formulas in WPS Spreadsheet
WPS Spreadsheet fully supports advanced array calculations, including the SUMPRODUCT function and structured table references. It allows you to build robust, dynamic summary reports without needing complicated auxiliary tables.
- 1. Open your workbook in WPS Spreadsheet: Launch WPS Office, select Spreadsheet, and open your existing data file.
- 2. Verify your Table formatting: Navigate to the Table Tools tab to ensure your source data is recognized as a Table and take note of its name.
- 3. Apply the SUMPRODUCT formula: Enter the formula `=SUMPRODUCT((mnthTbl[[Month]:[Month]]=$A2)*mnthTbl[[Count]:[Count]]*mnthTbl[Value 1])` into your designated summary cell.
- 4. Use the fill handle: Drag the green square at the bottom-right of the active cell to quickly copy the calculation logic across all desired months and categories.

Frequently Asked Questions
Why is my SUMPRODUCT formula returning a #VALUE! error?
This usually occurs if the ranges or arrays you are multiplying have different dimensions, or if there is text in the ranges being evaluated mathematically. Ensure that the 'Count' column and 'Value' columns are precisely the same length and contain only numbers.
Can I use SUMIFS instead of SUMPRODUCT for this calculation?
SUMIFS is excellent for summing a single range based on multiple criteria. However, because you need to multiply two different arrays (Count and Value) row-by-row before summing them by month, SUMPRODUCT is the correct function as it performs this operation in one step without needing a helper column.
How do structured table references work?
Structured references like 'mnthTbl[[Month]:[Month]]' dynamically point to the data within the 'Month' column of a formatted Excel Table. If you append new rows to the bottom of your table, the structured reference automatically expands to include the new data, keeping your formulas accurate.




