
Excel SUMPRODUCT Function Complete Guide (From Basics to Real-World Use)
The SUMPRODUCT function is a powerful function that can handle multiple criteria through array-based calculations, rather than simply adding values. It is especially flexible for criteria that are difficult to handle with SUMIFS.
👉 Start with this related foundational function: SUM Function Basics
📌 Summary
| Item | Description |
|---|---|
| Core function | Multiplies arrays and then sums the results |
| Main use | Multiple-criteria sums |
| Alternative function | SUMIFS (simple criteria) |
| Strength | Flexible criteria handling |
| Note | Slow with large datasets |
1. What Is SUMPRODUCT?
SUMPRODUCT is a function that adds the results of multiplying corresponding values in arrays.
=SUMPRODUCT(array1, array2, ...)
In other words, it calculates as follows:
(A1×B1) + (A2×B2) + (A3×B3)...
2. How It Works (Key Concept)
It converts logical conditions from TRUE/FALSE to 1/0 for calculation.
=SUMPRODUCT((A:A="서울")*(B:B))
👉 If the value is “서울,” it becomes 1; otherwise, it becomes 0, acting as a filter when multiplied.
3. Basic Patterns
✔ Single Criterion
=SUMPRODUCT((A2:A10="서울")*(B2:B10))
✔ Multiple Criteria
=SUMPRODUCT((A:A="서울")*(B:B="완료")*(C:C))
👉 Multiplying additional criteria creates an AND condition.
4. Real-World Example (Order Data)
Data structure
| Order ID | Region | Status | Sales |
|---|---|---|---|
| 1001 | 서울 | 완료 | 50000 |
| 1002 | 부산 | 취소 | 30000 |
| 1003 | 서울 | 완료 | 70000 |
✔ Total Sales for 서울 + 완료
=SUMPRODUCT((B2:B100="서울")*(C2:C100="완료")*(D2:D100))
👉 Result: 120,000
👉 This approach is frequently used for logistics and e-commerce data analysis.
👉 Related advanced guide: Complete SUMIFS Guide
5. SUMIFS vs. SUMPRODUCT
| Category | SUMIFS | SUMPRODUCT |
|---|---|---|
| Speed | Fast | Slow |
| Criteria | Simple | Can be complex |
| Flexibility | Low | High |
| Recommended for | Basic summaries | Advanced analysis |
6. Advanced Uses
✔ OR Criteria
=SUMPRODUCT(((A:A="서울")+(A:A="부산"))*(B:B))
👉 The + operator creates an OR condition.
✔ Text Contains Criterion
=SUMPRODUCT((ISNUMBER(SEARCH("상품",A:A)))*(B:B))
👉 Sums values when a specific text string is included.
7. Important Considerations
- Using entire columns (A:A) → slower performance
- Mismatched array sizes → errors
- Large datasets → Power Query is recommended
👉 Data automation: Power Query Basics
8. Conclusion
SUMPRODUCT is more than a simple function—it can be viewed as a criteria-based data analysis engine.
- ✔ Complex criteria → SUMPRODUCT
- ✔ Simple sums → SUMIFS
❓ FAQ
Q1. Which is better, SUMPRODUCT or SUMIFS?
SUMIFS is suitable for simple criteria, while SUMPRODUCT is suitable for complex criteria.
Q2. Why is SUMPRODUCT slow?
Because it calculates entire arrays.
Q3. How do I use OR criteria?
Use the + operator.
Q4. Can I use text criteria too?
Yes, you can use them with the SEARCH function.
Q5. When is it used in real-world work?
It is widely used for logistics, sales, and inventory analysis.