Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Use the DSUM Function in Excel

Learn how to use DSUM Function in Excel, including its purpose, syntax, examples, and common errors, with clear step-by-step guidance.

Table of Contents

This guide explains how to use DSUM Function in Excel, including its syntax, required arguments, practical examples, and common errors.

How to Use the DSUM Function in Excel screenshot

The following article will share to you the description, syntax and usage examples of DSUM, please follow along.

Describe the DSUM function

The DSUM function is a function that adds numbers in a field (column) in a data list that satisfy the conditions you specify.

Syntax of the DSUM function

= DSUM (database; field; criteria)

Inside:

  • Database is a required argument, this is the list (database) made up of a cell range. This data list is a list of data that is records and columns of data are fields, containing fields for checking conditions and fields for summing. The list contains the first row as column headings.
  • Field is a required argument, which specifies the column name used to sum the data. You can enter the column header name in quotes or a number representing the position of the column in the list without quotes (for example, number 1 is the first column, number 2 is the second column. in database ) or a reference to the column heading you want to sum.
  • Criteria is a required argument, this is the range of cells containing the conditions that you want the DSUM function to check.

Notice the range of criteria conditions

  • You can use any range for the criteria argument if the range contains at least one column label and at least one cell below the column header that determines the condition for that column.
  • Don't put the range of conditions at the bottom of the list, because there won't be a place to add other information to the list.

DSUM function example

Suppose you have the following data table:

DSUM function example screenshot 2

1. Calculate the total amount sold of iPhone products.

First, you can create a conditional range for the DSUM function, because you need to count the iPhone products that have a lot of iPhone lines, the condition you enter the wildcard is the * after the iPhone.

DSUM function example screenshot 3

Next, you enter the DSUM function formula as follows:

= DSUM (A9: E18; "Thanh Tien"; C4: C5)

Inside:

  • A9: E18 is the database range here that contains the column to be calculated and the column that contains the conditions to check.
  • 'Pay Money' is the column heading where you will use the values in that column to calculate the total.
  • C4: C5 is a range of conditions containing column headings and a condition value.

DSUM function example screenshot 4

Or you can change the value in Field to refer to the column heading Thanh Tien as follows: = DSUM (A9: E18; E9; C4: C5) your results are the same as above.

DSUM function example screenshot 5

2. Calculate the total amount sold for products with a Quantity greater than 3. You first create a conditional range with the heading Sales Quantity column, and the condition value is> = 3.

DSUM function example screenshot 6

Next you enter the formula DSUM function:

= DSUM (A9: E18; E9; C4: C5)

Inside:

  • A9: E18 is the range of databases you will work on.
  • E9 is the reference to the column header to be summed.
  • C4: C5 is the criteria condition range with the Sales Quantity column heading and the condition is> = 3.

DSUM function example screenshot 7

Above the article has shared to you the description, syntax, specific examples of the DSUM function in Excel. You can use the DSUM function to process data as needed. Good luck!

FAQ

What does the DSUM function do in Excel?

The DSUM function performs the calculation described in this guide. Use the correct arguments and compatible data types for reliable results.

How do I enter the DSUM function correctly?

Start with an equals sign, enter DSUM, add the required arguments inside parentheses, and confirm that cell references and separators are correct.

Why does the DSUM function return an error?

Common causes include missing arguments, invalid data types, incorrect cell references, unsupported values, or regional separator settings.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.