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

RowA: EmployeeB: CityC: StatusD: CollectionE: NotesF: City criterionG: Alternate city
2AmitMumbaiActive45000MumbaiMumbai
3PriyaPuneActive62000
4RaviMumbaiClosed38000
5NehaMumbaiActive55000
=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

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.