मुख्य घटकावर जा
Math & StatsBasic LevelBasic Excel (Foundations & Core Formulas)

How to Use SUMIF in Excel

Adds only the numbers that match one condition — the fastest way to total a region, product or status without a Pivot Table.

Direct Answer (Quick Summary)

What is SUMIF in Microsoft Excel?

SUMIF looks down a criteria range, finds cells that match your condition, and adds the matching values from a separate sum range. Use it for a single condition. When you need two or more conditions, move to SUMIFS, which is SUMIF with unlimited criteria.

Pro Tip: Comparison criteria must be wrapped in quotes as text: =SUMIF(C2:C100,">50000",D2:D100). If you reference a cell instead, join it with an ampersand: ">"&F2.

Formula Syntax

=SUMIF(range, criteria, sum_range)

Arguments Breakdown

ArgumentRequirementPurpose & Details
rangeRequiredThe column Excel checks against your criteria, such as the Region column.
criteriaRequiredThe condition to match. Text, a number, a cell reference, or an operator string like ">1000".
sum_rangeOptionalThe cells to add. If omitted, Excel adds the range itself.

When to Use SUMIF (Real-World Business Scenarios)

  • 1

    Totalling sales for one region, one salesperson or one product category.

  • 2

    Adding all invoices above a value threshold using a criteria like ">50000".

  • 3

    Summarising a status column, for example all amounts where Status equals Delivered.

Step-by-Step Practical Business Example

Suppose you have the following dataset in Excel cells A1:D4:

RegionProductAmount
NorthLaptop55000
SouthLaptop48000
NorthMouse1200
Applied Formula:Result: 56200
=SUMIF(A2:A4,"North",C2:C4)

How it works: Checks the Region column for 'North', finds rows 2 and 4, then adds their Amount values: 55,000 + 1,200.

Common Errors & How to Fix Them

Result is 0

Why it happens: The criteria text has a leading or trailing space, or the range and sum_range are different sizes so rows no longer line up.

Fix: Use TRIM on the criteria column and confirm both ranges start and end on the same rows.

Result is too high

Why it happens: sum_range was omitted, so Excel summed the criteria column instead of the amount column.

Fix: Always pass the third argument explicitly: =SUMIF(A2:A4,"North",C2:C4).

Interactive Formula Lab

Try SUMIF Live in Your Browser

No need to launch desktop Excel. Practice formulas with real-time feedback in our HyperFormula sandbox.

Open Practice Lab

Frequently Asked Questions (SUMIF)

What does the SUMIF formula do in Excel?

SUMIF looks down a criteria range, finds cells that match your condition, and adds the matching values from a separate sum range. Use it for a single condition. When you need two or more conditions, move to SUMIFS, which is SUMIF with unlimited criteria.

What is the syntax for SUMIF?
=SUMIF(range, criteria, sum_range)
What are common mistakes when using SUMIF?

Result is 0: The criteria text has a leading or trailing space, or the range and sum_range are different sizes so rows no longer line up. (Use TRIM on the criteria column and confirm both ranges start and end on the same rows.) Result is too high: sum_range was omitted, so Excel summed the criteria column instead of the amount column. (Always pass the third argument explicitly: =SUMIF(A2:A4,"North",C2:C4).)

Keep building your formula toolkit with these math & stats functions.

Browse all 41 Excel formulas
Ready to Master Microsoft Excel?

Master SUMIF in Basic Excel

Learn SUMIF along with our formula library, practice files, and verifiable certificates in our complete curriculum.

Strictly necessary