Skip to content
Excel

DSUM function in Excel

Adds the numbers in the field column of records in the database that match the criteria

=DSUM(database, field, criteria)

DSUM syntax and parameters

Three arguments, three required.

  • databaserangeRequired

    This is the range of cells that makes up the list or database. A database is a list of related data in which rows of related information are records, and columns of data are fields. The first row of a list contains labels for each column therein.

  • fieldanyRequired

    This specifies which column is used in the function. Specify the column label enclosed between double quotation marks, such as "Age" or "Yield," for example. Alternatively, you can specify a number (without quotation marks) that represents the position of the column within the list: e.g., 1 for the first column, 2 for the second column, and so on.

  • criteriarangeRequired

    This is the range of cells that contains the conditions that you specify. You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label in which you specify a condition for the column.

DSUM examples

Formulas you'll actually reuse.

  1. Total Amount for rows matching the criteria range — headers in G1:H1, conditions below them (Region = West, Amount > 1000):

    =DSUM(A1:E200, "Amount", G1:H2)

    Result48900

  2. The field as a column number (4 = Amount), all West orders:

    =DSUM(A1:E200, 4, G1:G2)

    Result52300

DSUM in Google Sheets

Same name — your formula ports as-is.

Try DSUM in the playground

Edit the example — nothing to install.

Preloaded with the DSUM formula from Example 1 — change anything and watch it respond.

Loading the editor…