Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Error Bars in Excel
  • Working With Tables in Excel
  • How To Sort One Column or Multiple Columns in Excel
  • How to count table columns in Excel
  • How To Create Frequency Distribution in Excel

References

  • How to get relative column numbers in a range in Excel
  • To count total rows in a range in Excel
  • Find Closest Match in Excel Using INDEX, MATCH, ABS and MIN functions
  • Count rows that contain specific values in Excel
  • How to get relative row numbers in a range in Excel

Data Validations

  • How To Create Drop-down List in Excel
  • Excel Data validation whole percentage only
  • Excel Data validation must begin with
  • Excel Data validation date in next 30 days
  • Excel Data validation no punctuation

DSUM function: Description, Usage, Syntax, Examples and Explanation

by

What is DSUM function in Excel?

DSUM function is one of Database functions in Microsoft Excel that adds the numbers in a field (column) of records in a list or database that match conditions that you specify.

Syntax of DSUM function

DSUM(database, field, criteria)

The DSUM function syntax has the following arguments:

  • Database: 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 the list contains labels for each column.
  • Field: Indicates which column is used in the function. Enter the column label enclosed between double quotation marks, such as “Age” or “Yield,” or a number (without quotation marks) that represents the position of the column within the list: 1 for the first column, 2 for the second column, and so on.
  • Criteria: 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 formula explanation

  • 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 for specifying the condition.For example, if the range G1:G2 contains the column label Income in G1 and the amount $10,000 in G2, you could define the range as MatchIncome and use that name as the criteria argument in the database functions.
  • Although the criteria range can be located anywhere on the worksheet, do not place the criteria range below the list. If you add more information to the list, the new information is added to the first row below the list. If the row below the list is not blank, Microsoft Excel cannot add the new information.
  • Make sure that the criteria range does not overlap the list.
  • To perform an operation on an entire column in a database, enter a blank line below the column labels in the criteria range.

Example of DSUM function

Steps to follow:

1. Open a new Excel worksheet.

2. Copy data in the following table below and paste it in cell A1

Note: For formulas to show results, select them, press F2 key on your keyboard and then press Enter.

You can adjust the column widths to see all the data, if need be.

Tree Height Age Yield Profit Height
=”=Apple” >10 <16
=”=Pear”
Tree Height Age Yield Profit
Apple 18 20 14 $105
Pear 12 12 10 $96
Cherry 13 14 9 $105
Apple 14 15 10 $75
Pear 9 8 8 $77
Apple 8 9 6 $45
Formula Description Result
=DSUM(A4:E10,”Profit”,A1:A2) The total profit from apple trees (rows 5, 8, and 10). $225
=DSUM(A4:E10,”Profit”, A1:F3) The total profit from apple trees with a height between 10 and 16 feet, and all pear trees (rows 6, 8, and 9). $248

Post navigation

Previous Post:

How to generate random date between two dates in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • NOT function: Description, Usage, Syntax, Examples and Explanation
  • Return blank if in Excel
  • Nested IF function example in Excel
  • IFERROR function: Description, Usage, Syntax, Examples and Explanation
  • Excel If, Nested If, And/Or Criteria Examples

Date Time

  • NETWORKDAYS.INTL function: Description, Usage, Syntax, Examples and Explanation
  • Calculate years between dates in Excel
  • Display the current date in Excel
  • Next biweekly payday from date in Excel
  • How to calculate Next working/business day in Excel

Grouping

  • Map text to numbers in Excel
  • Group arbitrary text values in Excel
  • Running count group by n size in Excel
  • Group numbers with VLOOKUP in Excel
  • Group times into 3 hour buckets in Excel

General

  • How to fill cell ranges with random text values in Excel
  • Select, Insert, Rename, Move, Delete Worksheets in Excel
  • Sum by group in Excel
  • Hide and Unhide Columns or Rows in Excel
  • Zoom Worksheet in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning