StatementNest

EXAMPLE + HANDS-ON PRACTICE

SUMIF practice with expense data

SUMIF answers a question such as “How much did we spend on travel?” It checks a condition in one range and adds the matching amounts in another. This is useful when a transaction list mixes several categories.

A small worked example

Suppose column A contains the category and column B contains the amount:

Fictional expenses
RowA: CategoryB: Amount
2Travel40
3Office25
4Travel60
=SUMIF(A2:A4,"Travel",B2:B4)

The result is 100: 40 plus 60. The office amount is excluded. The first argument tells Excel where to check the condition; the last argument tells it which amounts to add.

Three mistakes to check

Try it yourself

In the simulator, use SUMIF to find the Software subtotal in an eight-row fictional ledger. Select the target cell, type your formula, and check the result. A hint explains which columns to use. After solving it, choose New numbers to test the same formula on changed amounts.

When you need two conditions

To total only Travel entries that are also Paid, use SUMIFS. Unlike SUMIF, SUMIFS takes the amount range first, followed by pairs of condition range and condition. Our monthly review project helps you combine category totals, percentages and budget comparisons.

Examples use English function names and comma separators. Your Excel language settings may use different names or separators.

Try the guided exerciseSee the full curriculum

Product reference: Microsoft documentation. Teaching examples and fictional data by StatementNest.