DSUM function in Excel

What is DSUM function in Excel?

The DSUM function is one of the Database functions of Excel.

It adds the numbers in the field (column) of records in the database that match the conditions you specify.

We can find this function in the Database of insert function Tab

How to use DSUM function in excel

  1. Click on empty cell (like F5 )
Click on empty cell  excel

2. Click on the fx icon (or press shift+F3)

Click on the fx icon

3. In the insert function tab you will see all functions

insert function tab excel

4. Select Database category

5. Select the DSUM function

6. Then select ok

7. In the function arguments Tab you will see DSUM function

8. In the Database section you can enter the range of cells that makes up the list or database. A database is a list of related data (ex: Table1)

9. Field section is either the label of the column in double quotation marks or a number that represents the column’s position in the list (ex: C1)

10. Criteria section is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition (ex: Table1)

11. You will see the result in formula result section

How to use DSUM function in excel

Examples of DSUM function in excel

Example1:

calculate sum of student age with DSUM function

calculate sum of student age with DSUM function excel

Example 2:

calculate sum of student height with DSUM function

calculate sum of student height with DSUM function excel

Python code for DSUM function

NameAgeHeightWeight
Olivia25210180
Noah25205235
Oliver27195205
Elijah22198185
James29199231
William29201240
Benjamin21202235
Lucas25200238
Henry22204190
import pandas as pd

df=pd.read_csv(‘example.csv’)

sumdf = df.sum(axis=0, numeric_only= True)

print (sumdf)

DSUM related functions :

DCOUNT Function
DCOUNTA Function
DMIN Function
DMAX Function
DPRODUCT Function

DAVERAGE function

Leave a Reply

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