Skip to main content

Conditional formula page

SUMIF Formula With One Condition

Use SUMIF when one criteria range controls which numeric values should be added.

Best for

Total values by one condition with SUMIF.

What it returns

With the sample data, this totals Amount values for East rows.

Copy formulas

Excel formula
=SUMIF(B2:B100, "East", D2:D100)
Google Sheets formula
=SUMIF(B2:B100, "East", D2:D100)
Excel / Google Sheets difference

Excel and Google Sheets use SUMIF for one condition. The criteria range and sum range must refer to corresponding rows.

Example data

DateRegionProductAmountRep
2026-01-04EastWidget420Maya
2026-01-12WestWidget310Noah
2026-02-03EastGadget275Maya
2026-02-15EastWidget640Iris
What it returns

With the sample data, this totals Amount values for East rows.

How the formula works

  • B2:B100 is checked for East.
  • D2:D100 is the numeric range to add.
  • SUMIF is best for a single simple condition.
Syntax pieceRole in the formula
B2:B100The Region criteria range.
"East"The criterion selecting rows whose Region is East.
D2:D100The Amount range whose matching numeric values are added.

Verified examples

Total East amounts
=SUMIF(B2:B100, "East", D2:D100)

Excel: Use the sample sales table with East amounts totaling 1335 in D2:D100. Returns: 1335

Select West from a cell
=SUMIF(B2:B100,F2,D2:D100)

Google Sheets: Enter West in F2; matching amounts total 310. Returns: 310

Sum amounts greater than 300
=SUMIF(D2:D100, ">300", D2:D100)

Excel: Use D2:D100 as both the criteria and sum range; qualifying amounts total 1370. Returns: 1370

Common errors and fixes

IssueLikely causeFix
SUMIF adds the wrong rowsThe criteria and sum ranges start or end on different rows.Align both ranges to the same records, such as B2:B100 and D2:D100.
Matching rows produce zeroThe Amount values are stored as text rather than numbers.Convert the Amount column to numeric values before using SUMIF.
A cell-based numeric criterion is ignoredComparison operators need quotes and concatenation when the threshold comes from a cell.Use a form such as ">"&F2 rather than typing the operator outside the quoted criterion.

When not to use this formula

  • Do not use SUMIF when several conditions must be true on each row; use SUMIFS instead.

Alternatives

AlternativeWhen to use it
SUMIFS FormulaUse when the total must satisfy two or more conditions.
SUMIFS Formula BuilderUse when criteria pairs and aligned ranges need to be configured interactively.

Related formulas

Official references

FAQ

How many conditions does SUMIF support?

SUMIF supports one condition. Use SUMIFS when multiple criteria ranges must be evaluated together.

Why must the criteria and sum ranges align?

SUMIF evaluates each criteria row and adds the value from the corresponding sum row, so the ranges need matching boundaries.