DSUM in Excel
Microsoft Excel has thousands of useful functions to analyze and calculate data. Dsum in Excel is one of the most versatile functions. DSUM Adds the numbers in a column of a list or data in Excel that match conditions you specify.
Database is the range of Excel 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 Excel function. Field can be given as text with the column label enclosed between double quotation marks, such as “MS” or “selling” or as a number 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 you specify. You can use any Excel 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 a condition for the column. In the example shown in the Excel training video, the objective is to find how many people of a certain cadre (‘MS’) in a certain department (‘selling’) have left the company in ‘January 2008’. In the criteria range the ‘date of leaving’ has been pasted twice because we wish to know the number of people who have left between 1-jan-2008 and 31-jan-2008.
Description of the process implementation step by step:
- Copy and paste the headers from the database by leaving 2-3 rows below the data base. The headers are DateOfLeaving, Points , Cadre and Function. The extra header of DateOfLeaving has been added because we wish to find out the people of a certain cadre ‘MS’ who left between 1st January 2008 and 31st January 2008.
- Below the headers we define our criteria. For example, below the DateOfLeaving we define the dates with the appropriate arithmetic operator.
- Next we select a cell where we wish to extract the result, start by typing ‘=’ and type ‘dsum’ and enter the arguments step by step as shown in the video.
- Please note that the database includes the headers.
How to Use Excel’s DSUM Function