search
HomeTopicsexcelExcel function learning: the simplest conditional summation function DSUM()

Excel function learning: the simplest conditional summation function DSUM()

It is called the simplest conditional summation function! Because it has been anonymous in the world for many years, it is not known to others. Although it is not as famous as the SUMIFS function, its unique multi-condition summation method still makes it invincible. The formula of SUMIFS is like a long train, and its formula is like a short taxi. Now it's time to reveal its mystery, it is - the DSUM function!

The SUM series summation functions are the most commonly used functions in our daily work. I believe that most friends are already familiar with functions such as SUMIF, SUMIFS, and SUMPRODUCT.

But there is a summation function that everyone may not be familiar with. It is the DSUM function, which is used to find the sum of the field (column) data recorded in the database that meets the given conditions.

The syntax is: =DSUM (data area, number of columns to be summed, condition area)

Syntax description:

  • Data area: In addition to selecting a single value, you can also select multiple cells for multi-condition search.

  • Number of columns: The number of columns where the data to be summed is located (can also be expressed by column headers)

  • Conditional area: consists of the header row and Multi-row area composed of conditional cells

In fact, its function is relatively close to SUMIF and SUMIFS, so which one is better to use, DSUM or SUMIF and SUMIFS? Let’s compare it below!

The following is a table of product sales in each region of a company. Now we need to sum up the sales based on different conditions.

Excel function learning: the simplest conditional summation function DSUM()

1. Single condition summation

For example, if you need to count the North China area of the entire sales volume.

1) Use the DSUM function

Function formula: =DSUM(A1:C13,3,E1:E2).

  • A1:C13: Specify the data area.

  • 3: Specify the data column to be summed, here it refers to column C. (In addition to specifying the column number, the data column can also refer to the cell where the column title is located or specify the column title with quotation marks at both ends)

  • E1:E2: Specify Condition area, in this example the condition is the "North China" area. (Note: The third parameter must include a column title and the cell below the column title for setting conditions)

The meaning of the function formula is actually to summarize the areas in column A that are North China The data in column C corresponding to the cell.

Excel function learning: the simplest conditional summation function DSUM()

2) Use the SUMIF function

=SUMIF(A2:A13,E2,C2:C13 )

Excel function learning: the simplest conditional summation function DSUM()

By comparison, we can see that in single condition summation, these two functions are not very convenient in terms of convenience. Big difference.

2. Multi-condition summation

For example, we need to count the sales volume of A002 product in North China.

1) Use the DSUM function

Function formula: =DSUM(A1:C13,3,E1:F2)

We see that the DSUM function formulas of multi-condition summation and single-condition summation are very similar, except that the condition area is adjusted from E1:E2 to E1:F2.

E1:F2 represents the condition area, that is, North China and A002 are used as the conditions for the sum of sales.

Excel function learning: the simplest conditional summation function DSUM()

2) Use the SUMIFS function

Function formula: =SUMIFS(C2:C13 ,A2:A13,E2,B2:B13,F2)

Excel function learning: the simplest conditional summation function DSUM()

By comparing the summation of multiple conditions, we found that DSUM The function structure and usage are simpler than the SUMIFS function. DSUM is a good choice for newcomers who do not have a good function foundation!

However, the DSUM function has a disadvantage compared to the SUMIFS function, that is, the summation conditions cannot be entered manually.

For example, for SUMIFS multi-condition summation, we can write the function =SUMIFS(C2:C13,A2:A13,"North China",B2:B13,"A002"), without the need for two EF columns as conditional auxiliary columns , the summation can be completed by directly entering the conditions manually. The conditional area of ​​the DSUM function requires that the column header and the cells below the column header be used to set the condition, so you need to use auxiliary columns to complete the sum.

Excel function learning: the simplest conditional summation function DSUM()

To sum by condition, do you prefer to use the SUMIF function or the DSUM function? Welcome to leave a message for discussion.

Related learning recommendations: excel tutorial

The above is the detailed content of Excel function learning: the simplest conditional summation function DSUM(). For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:部落窝教育. If there is any infringement, please contact admin@php.cn delete
MEDIAN formula in Excel - practical examplesMEDIAN formula in Excel - practical examplesApr 11, 2025 pm 12:08 PM

This tutorial explains how to calculate the median of numerical data in Excel using the MEDIAN function. The median, a key measure of central tendency, identifies the middle value in a dataset, offering a more robust representation of central tenden

Google Spreadsheet COUNTIF function with formula examplesGoogle Spreadsheet COUNTIF function with formula examplesApr 11, 2025 pm 12:03 PM

Master Google Sheets COUNTIF: A Comprehensive Guide This guide explores the versatile COUNTIF function in Google Sheets, demonstrating its applications beyond simple cell counting. We'll cover various scenarios, from exact and partial matches to han

Excel shared workbook: How to share Excel file for multiple usersExcel shared workbook: How to share Excel file for multiple usersApr 11, 2025 am 11:58 AM

This tutorial provides a comprehensive guide to sharing Excel workbooks, covering various methods, access control, and conflict resolution. Modern Excel versions (2010, 2013, 2016, and later) simplify collaborative editing, eliminating the need to m

How to convert Excel to JPG - save .xls or .xlsx as image fileHow to convert Excel to JPG - save .xls or .xlsx as image fileApr 11, 2025 am 11:31 AM

This tutorial explores various methods for converting .xls files to .jpg images, encompassing both built-in Windows tools and free online converters. Need to create a presentation, share spreadsheet data securely, or design a document? Converting yo

Excel names and named ranges: how to define and use in formulasExcel names and named ranges: how to define and use in formulasApr 11, 2025 am 11:13 AM

This tutorial clarifies the function of Excel names and demonstrates how to define names for cells, ranges, constants, or formulas. It also covers editing, filtering, and deleting defined names. Excel names, while incredibly useful, are often overlo

Standard deviation Excel: functions and formula examplesStandard deviation Excel: functions and formula examplesApr 11, 2025 am 11:01 AM

This tutorial clarifies the distinction between standard deviation and standard error of the mean, guiding you on the optimal Excel functions for standard deviation calculations. In descriptive statistics, the mean and standard deviation are intrinsi

Square root in Excel: SQRT function and other waysSquare root in Excel: SQRT function and other waysApr 11, 2025 am 10:34 AM

This Excel tutorial demonstrates how to calculate square roots and nth roots. Finding the square root is a common mathematical operation, and Excel offers several methods. Methods for Calculating Square Roots in Excel: Using the SQRT Function: The

Google Sheets basics: Learn how to work with Google SpreadsheetsGoogle Sheets basics: Learn how to work with Google SpreadsheetsApr 11, 2025 am 10:23 AM

Unlock the Power of Google Sheets: A Beginner's Guide This tutorial introduces the fundamentals of Google Sheets, a powerful and versatile alternative to MS Excel. Learn how to effortlessly manage spreadsheets, leverage key features, and collaborate

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft