ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Comparisons
  3. DSUM vs SUMIFS: Database Functions or Modern Criteria

DSUM vs SUMIFS: Database Functions or Modern Criteria

By ExcelReady Team·Updated November 3, 2026·8 min read

The short answer

Both add numbers that meet conditions. SUMIFS keeps the conditions inside the formula, so it is easy to fill down a summary table. DSUM reads them from a criteria range on the sheet, which makes OR logic and formula-based conditions easy but needs a separate range for each total. For everyday reports, use SUMIFS.

Key takeaways

  • SUMIFS is =SUMIFS(sum_range, criteria_range1, criteria1, ...). DSUM is =DSUM(database, field, criteria).
  • DSUM conditions sit in a criteria range with headers: the same row means AND, separate rows mean OR.
  • Plain text in a DSUM criteria range matches anything that begins with it, so North also matches Northeast.
  • SUMIFS fills down a summary table easily; DSUM needs one criteria range per total.
  • DSUM shines for OR across columns and for conditions written as formulas.
On this page+
  1. DSUM vs SUMIFS at a glance
  2. How DSUM works
  3. How SUMIFS works
  4. The same totals solved both ways
  5. When to use DSUM
  6. When to use SUMIFS
  7. Common mistakes with DSUM and SUMIFS
  8. Our recommendation
  9. Practise it

DSUM vs SUMIFS comes down to where the conditions live. SUMIFS keeps them inside the formula, while DSUM, one of Excel's older database functions, reads them from a small block of cells on the sheet. Both add up numbers from rows that match. This guide compares them on the same data, shows the one DSUM trap that catches almost everyone, and explains when the older function is still the better tool.

DSUM vs SUMIFS at a glance#

SUMIFS is easier for summary tables, and DSUM is easier for OR logic and unusual conditions.

FeatureDSUMSUMIFS
Syntax=DSUM(database, field, criteria)=SUMIFS(sum_range, criteria_range1, criteria1, ...)
Where conditions goA criteria range on the sheet, with headersInside the formula, or in cells it points to
AND logicConditions on the same rowAdd more range and criteria pairs
OR logicConditions on separate rowsAdd several SUMIFS together
Plain text like NorthMatches anything that begins with NorthMatches North exactly
Conditions written as formulasYes, such as Revenue ÷ Units > 1,000No; use SUMPRODUCT instead
Fill down a summary tableAwkward: one criteria range per totalEasy
Needs headers on the dataYesNo
Excel versionsAllExcel 2007 and later

Both ignore capital letters, so "north" and "North" match the same rows.

How DSUM works#

DSUM adds the numbers in one column of a table, using only the rows that match a criteria range. It takes three arguments:

Excel formula
=DSUM(database, field, criteria)
  • database is the whole table, including the header row, such as A1:E9.
  • field is the column to add: its header in quotes, like "Revenue", or its position, like 5.
  • criteria is a block of cells with at least one header copied from the table and a condition below it.

The criteria headers must match the table headers exactly. Under each header you can type text, a number or a comparison such as >=4 under Units. To give one column two conditions, such as units from 2 to 5, repeat the header side by side: Units with >=2 and Units with <=5 on the same row. An empty cell under a header means "any value", so one criteria range can hold optional filters that users fill in or leave blank. That flexibility is what makes DSUM useful as a simple filter panel on a report sheet. In the criteria range, conditions on the same row must all be true (AND). Conditions on different rows are alternatives (OR). The same rules apply to the other database functions, such as DCOUNT, DAVERAGE, DMAX and DMIN, and to the Advanced Filter.

How SUMIFS works#

SUMIFS takes the range to add first, then pairs of "column to check" and "what it must match":

Excel formula
=SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)

Every pair must be true for a row to count. The data doesn't need headers, and the criteria can be text, numbers, operators like ">=4", wildcards or cell references. The SUMIFS function guide lists every argument, and SUMIF vs SUMIFS explains how it differs from its one-condition cousin.

The same totals solved both ways#

Here is a sales list in A1:E9. Note the Northeast row: it matters.

ABCDE
1RegionRepProductUnitsRevenue
2NorthKofiLaptop33,600
3SouthMeiMonitor51,250
4NorthRaviMonitor2500
5NortheastKofiLaptop44,800
6NorthMeiLaptop11,200
7SouthRaviLaptop22,400
8EastMeiMonitor61,500
9NorthKofiMonitor41,000

Task 1: North and Laptop (AND)#

With SUMIFS:

Excel formula
=SUMIFS(E2:E9,A2:A9,"North",C2:C9,"Laptop")

The result is 4,800 (rows 2 and 6).

With DSUM, type Region in G1, Product in H1, North in G2 and Laptop in H2. Then:

Excel formula
=DSUM(A1:E9,"Revenue",G1:H2)

The result is 9,600, not 4,800. DSUM reads plain text as "begins with", so North also matches Northeast. To match exactly, type ="=North" in G2. The cell then shows =North, and DSUM returns 4,800. In SUMIFS, the same "begins with" behaviour needs a wildcard: "North*", as in the exercise on this page.

Task 2: North or Laptop (OR across two columns)#

With DSUM, put the alternatives on separate rows. Use the headers in G1:H1, ="=North" in G2, leave H2 empty, leave G3 empty and type Laptop in H3:

Excel formula
=DSUM(A1:E9,"Revenue",G1:H3)

The result is 13,500. Each data row is counted once, even if it matches both criteria rows.

With SUMIFS, add the two totals and take away the overlap, or the North laptops are counted twice:

Excel formula
=SUMIFS(E2:E9,A2:A9,"North")+SUMIFS(E2:E9,C2:C9,"Laptop")-SUMIFS(E2:E9,A2:A9,"North",C2:C9,"Laptop")

That is 6,300 + 12,000 − 4,800 = 13,500. It works, but DSUM's version is easier to read and change.

Task 3: a condition written as a formula#

DSUM accepts computed criteria: a formula under a header that is not a column name. To add rows where revenue per unit is over 1,000, type High price in J1 and =E2/D2>1000 in J2, referring to the first data row:

Excel formula
=DSUM(A1:E9,"Revenue",J1:J2)

The result is 12,000 (rows 2, 5, 6 and 7). SUMIFS can't compare two columns, so the modern equivalent is SUMPRODUCT: =SUMPRODUCT((E2:E9/D2:D9>1000)*E2:E9) gives the same 12,000. See SUMPRODUCT vs SUMIFS for when that's the better choice.

When to use DSUM#

DSUM is worth knowing when the conditions themselves need to be visible and editable on the sheet.

  • OR logic across different columns, like Task 2, where SUMIFS needs the add-and-subtract trick.
  • A filter panel for non-technical users. People change the words in the criteria cells, and the total updates without anyone touching a formula.
  • Conditions written as formulas, like Task 3.
  • Files that already use DSUM or the Advanced Filter, since both share the same criteria range.

When to use SUMIFS#

SUMIFS is the better everyday choice, especially for reports.

  • Summary tables. =SUMIFS($E$2:$E$9,$B$2:$B$9,G2) fills down a list of reps in one go: Mei's row gives 3,950. With DSUM, every rep needs a separate criteria range.
  • Exact matches by default, so Northeast never sneaks into North.
  • Conditions in single cells, joined with &: ">="&G2. The wildcards and cell-based criteria lesson practises this.
  • Ranges and between values, such as units from 2 to 5. See SUMIFS between two numbers.
  • Optional filters, where a blank cell means "any". See SUMIFS that ignores blank criteria.

Common mistakes with DSUM and SUMIFS#

These slips cause most wrong totals:

  1. Forgetting the header row in DSUM. The database must start at the headers, A1:E9, not A2:E9. Otherwise the field name isn't found and DSUM returns #VALUE!.
  2. Headers that don't match. "Revenue " with a trailing space in the criteria range is a different header.
  3. A blank row in the DSUM criteria range. An empty criteria row matches every record, so DSUM adds everything. Make the criteria range end at the last filled row.
  4. Plain text in DSUM criteria. Remember that North means "begins with North". Use ="=North" for an exact match.
  5. Putting the sum range last in SUMIFS. It always comes first.
  6. Double-counting OR with SUMIFS. When both conditions can be true for the same row, subtract the overlap, as in Task 2.

For the full multi-condition pattern with COUNTIFS too, see the COUNTIFS and SUMIFS guide.

Our recommendation#

Use SUMIFS for almost all conditional totals. It fills down cleanly, matches exactly, and it is the function most Excel tests and colleagues expect. Learn DSUM as a specialist tool for OR logic across columns, conditions written as formulas, or a criteria panel that other people edit. If you meet DSUM in an inherited file, check the criteria cells for the "begins with" trap before trusting the total.

In short: SUMIFS by default, DSUM when the conditions belong on the sheet.

Practise it#

Try the exercise on this page to see how a wildcard reproduces DSUM's "begins with" matching. Then practise SUMIFS with several conditions in a live spreadsheet: you type each formula and it checks it instantly.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

DSUM treats the criterion North as "begins with North". Copy that behaviour with SUMIFS: in H2, total the Revenue (E2:E9) for Laptop rows whose Region starts with North, using the wildcard "North*".

fx
ABCDEFGHI
1
Region
Rep
Product
Units
Revenue
2
North
Kofi
Laptop
3
3600
North* Laptop revenue
3
South
Mei
Monitor
5
1250
4
North
Ravi
Monitor
2
500
5
Northeast
Kofi
Laptop
4
4800
6
North
Mei
Laptop
1
1200
7
South
Ravi
Laptop
2
2400
8
East
Mei
Monitor
6
1500
9
North
Kofi
Monitor
4
1000
10
11
12

Tip: Range to add first (E2:E9), then the Region column with "North*", then the Product column with "Laptop". The * stands for any characters.

Practise this in a lesson

LessonCOUNTIFS and SUMIFSCount and sum with several conditions at once, and learn why SUMIFS puts the sum range first.LessonWildcards and cell-based criteriaMatch partial text with * and ?, and build criteria from cells like ">"&H5 so your formulas adapt.Function guideSUMIFSTotal values that meet several conditions with SUMIFS. Examples by region, month and number range, common errors, and live practice.

Frequently asked questions

What is the difference between DSUM and SUMIFS?

+

SUMIFS takes its conditions as arguments inside the formula. DSUM takes them from a block of cells on the sheet, called a criteria range, with column headers above the conditions. Both add numbers from rows that match.

Is DSUM faster than SUMIFS?

+

Speed is rarely the deciding factor for everyday sheets. The real difference is how you set up the conditions. SUMIFS is easier to copy across a summary table, while DSUM needs a criteria range for each total.

Can DSUM do OR conditions?

+

Yes, and that is its main strength. Put each alternative on its own row of the criteria range. DSUM adds a row if it matches any criteria row, and counts each data row only once.

Why is my DSUM total too high?

+

Usually a text condition like North is also matching Northeast, because DSUM treats plain text as begins with. Type ="=North" in the criteria cell for an exact match. A blank row in the criteria range also makes DSUM add everything.

Does DSUM work in all versions of Excel?

+

Yes. DSUM and the other database functions work in every version, including Microsoft 365, Excel for the web and Excel for Mac. SUMIFS works in Excel 2007 and later.

Sources

  • SUMIFS function - Microsoft Support
  • Filter data in a range or table - Microsoft Support
  • SUMPRODUCT function - Microsoft Support

Written and checked by the ExcelReady Team. First published November 3, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. DSUM vs SUMIFS at a glance
  2. How DSUM works
  3. How SUMIFS works
  4. The same totals solved both ways
  5. When to use DSUM
  6. When to use SUMIFS
  7. Common mistakes with DSUM and SUMIFS
  8. Our recommendation
  9. Practise it

Keep reading

Conditional math· 7 min read

SUMIFS: Ignore Blank Criteria and Show All When Empty

SUMIFS does not skip a condition whose criteria cell is empty, so the total often drops to 0. To ignore a blank criteria cell, swap it for the * wildcard with IF: =SUMIFS(C2:C8,A2:A8,IF(F2="","*",F2),B2:B8,IF(F3="","*",F3)). An empty filter cell then matches every text value, so it shows all.

Comparisons· 8 min read

SUMIF vs SUMIFS: What's the Difference?

SUMIF adds up numbers that meet one condition. SUMIFS adds up numbers that meet one or more conditions, and every condition must be true. The other big difference is argument order: SUMIF puts the range to add last, while SUMIFS puts it first. Both work in every current version of Excel.

Comparisons· 7 min read

SUMPRODUCT vs SUMIFS: Which Should You Use?

Use SUMIFS for everyday conditional totals, such as sales for one region: it is easier to read, ignores text and is fast on big data. Use SUMPRODUCT when you must multiply columns before adding (units times price), apply a function to the range (such as MONTH), or combine OR conditions in one formula.

More on comparisons

  • EDATE vs EOMONTH: Adding Months the Right Way
  • EXACT vs = in Excel: Case-Sensitive Comparisons
  • Excel 365 vs 2021 vs 2019: Which Functions You Get
  • Excel Desktop vs Excel for the Web
  • Excel on Mac vs Windows: Shortcuts and Differences
  • Excel Table vs Pivot Table: What Each One Does
All comparisons articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free