
Sums values that meet one condition. SUMIF is used for category totals, threshold-based aggregation, and dynamic single-criteria reports.
The Excel SUMIF function sums values that meet one condition. It tests a range against a criterion and, for matching rows, adds the corresponding values from the sum range. This makes SUMIF the natural choice when a worksheet needs one conditional total rather than a grand total.
SUMIF can work with text criteria, numeric comparisons, wildcards, and cell-based conditions. That flexibility is why it appears so often in category reports, exception summaries, and threshold analysis. If the worksheet needs more than one condition, the formula usually moves to SUMIFS.
Tests one criteria range and returns the total of matching values. Useful for single-filter aggregation.
Returns the sum of values that satisfy the criterion. If no rows match, the result is 0.
=SUMIF(range, criteria, [sum_range])
range is the set of cells tested against the condition. criteria is the condition itself. sum_range is optional; if omitted, Excel sums the cells in range directly. Microsoft's documentation also notes that criteria may be text, numbers, expressions, or references.
SUMIF is for one condition only. If the reporting question becomes "sum where this and that," the formula usually needs SUMIFS instead.
| Function | Condition Logic | Use When |
|---|---|---|
SUM |
No condition | You need an unconditional total |
SUMIF |
One condition | You need one category, threshold, or exclusion rule |
SUMIFS |
Multiple conditions | You need several filters applied together |
SUMPRODUCT |
More flexible array logic | You need behavior beyond standard SUMIF and SUMIFS patterns |
One useful point from Microsoft's guidance is that SUMIF is not case-sensitive. If case matters, another approach is needed. In most worksheet reporting, however, case-insensitive matching is appropriate and more convenient.
SUMIF is most effective when a worksheet contains one flat table and the report needs a subtotal for one chosen category. That allows the source data to remain centralized while category totals are derived in summary cells rather than separated into multiple sheets or manual filters.
The function is also practical for threshold logic. For example, a finance sheet might need the total of all transactions greater than a stated amount. In that case, the condition is numeric rather than textual, but the worksheet logic remains the same: test each row, and add only the rows that qualify.
">200".<> when the requirement is exclusion rather than inclusion.This is the standard text-based SUMIF pattern. The formula scans the region column, and when a row contains "North", it adds the corresponding sales value from column C. Rows with any other region label are ignored.
=SUMIF(B1:B5,"North",C1:C5)
// Matching rows: C1 = 150 and C3 = 300
// Total = 450
In cell F1, use SUMIF to total sales (C1:C5) where the region (B1:B5) is "North". Expected result: 450.
Here the tested range and the summed range are the same, so the third argument can be omitted. The criterion includes the comparison operator inside quotes, which is the required syntax for operator-based conditions.
=SUMIF(C1:C5,">200")
// Matching values: 300 and 300
// Total = 600
In cell F2, use SUMIF on C1:C5 to sum only values greater than 200. Expected result: 600.
Cell-driven criteria make the formula reusable. Instead of hard-coding a category, the worksheet reads the desired label from G1. This pattern is common in report selectors and dropdown-driven summaries.
=SUMIF(B1:B5,G1,C1:C5)
// G1 = "South"
// Matching value: C2 = 300
In cell F3, use SUMIF to total C1:C5 where B1:B5 matches the category stored in G1. G1 = "South". Expected: 300.
The not-equal operator in SUMIF allows the formula to total all rows except those matching one excluded label. This is often simpler than subtracting one subtotal from a grand total, especially when the report logic should remain explicit.
=SUMIF(B1:B5,"<>North",C1:C5)
// Included rows: South = 300, East = 50, West = 200
// Total = 550
In cell F4, use SUMIF to sum C1:C5 for all rows where B1:B5 is NOT "North". Expected result: 550.
Date-based SUMIF formulas deserve extra care. If the criterion involves a date comparison, it is safer to build the date with DATE() rather than rely on regional text formatting. That keeps the worksheet logic consistent across systems with different locale settings.
DATE() when building date criteria to avoid text-format ambiguity.SUMIF sums values that meet one condition.=SUMIF(range,criteria,[sum_range]).Tell your friends about this post