Sum Multiple Sum Columns in DSUM – Google Sheets Guide

Published on

To sum multiple sum columns in DSUM, you can combine it with SUMPRODUCT in Google Sheets. This method offers an advantage over SUMIFS, allowing you to apply multiple criteria while summing multiple columns dynamically.

The key is to specify the columns to sum as an array and wrap DSUM inside SUMPRODUCT.

Generic Formula

=SUMPRODUCT(DSUM(A1:D, {"field 1", "field 2", "field 3", ...}, F1:F2))

Where:

  • A1:D: Data range
  • {“field 1”, “field 2”, “field 3”, …}: Field labels of the columns to sum
  • F1:F2: Criteria range

Example: Summing Multiple Sum Columns in DSUM

Sample Data

The dataset includes student names (Column A) and their marks in three subjects (Columns B–D).

NameMathsPhysicsChemistry
Rose908690
Rose948089
Rose967991
Mike988975
Mike978278
Mike988489

We will sum the total marks of “Rose” in all three subjects.

Step-by-Step Guide

1. Define the Criteria

  1. Enter “Name” in F1 (criteria label).
  2. Enter “Rose” in F2 (criteria value).

2. Enter the DSUM Formula

In H2, enter:

=SUMPRODUCT(DSUM(A1:D, {"Maths", "Physics", "Chemistry"}, F1:F2))
Example of Summing Multiple Columns in DSUM

Alternative Approach: Using Column Numbers

Instead of using column names, you can refer to the column positions:

=SUMPRODUCT(DSUM(A1:D, {2, 3, 4}, F1:F2))

How the Formula Works

1. DSUM with Multiple Sum Columns

When specifying multiple sum columns like {“Maths”, “Physics”, “Chemistry”} or {2, 3, 4}, DSUM returns separate totals for each column.

However, DSUM alone does not sum them together, so we wrap it inside SUMPRODUCT.

2. Why Use SUMPRODUCT Instead of SUM?

While you can use SUM with ARRAYFORMULA, SUMPRODUCT simplifies the formula:

=SUM(ARRAYFORMULA(DSUM(A1:D, {2, 3, 4}, F1:F2)))

Can be replaced with:

=SUMPRODUCT(DSUM(A1:D, {2, 3, 4}, F1:F2))

Key Benefits:

  • Shorter & cleaner formula
  • No need for ARRAYFORMULA
  • Handles arrays efficiently

Dynamic Approach: Sum Multiple Columns in DSUM with SEQUENCE

If you have several continuous columns to sum, manually listing them can be tedious. Instead, use the SEQUENCE function to generate field numbers dynamically.

Formula Using SEQUENCE

=SUMPRODUCT(DSUM(A1:D, SEQUENCE(3, 1, 2), F1:F2))

How It Works

  • SEQUENCE(3, 1, 2) generates {2, 3, 4} dynamically.
  • The formula sums 3 continuous columns starting from the 2nd column (Maths).

Adjusting for More Columns:

Change 3 to the total number of columns, and 2 to the first column’s position.

Conclusion

By using SUMPRODUCT with DSUM, you can efficiently sum multiple sum columns in DSUM while applying criteria dynamically.

Key Takeaways:

  • Use column labels or numbers in DSUM
  • Wrap DSUM in SUMPRODUCT for correct totals
  • Use SEQUENCE for dynamic column selection

This method is powerful for conditional summing across multiple columns in Google Sheets.

Resources

Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Expert Prashanth KV is a Diamond Product Expert in Google Sheets, officially recognized by Google for his contributions to the Docs Editors Help Community and featured in the Google Product Experts Directory. Explore his blog to learn advanced formulas, automation tips, and problem-solving techniques to elevate your spreadsheet skills.

Calculate Trip Days by Month (Start, End, and Full Days) in Google Sheets

If you're managing business travel in Google Sheets, you may need to calculate how...

Mode of Comma-Separated Numbers in Excel (Dynamic Array)

There is no dedicated function in Excel to directly find the mode of comma-separated...

How to Find Mode of Comma-Separated Numbers in Google Sheets

Working with comma-separated numbers inside a single cell is a common scenario in Google...

How to Count Merged Cells in Google Sheets (and Get Their Size)

Sometimes, you may have blocks of merged cells in a column or row. But...

More like this

Calculate Trip Days by Month (Start, End, and Full Days) in Google Sheets

If you're managing business travel in Google Sheets, you may need to calculate how...

How to Find Mode of Comma-Separated Numbers in Google Sheets

Working with comma-separated numbers inside a single cell is a common scenario in Google...

How to Count Merged Cells in Google Sheets (and Get Their Size)

Sometimes, you may have blocks of merged cells in a column or row. But...

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.