DSUM
The DSUM function in Google Sheets is a powerful tool to return the sum of values selected from a database table-like array or range using a SQL-like query. Whether you're working with a database, analyzing data, or performing calculations, the DSUM function simplifies the task. Dive into our comprehensive guide to master its application.
Function Syntax and Parameters
Syntax: DSUM(database, field, criteria)
Parameters:
- database: The range or array representing the database table.
- field: The column or field to sum.
- criteria: The criteria to meet. This can be a single condition or multiple conditions separated by the- ANDor- ORoperators.
Step-by-Step Tutorial
- 
Using DSUMwith a database table-like array:- Example: =DSUM(A1:C10, "Sales", "Region='West'")
- Result: Returns the sum of the "Sales" field from the database table defined by the range A1:C10where the "Region" field is equal to "West".
 
- Example: 
- 
Using DSUMwith a range:- Example: If A2:C10has the database table, then=DSUM(A2:C10, "Quantity", "Category='Electronics'")will return the sum of the "Quantity" field from the database table where the "Category" field is equal to "Electronics".
 
- Example: If 
Use Cases and Scenarios
- Inventory Management: Calculate the total stock quantity for a specific category.
- Sales Analysis: Determine the sum of sales for a particular Sales Representative.
- Expense Tracking: Calculate the total expenses based on specific criteria.
Related Functions
- DGET: Returns the single value from a database table-like array or range using a SQL-like query.
- DAVERAGE: Calculates the average of selected database entries using a SQL-like query.