How Do I Use SUMIF in Excel

If you just need to use sumif in excel and move on, the boxed answer at the top is all you need. The rest of this page is for when you want to understand why it works in Excel, adapt it to a trickier version, or make it robust enough to hand to a colleague. We keep the opening short on purpose — the depth is here when you want it, not in your way when you don’t.

Exact answer

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.

On this page8

Syntax

=SUMIF(range, criteria, [sum_range])

Arguments

Argumentrequired / optionalDescription
rangerequiredThe cells tested against the criteria, such as a column of regions.
criteriarequiredThe condition a cell must meet, like "West", ">100" or "App*" with wildcards.
sum_rangeoptionalThe cells actually added when the criteria match; if omitted, range itself is summed.

Related functions

SUMIFSCOUNTIFIF
▤Annotated stepsExcel
1

Type =SUMIF( and select the column to test as range, for example the region column A2:A100.

2

Type a comma, then the criteria in quotes — text like "West" or a comparison like ">1000".

3

Type a comma and select the column of numbers to add as sum_range, such as B2:B100.

4

Close the bracket and press Enter to see the conditional total.

5

Lock the ranges with $ (A$2:A$100) if you will copy the formula across cells.

Ctrl+CthenCtrl+Shift+V⌘+Cthen⌘+Ctrl+VPaste values · WindowsMac

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. For “use sumif in excel”, the reliable version is a short checking loop, not just the first command that appears to work. Run it on a deliberately small range first, watch how the affected cells change, and only then apply the same setup to the full sheet. 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. That is what makes a calculation you can defend to a CFO or an auditor useful in real work: repeatable, auditable, and not dependent on memory or luck.

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. Check the referenced cells, argument order and result type in your workbook. Start with the worked example before changing an input, then compare the changed result with the calculation you expected. An error value or a result of a different type is a reason to inspect the inputs and arguments.

In Google Sheets

The standard worksheet functions used by this example are listed in Google Sheets. Check the cell references, argument separators and input types in the target spreadsheet, then compare the worked result. This formula-availability check does not establish identical menus, keyboard shortcuts or workbook features, and it is not a product execution test. Keep this page bookmarked for the next time the same question comes up. Better still, repeat the steps once in your own workbook — doing it yourself is what turns a copied answer into something you remember. For “use sumif in excel”, keep the input cells and the result visible while you check the formula in Excel. Follow the worked example and change one input at a time. The steps explain the workbook calculation; this page does not run a live calculator for that task.

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 SUMIF when you have two or more conditions; that needs SUMIFS, 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

On the way here you may have searched this as “sumif formula in excel”, “formula for sumif in excel”, “formula excel sumif” and “how to use sumif excel” — it is all the same task, and this page is the single, complete answer to it.

Why do people search for this in so many different ways?

Because the same task has many names. “sumif formula in excel”, “formula for sumif in excel”, “formula excel sumif” all point at the one operation explained on this page, which is why they all lead here.