Google Sheets Sumif Multiple Criteria: Practical Guide
Master multi-criteria sums in Google Sheets with SUMIFS. Learn exact criteria, dynamic references, OR logic, date ranges, performance tips, and ready-to-copy templates for students, professionals, and small businesses.

Definition: SUMIFS in Google Sheets adds up values that meet multiple conditions. Use: =SUMIFS(sum_range, criteria_range1, criterion1, [criteria_range2, criterion2, ...]). According to How To Sheets, this function supports nested criteria and dynamic references, enabling precise multi-criteria sums. For OR logic, wrap multiple SUMIFS in a SUM() to combine results.
Understanding SUMIF with multiple criteria
In Google Sheets, SUMIF sums values based on a single condition; SUMIFS extends this to multiple conditions. This section explains the core idea and how to structure your first multi-criteria sum. We'll use a simple dataset: Column A = Region, Column C = Product, Column B = Sales Amount. A working example follows.
=SUMIFS(B2:B100, A2:A100, "West", C2:C100, "Electronics")What this does: it sums B where A equals West and C equals Electronics. You can replace constants with cell references to make the formula dynamic. For educational clarity, consider using named ranges like SalesAmount, Region, and Product.
=SUMIFS(SalesAmount, Region, E1, Product, F1)Notes:
- SUMIFS accepts multiple criteria pairs in the form (sum_range, criteria_range1, criterion1, [criteria_range2, criterion2, ...])
- All range sizes must be equal.
Using SUMIFS for exact multiple criteria
When you know exactly which criteria to enforce, SUMIFS becomes a precise filter: you choose the sum range and pair each criteria range with its corresponding criterion. This is especially useful for monthly reports or region-by-product analysis. Below is a basic two-criteria example followed by a three-criteria variant to illustrate extension.
=SUMIFS(B2:B100, A2:A100, "East", C2:C100, "Furniture")=SUMIFS(B2:B100, A2:A100, "East", C2:C100, "Furniture", D2:D100, ">=DATE(2025,1,1)")Explanation:
- The first formula sums only the rows where Region is East and Product is Furniture.
- The second adds a date filter, showing how to layer criteria for robust reporting.
Dynamic criteria and cross-sheet data
For dynamic reporting, reference criteria from other cells or ranges and even pull data from a different sheet. This example uses named ranges or sheet-scoped ranges so you can swap values without editing formulas. It also demonstrates how to sum with multiple criteria across sheets.
=SUMIFS(Inventory!B2:B100, Inventory!A2:A100, E2, Inventory!C2:C100, F2)=SUMIFS(Inventory!B2:B100, Inventory!A2:A100, {E2, E3}, Inventory!C2:C100, {F2, F3})Tip: When using array constants for criteria, wrap the result with SUM if you need a single aggregated total.
OR logic and partial matches
SUMIFS naturally implements AND logic (all criteria must be true). To mimic OR behavior, sum across multiple SUMIFS results or use an array formula. You can also use wildcards for partial text matching.
=SUM(SUMIFS(B2:B100, A2:A100, {"East","West"}, C2:C100, {"Electronics","Furniture"}))=SUMIFS(B2:B100, A2:A100, "*North*")Note: The first formula computes totals for all combinations of regions and categories; the second uses a wildcard to capture partial matches in the Region column.
Date ranges and time-based criteria
Date-based filtering is common in sales and attendance worksheets. Use DATE or cell references to create robust, future-proof formulas. Ensure your date columns are true date values for reliable comparison.
=SUMIFS(B2:B100, A2:A100, "West", D2:D100, ">="&DATE(2025,1,1), D2:D100, "<="&DATE(2025,12,31))=SUMIFS(B2:B100, A2:A100, "West", D2:D100, ">="&E1, D2:D100, "<="&F1)Pro tip: keep dates consistent and consider using named date ranges for readability.
Performance considerations and alternatives
As datasets grow, repeated SUMIFS across large ranges can slow sheets. In scenarios with heavy data, consider alternatives that leverage built-in aggregation or filtering. FILTER + SUM is often faster than nested SUMIFS for large ranges, and QUERY can consolidate conditions into a single operation.
=SUM(FILTER(B2:B100, (A2:A100="West") * (C2:C100="Electronics")))=QUERY({A2:A100,B2:B100,C2:C100}, "select sum(Col2) where Col1='West' and Col3='Electronics'", 0)Tip: Use helper columns to pre-calculate complex criteria if performance becomes an issue.
Template formulas you can copy
Keep this section handy as your multi-criteria baseline. Adapt ranges to your data layout and replace constants with cell references for dynamic dashboards.
=SUMIFS(Sales!B2:B, Sales!A2:A, "West", Sales!C2:C, "Electronics")=SUMIFS(Sales!B2:B, Sales!A2:A, F2, Sales!C2:C, G2, Sales!D2:D, "<="&DATE(2025,12,31))Final note: Validate that all ranges share the same height, and use named ranges to simplify maintenance and readability.
Steps
Estimated time: 60-90 minutes
- 1
Prepare your data
Organize columns: region, product, sales, date. Ensure dates are true date values and numeric sales data for accurate summation.
Tip: Use named ranges for consistency across formulas. - 2
Write your first multi-criteria sum
Enter a simple SUMIFS formula to validate basic criteria. Start with two criteria to confirm structure.
Tip: Double-check that all ranges have the same height. - 3
Add dynamic criteria
Replace constants with cell references to make formulas responsive to user input or dashboards.
Tip: Prefer named ranges for readability. - 4
Incorporate OR logic
Use SUM of multiple SUMIFS calls or array constants to simulate OR across criteria.
Tip: Be mindful of performance on large ranges. - 5
Filter by date ranges
Add date range criteria using >= and <= with DATE or cell references.
Tip: Standardize date formats across the sheet. - 6
Explore alternatives for large datasets
Consider FILTER or QUERY for performance gains when data volume grows.
Tip: Test results against a known baseline to verify accuracy. - 7
Create a reusable template
Combine the patterns into a template sheet that can be copied for new datasets.
Tip: Document each criterion for future users.
Prerequisites
Required
- Required
- Basic knowledge of the SUMIFS function and relative/absolute referencesRequired
- A sample dataset or template containing at least three columns (region, product, sales, date)Required
- A modern web browser (Chrome/Edge/Firefox) up-to-dateRequired
Optional
- Optional: Google Apps Script editor for automating template generationOptional
Keyboard Shortcuts
| Action | Shortcut |
|---|---|
| CopyCopies selected cell content or formula | Ctrl+C |
| PastePastes content at the active cell | Ctrl+V |
| Fill downCopies formula down a selected range | Ctrl+D |
| UndoReverses the last action | Ctrl+Z |
| Find and replaceBatch edits within the sheet | Ctrl+H |
| Open formula inputShow all formulas in the sheet for auditing | Ctrl+` |
FAQ
Can I use SUMIFS for OR logic directly on the same criteria range?
SUMIFS implements AND logic by default. To simulate OR, sum multiple SUMIFS results or use FILTER with multiple criteria values. For example, sumifs with {"East","West"} in the region range and combine results.
SUMIFS uses AND logic; to get OR, add separate sums for each condition and combine them, or use FILTER with multiple values.
What if my date criteria span a range of dates?
Use two criteria in SUMIFS for a date range, one with greater than or equal and the other with less than or equal, e.g., dates >= start and dates <= end. Use DATE() or cell references for boundaries.
You can filter a date range by using two date criteria in SUMIFS.
Can SUMIFS handle references to other sheets?
Yes. Point each range to the appropriate sheet, e.g., Sheet2!A:A as a criteria range. Ensure the ranges on the target sheet align in size with the sum range.
SUMIFS can reference data on other sheets as long as the ranges align.
Why isn't my SUMIFS returning any results?
Common causes include mismatched range sizes, text vs. numbers, or criteria not matching exactly. Verify data types, trim spaces, and test criteria on smaller samples to isolate issues.
If SUMIFS returns nothing, check range sizes and data types.
Are there performance concerns with very large datasets?
Yes. Repeated SUMIFS over large ranges can slow sheets. Consider using FILTER or QUERY for efficient aggregation, or pre-aggregate with helper columns.
Large datasets may slow SUMIFS; try FILTER or QUERY for efficiency.
The Essentials
- Master multi-criteria with SUMIFS
- Use dynamic references for interactive dashboards
- Leverage OR logic via SUM of SUMIFS or FILTER
- Date ranges require consistent date formats
- Consider alternatives for performance on large datasets