SUMIF & COUNTIF
Sum and count data that meets specific conditions — the backbone of every Excel report and dashboard.
✅ What You Will Learn
SUMIF adds numbers from one range only where a corresponding range meets a condition. COUNTIF counts cells that meet a condition. These two functions handle the vast majority of conditional analysis in Excel — things like "total sales for the North region", "how many orders were above ₹10,000", or "count of employees in the Finance department".
The multi-condition versions — SUMIFS and COUNTIFS — follow the same logic but accept up to 127 condition pairs. The argument order in SUMIFS is slightly different from SUMIF: in SUMIFS the sum range comes first, before the criteria ranges.
Mastering these four functions lets you build summary reports and dashboards directly from raw data without manually filtering or creating pivot tables.
📋 Order data — source for SUMIF and COUNTIF examples
| Order ID | Region | Category | Amount (₹) | Status |
|---|---|---|---|---|
| O-101 | North | Electronics | 45000 | Delivered |
| O-102 | South | Accessories | 3200 | Delivered |
| O-103 | North | Electronics | 62000 | Pending |
| O-104 | East | Accessories | 8500 | Delivered |
| O-105 | South | Electronics | 28000 | Cancelled |
| O-106 | North | Accessories | 5500 | Delivered |
Syntax
Examples
📌 Key Points to Remember
- ✓SUMIF argument order: (check_range, condition, sum_range). SUMIFS: (sum_range, check_range1, condition1, ...)
- ✓Criteria text must be in double quotes. Number criteria can be bare numbers or strings like ">5000"
- ✓Use & to combine operators with cell references: ">="&B1 means "greater than or equal to the value in B1"
- ✓Wildcards: * matches any sequence of characters, ? matches exactly one character
- ✓COUNTIFS with no sum_range argument — it only counts, never sums
🏢 Real-World Application
Every weekly MIS report in Indian companies uses SUMIF or SUMIFS. A typical report has a summary sheet where SUMIFS pulls region-wise, category-wise, and status-wise totals from a raw data sheet with thousands of rows. What would take hours of manual filtering runs in milliseconds with these functions.
⚠️ Common Mistakes to Avoid
❓ Frequently Asked Questions
What is the difference between SUMIF and SUMIFS?
SUMIF handles one condition. SUMIFS handles one or more conditions. The argument order differs — in SUMIFS the sum_range comes first.
Can I use cell references instead of hardcoded criteria?
Yes. =SUMIF(B:B, G1, D:D) uses whatever is in G1 as the condition. For operators with cell references use: ">"&G1.
How do I count cells that are not empty?
=COUNTIF(A:A,"<>") counts all non-blank cells. The <> operator means "not equal to" — with nothing after it, it means "not empty".
✏️ Practice Exercise
Using an order dataset with columns: Date, Region, Salesperson, Product Category, Amount — write SUMIFS formulas to answer: (1) Total amount for North region in Electronics, (2) Total delivered orders above ₹20,000, (3) Count of orders by each salesperson. Build a small summary table using these formulas.
Learn Excel with Live Trainer Guidance
These tutorials give you the foundations. Our live Excel course at EVIKA Academy, Noida teaches you to build real dashboards on actual business data — with a trainer who uses Excel professionally every day.