Excel SUMIF function🔀 Sum with a condition
The SUMIF function: Sum with a condition. Sales by branch, spending by category. This page shows the syntax, a worked example with its result and how the formula reads.
What does SUMIF do?
Sum with a condition. Sales by branch, spending by category
SUMIF syntax
=SUMIF(range, criteria, [sum_range])
Arguments in square brackets [ ] are optional · argument names follow Microsoft's documentation
SUMIF example with the result
=********
👑 Ready-to-use example formula for VIP supporters only · Become VIP
Formula in cell B6 Yellow cells = result
| A | B | |
|---|---|---|
| 1 | Branch | Sales |
| 2 | Bangna | 500 |
| 3 | Silom | 300 |
| 4 | Bangna | 200 |
| 5 | Silom | 400 |
| 6 | Bangna total | 700 |
How it reads: Adds column B only where column A is Bangna (500 + 200)
Frequently asked questions about SUMIF
What does SUMIF do?
Sum with a condition. Sales by branch, spending by category
What does the SUMIF example return?
The example formula in cell B6 gives 700.
Which Excel versions have SUMIF?
It has been in Excel for many versions and works in the versions in common use today, including Excel for Microsoft 365.
🕸️ More logic formulas and related ones
Source: support.microsoft.com
Checked 17 November 2026 · by Black Sheep Barn · example results are calculated by the app's example engine, for learning