In Excel: use =SUMIF(range, criteria, sum_range) — it adds up the numbers in sum_range only for the rows where range meets your single condition.
Syntax
Arguments
| Argument | Description | |
|---|---|---|
range | required | The cells tested against the criteria, such as a column of regions. |
criteria | required | The condition a cell must meet, like "West", ">100" or "App*" with wildcards. |
sum_range | optional | The cells actually added when the criteria match; if omitted, range itself is summed. |
Related functions
Grand total: 1,250.50
| Region | Sum |
|---|---|
| West | 125.50 |
| East | 1050 |
| South | 75 |
The same thing in your own sheet
Sum · Excel & Sheets
Need it as an auditable file?
Ships inside the linked template — formula-driven, unlocked, audit-ready.
What this does
SUMIF adds numbers conditionally: it checks each cell in range against one criterion and, for every row that passes, adds the matching cell from sum_range. The criterion can be exact text, a number, a comparison like ">100", or a wildcard pattern. If you leave off sum_range, SUMIF adds the cells in range itself — handy when the column you test is also the column you total. Keep the inputs visible and clearly labelled and the whole thing stays auditable — anyone who opens the file later, including you, can see at a glance exactly what feeds the result and change one assumption without hunting through the formula. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “sumif date range”. Start on a copy or a tiny sample, keep the affected cells visible, and compare the result with the tool above before you touch the real workbook. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. The point is a calculation you can defend to a CFO or an auditor, but the practical win is that someone else can open the file and understand what happened without asking you.
A worked example
Regions are in A2:A100 and sales in B2:B100. To total only the West sales: =SUMIF(A2:A100, "West", B2:B100). It checks each region, and wherever it equals "West" it adds the matching sales figure, returning say 48200. To sum only sales above 1000 directly, test the number column itself: =SUMIF(B2:B100, ">1000"). SUMIF is the everyday tool for one-condition totals — sales by region, expenses by category, hours by project — without filtering or building a pivot table. A practical tip before you scale it up: build it once on a small block of test data, confirm the number against the tool on this page, and only then point it at your real sheet. That one habit catches almost every mistake while it is still cheap to fix, long before a wrong figure reaches a report or a colleague.
In Google Sheets
If you are in Google Sheets rather than Excel, the good news is that the formula shown here is identical and the workflow barely changes — menus sit across the top instead of in a ribbon, and a few function names differ slightly, but anything you build here moves across with little or no rework. The aim was to get you unstuck fast and leave you a little more capable than a copy-paste would. The answer is at the top, the tool proves it, and the detail above shows why it holds — so the next time a colleague asks, you can answer without reaching for search. The short version of “sumif date range”: the answer is at the top of this page, the tool proves it on your own numbers, and the sections above explain why it holds so the next variation does not stump you. Excel rewards people who reference cells instead of typing values and who keep inputs separate from formulas, because that is what makes a result you can audit months later. Build it once, deliberately, with the live tool as a check, and you convert a one-off lookup into a reusable skill — which is the whole point of learning the why and not just the what.
Common mistakes
- Giving range and sum_range different heights, so rows misalign and the wrong cells are added.
- Forgetting the quotes around a comparison — ">100" must be a quoted text string, not >100.
- Reaching for
SUMIFwhen you have two or more conditions; that needsSUMIFS, which takes multiple criteria pairs.
Frequently asked questions
How do I use a comparison operator in SUMIF?
Put the operator and value together inside quotes as the criteria, for example ">100", "<=50" or "<>0". To compare against a cell, concatenate: ">"&E1.
Can SUMIF use wildcards?
Yes. Use * for any run of characters and ? for a single character, for example "App*" matches "Apple" and "Application". Wildcards work on text criteria, not on numbers.
What if I omit the third argument?
If you skip sum_range, SUMIF adds the cells in range itself. That is fine when the column you test is also the one you want to total, such as =SUMIF(B2:B100, ">1000").
Other ways people ask this
This is also commonly searched as “2024 weekly date range excel template” and “excel fill with weekly date range”. They describe the identical operation, so you are in the right place no matter how you phrased it.
Platform & version notes
- Some variants pin a specific edition (2024). The method above is stable across recent Excel releases — older versions only differ in where a ribbon icon sits, not in what the steps achieve.
Does this still work in older versions?
It does. The approach has been stable across recent Excel releases; only the ribbon icons have shifted cosmetically, so the steps above still apply.
Why do people search for this in so many different ways?
Because the same task has many names. “2024 weekly date range excel template”, “excel fill with weekly date range” all point at the one operation explained on this page, which is why they all lead here.