FormulaCraft

DSUM

DSUM treats a range with a header row as a database and sums values in a specified field for all records matching the criteria range. It is more flexible than SUMIF for multi-column conditions and is well suited for named-range-driven reporting.

Excel
=DSUM(A1:C5,"Revenue",E1:E2)
Google Sheets
=DSUM(A1:C5,"Revenue",E1:E2)

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

How it works

  1. 1Set up your data with a header row, then create a criteria range elsewhere with matching headers and condition values.
  2. 2Enter =DSUM(database, field, criteria) where field is the column name in quotes or its index number.
  3. 3Update the criteria range to change what is summed without modifying the formula.

Need a version for your data?

Try: “Sum revenue only for records where the region is East.

Related

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: