Excel & Google Sheets Function
SUMIF function in Excel (with interactive examples)
SUMIF adds numbers in a range that meet a single condition such as matching a region, product name, or numeric threshold.
Syntax
=SUMIF(range, criteria, [sum_range])Live Interactive Exercise — Try it nowNo login required
Interactive SUMIF sandbox
In cell B6, total sales (B2:B5) where Region (A2:A5) is "North" using SUMIF.
B6fx
| A | B | |
|---|---|---|
| 1 | Region | Sales |
| 2 | North | $1,200.00 |
| 3 | South | $950.00 |
| 4 | North | $800.00 |
| 5 | East | $1,500.00 |
| 6 | North Total | type here |
Insert:
Arguments explained
| range | Required | Cells evaluated against your criteria. |
| criteria | Required | Condition such as "North", ">500", or a cell reference. |
| sum_range | Optional | Actual cells to sum if different from range. |
Common errors & fixes
Returns 0: Check argument order: SUMIF puts sum_range LAST, while SUMIFS puts sum_range FIRST.
Excel vs Google Sheets
Identical syntax in Excel and Google Sheets.
Practise SUMIF in a full 4-minute lesson
Every lesson is free to study — build real speed with instant feedback.
Free 1-Page Excel, Google Sheets & SQL Interview Cheat Sheet
The 25 formulas, keyboard shortcuts, and SQL patterns tested most in analyst interviews — emailed instantly, zero spam.