Database All versions ◉ 1 views

=DSUM()

Sums the numbers in a column for the rows that match the criteria

=DSUM(database, field, criteria)
Hover argument names in the table for details.
Output typeNumber
Popularity35 / 100
VolatileNo
Dynamic ArrayNo
📥 Download sample .xlsx — Coming soon ▦ Try in Playground Dedicated file for this function — safe & lightweight · sample data + live formulas
Share:

⬇ Download Sample Workbook

A dedicated .xlsx for =DSUM() with Persian sample data & live formulas — open in Excel and practice.

  • Sheet “Sample” — data table + formula in place
  • Sheet “Guide” — syntax, arguments & tips from this page
  • Instant & secure (token + rate limit)
📥 Download DSUM.xlsx — Coming soon ~ 8–12 KB · No macros

⇪ Share

Send this function to friends

🧠 🧠 Quiz this function

%d questions — syntax, example & errors — test yourself!

◧ Arguments

ArgumentTypeRequiredDescription
database Range Required The table range including the header row
field Any type Required The column header or number on which the calculation is performed
criteria Range Required Criteria range (the column header with the criteria value below it)

▣ Examples

Example 1 =DSUM(A1:D100, "Sales", F1:F2)
Example 2 =DSUM(A1:D100, 4, F1:G2)

✦ Tips

  • Changing the criteria cells changes the result without touching the formula.
  • The headers of the criteria range must exactly match the table's column headers.
  • The table range must include the header row.
  • If the cell under a criterion header is left empty, all rows are summed.

⚠ Common Errors

#VALUE! The header given in the second argument does not exist in the table
Fix: Check the spelling of the column header

💬 Comments & Q&A 0 approved

🔒 Your comment will be published after review.

Share your thoughts — visible after admin approval

No comments yet — be the first!

✍️ Add comment / question

captcha
🔒 Your comment will be published after review.