Database

DSUM

Total one database field across records selected by a criteria range.

Syntax

=DSUM(database, field, criteria)

Worked example

Type Team and Units in A1:B1, then East and 4, West and 6, East and 3 in the three rows below. Put Team and East in D1:D2 to select the East rows.

=DSUM(A1:B4,"Units",D1:D2)

Result 7

Microsoft documentation

Check the arguments, supported editions and behavior of this function in Microsoft’s reference.

Microsoft reference

Search ExcelTutor