If you work with numbers in Excel, there's one function you must master: SUMIF. It’s simple, powerful, and one of the most searched formulas globally. Whether you’re managing sales data, budgets, or reports, SUMIF helps you add values based on conditions — no filters needed. WHAT IS THE SUMIF FUNCTION? The SUMIF function adds numbers in a range only if they meet a given condition. Syntax: =SUMIF(range, criteria, [sum_range]) - range – The cells to test against your condition- criteria – The condition to match - sum_range (optional) – The cells to actually sum (if different from range) Example 1: Add Sales Greater Than 100 Example Data: Product Sales A 120 B 80 C 150 If you need the sum of product whose sales more than 100 then the formula will be: =SUMIF(A2:B4,">100") Result: 270 (120 + 150) Example 2: Sum Based on Text Match Example Data: Product Sales ...

If you work with numbers in Excel, there's one function you must master: SUMIF.
- range – The cells to test against your condition- criteria – The condition to match
- sum_range (optional) – The cells to actually sum (if different from range)
It’s simple, powerful, and one of the most searched formulas globally. Whether you’re managing sales data, budgets, or reports, SUMIF helps you add values based on conditions — no filters needed.
WHAT IS THE SUMIF FUNCTION?
The SUMIF function adds numbers in a range only if they meet a given condition.Syntax:
=SUMIF(range, criteria, [sum_range])- range – The cells to test against your condition- criteria – The condition to match
- sum_range (optional) – The cells to actually sum (if different from range)
Example 1: Add Sales Greater Than 100
Example Data:
Product |
Sales |
A |
120 |
B |
80 |
C |
150 |
If you need the sum of product whose sales more than 100 then the formula will be:
=SUMIF(A2:B4,">100")
Result: 270 (120 + 150)
=SUMIF(A2:B4,">100")
Result: 270 (120 + 150)
Example 2: Sum Based on Text Match
Example Data:
Product |
Sales |
Apple |
200 |
Mango |
150 |
Apple |
100 |
If you need the sum of product name “Apple” then the formula will be:
=SUMIF(A2:B4,"Apple",B2:B4)
Result: 300 (200 + 100)
Formula:
=SUMIF(B2:B4, D1)
Result: 350
Formula:
=SUMIF(A2:A4,"<>Apple",B2:B4)
Result: 150 (Only the Mango sale)
- SUMIFS is for multiple conditions
Example:
=SUMIF(A2:B4,"Apple",B2:B4)
Result: 300 (200 + 100)
Example 3: Use Cell Reference as Criteria
If D1 contains '>100':Formula:
=SUMIF(B2:B4, D1)
Result: 350
Example 4: SUMIF with Not Equal To
If you want to sum the product is not include Apple then the formula will be,Formula:
=SUMIF(A2:A4,"<>Apple",B2:B4)
Result: 150 (Only the Mango sale)
Bonus: SUMIF vs SUMIFS
- SUMIF is for one condition- SUMIFS is for multiple conditions
Example:
Product |
Sales |
Date |
Apple |
200 |
15-01-2024 |
Mango |
150 |
10-01-2024 |
Apple |
100 |
12-12-2023 |
In this example, if you want to sum the product which sold after 10-01-2024 then the formula will be,
=SUMIFS(B2:B4,A2:A4,"Apple",C2:C4,">10-01-2024")
Tip: Use cell references to make your formulas dynamic
Tip: Combine with IF or FILTER for advanced dashboards
✅ Clean
✅ Dynamic
✅ Powerful
Need help mastering SUMIFS or building dynamic Excel reports? Stay tuned on TechWikki.com — we break down Excel the smart way!
=SUMIFS(B2:B4,A2:A4,"Apple",C2:C4,">10-01-2024")
Pro Tips
Tip: Use wildcards like 'A*' to match values that begin with ATip: Use cell references to make your formulas dynamic
Tip: Combine with IF or FILTER for advanced dashboards
Final Thoughts
The SUMIF function is a must-have for every Excel user. It simplifies reporting and saves hours of manual filtering and summing.✅ Clean
✅ Dynamic
✅ Powerful
Need help mastering SUMIFS or building dynamic Excel reports? Stay tuned on TechWikki.com — we break down Excel the smart way!
Comments
Post a Comment