รวมยอดขายตามเงื่อนไข
=DSUM(Sales_DB, "Amount", Criteria_Range)
ยอดรวม
หาผลรวมจาก Database
หาผลรวมจากฐานข้อมูลตามเงื่อนไข
=DSUM(database, field, criteria)
=DSUM(database, field, criteria)
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
| database | Range | Yes | ฐานข้อมูล | |
| field | Text/Number | Yes | คอลัมน์ | |
| criteria | Range | Yes | เงื่อนไข |
=DSUM(Sales_DB, "Amount", Criteria_Range)
ยอดรวม
=Criteria: A หรือ B
ผลรวม A+B
=DSUM(Employees, "Salary", DeptCriteria)
850000
ฟังก์ชัน DSUM ใน Excel ช่วยหาผลรวมจากฐานข้อมูลตามเงื่อนไข