SUMIF Function in Excel: Syntax, Examples & Practice
Learn the Excel SUMIF function: Sums values meeting one condition. Try focused practice and download a free workbook.
Syntax
=SUMIF(range, criteria, [sum_range])
Check the function documentation for your Excel version and platform. The browser simulator implements selected behavior and does not reproduce every Excel feature.
Worked example
| Row | A: Employee | B: City | C: Status | D: Collection | E: Notes | F: City criterion | G: Alternate city |
|---|---|---|---|---|---|---|---|
| 2 | Amit | Mumbai | Active | 45000 | Mumbai | Mumbai | |
| 3 | Priya | Pune | Active | 62000 | |||
| 4 | Ravi | Mumbai | Closed | 38000 | |||
| 5 | Neha | Mumbai | Active | 55000 |
=SUMIF(B2:B5,"Mumbai",D2:D5)
Expected result: 138000
City, Status and Collection are aligned by row. F2 and G2 contain the helper criteria used in the practice questions.
Professional use
Branch-wise collection or business totals.
Practice SUMIF · Download practice .xlsx
Apply your skills
- HR Headcount & Training Analytics — 45–60 min; uses SUMIF in a formula checkpoint.
Questions and answers
How can I practise SUMIF?
Use the focused ten-question SUMIF lab, then download its workbook for ten additional function-specific tasks and an answer key. Core learning works without an account.
Which Excel version supports SUMIF?
Check the function documentation for your Excel version and platform. The browser simulator implements selected behavior and does not reproduce every Excel feature.
Does the browser simulator replace Microsoft Excel?
No. It supports a selected set of formula behavior for practice. Native workbook recalculation, full function compatibility, PivotTables and external data features must be checked in your own Excel installation.
Interactive practice runs in your browser.