Syntax or pattern
Add values that match one condition.
=SUMIF(criteria_range, criterion, sum_range)5 practical examples
Summarize sales by region
Add sales where the region matches the selected row.
=SUMIFS(Sales!E:E, Sales!B:B, A2)Adjust the ranges, criteria and sheet names to match your workbook.
Count open tasks
Count open tasks by owner or category.
=COUNTIFS(Tasks!D:D, "Open", Tasks!B:B, A2)Adjust the ranges, criteria and sheet names to match your workbook.
Average response time
Average a metric for one team, status, or issue type.
=AVERAGEIFS(Tickets!F:F, Tickets!C:C, A2)Adjust the ranges, criteria and sheet names to match your workbook.
Calculate a filtered total
Add values that match a category.
=SUMIF(Categories!A:A, A2, Categories!D:D)Adjust the ranges, criteria and sheet names to match your workbook.
Create a monthly total
Summarize values for one calendar month.
=SUMIFS(Data!E:E, Data!A:A, ">="&G1, Data!A:A, "<="&EOMONTH(G1,0))Adjust the ranges, criteria and sheet names to match your workbook.
Common mistakes to avoid
- Using ranges with different lengths in multi-condition formulas.
- Forgetting date criteria need operators joined with &.
- Summarizing blanks or hidden helper rows unintentionally.
FAQ
What is this Google Sheets page for?
This page gives copy-ready examples for sumif examples so you can understand the pattern and adapt it to real spreadsheet work.
Can I copy these formulas directly?
Yes. Use the copy buttons, then adjust sheet names, ranges, criteria and column references for your own file.
Why does my formula return an error?
The most common causes are mismatched ranges, missing quotes around text criteria, blank source data, or references that do not match your sheet layout.
Here are some ideas for you
Optional resources that may help if you are learning Google Sheets, building trackers, creating dashboards or improving spreadsheet workflows.
- Google Sheets booksSee ideas
Learn formulas, workflows and dashboards with structured examples.
- Spreadsheet dashboard booksSee ideas
Improve how you design trackers, summaries and reporting sheets.
- Keyboard shortcut guidesSee ideas
Build speed with navigation, editing and formatting shortcuts.
- Numeric keypadsSee ideas
Useful if you enter numbers often on a laptop or compact keyboard.
- External monitorsSee ideas
Helpful for viewing data, formulas and dashboards side by side.
- Desk notebooksSee ideas
Sketch formulas, tracker layouts and reporting ideas before building.
Some links in this section may be affiliate links. Choose only what is useful for your own work.