In this article:

How to Use DSUM in Google Sheets (2024 Guide)

DSUM Google Sheets Function Explained

The DSUM function in Google Sheets is a database function that adds up the numbers in a range of cells that meet specific criteria. It works similarly to the SUMIF and SUMIFS functions but is particularly useful when dealing with a range of cells organized as a database table.


The syntax for DSUM is:

DSUM(database, field, criteria)

Here's a breakdown of how it works: 

Database: This is the range of cells that make up your database. The first row should contain your column labels (headers), and the rows below contain the data.

Field: This indicates which column to sum. You can specify the field either by its name (as given in the header row) or by its index number (1 for the first column, 2 for the second column, etc.).

Criteria: This is a range of cells that specifies the conditions you want to apply. The criteria range should include at least one column label and at least one cell below the column label to specify the condition.

DSUM Google Sheets Example

Suppose you have a table like this:

dsum google sheets

If you want to sum the scores for people aged 23, you could set up a criteria range elsewhere in your sheet like this:

google sheets dsum

Then you would use the DSUM function as follows:

DSUM(A1:C4, "Score", E1:E2)

dsum google sheets example

This function will sum the "Score" column (C) for rows in the range A1:C4 where the "Age" column (B) is 23. The result would be 950, as it adds 500 (John's score) and 450 (Mike's score).

how to use dsum in google sheets

We hope that this article has helped you and given you a better understanding of the Google Sheets DSUM function. If you enjoyed this article, you might also like our articles on how to use a Google Sheets wildcard and how to trace dependents in Google Sheets.

Automate repetitive tasks with Lido

Save hours on repetitive and tedious work. Lido is a new spreadsheet that connects your spreadsheets, forms, PDFs, and email inbox.

Select trigger
When a cell value in Google Sheets changes
Check Google Sheets for today's date
When a new row is added to Google Sheets
On new Google Form submission
Send me a daily reminder
On new Typeform submission
When a cell value in database changes
Check database for today's date
When a new row is added in database
When a new HubSpot customer is created
Select action
Creates a one- or multiple-day calendar event with optional attendees
Adds an object to Hubspot
Create a Slack channel, and optionally add a topic or members
Makes any HTTP request
Replaces [@column_name] values in a Google Doc with the corresponding table row's values
Replaces [@column_name] values in a Google Doc with the corresponding table row's values, then export it as a PDF
Makes any HTTP request and returns the response
Inserts given array below defined values in given worksheet
Sends an email using your Google account
Sends an email using your Microsoft Outlook account
Sends a Slack message
Sends an SMS message using your Twilio account
Updates cells with given values
Updates a property of a Hubspot object
Trigger is required
Action is required
Get started