jakup
① Category to sum
ABC
1ItemCategoryAmount
2AppleFruit12,000 KRW
3CarrotVegetable4,000 KRW
4BananaFruit8,000 KRW
5OnionVegetable3,000 KRW
6StrawberryFruit15,000 KRW
7CabbageVegetable6,000 KRW
8GrapeFruit20,000 KRW
Total →
iPick a category and press “Run sum”.
Checking (column B)Match → addedNo match → skipped
=SUMIF($B$2:$B$8, "Fruit", $C$2:$C$8)

💡 Change the category and the total recalculates automatically. It works the same in the downloaded Excel file.

Fruit total

How to read SUMIF

Find the rows in the criteria range that equal the criteria, then add up only their values in the sum range.

$B$2:$B$8Criteria range — The column to test (B, Category). SUMIF checks this column against the criteria.
"Fruit"Criteria — What to match. E.g. "Fruit". Comparisons like ">1000" also work.
$C$2:$C$8Sum range — The column to actually add (C, Amount). Only matching rows are summed.

If you omit the sum range, the criteria range itself is summed. Criteria can be text, a number, or a comparison (>, <, <>).

Worth knowing alongside SUMIF

SUMIF adds up only the rows that meet a condition. You can total exactly what you need without splitting the table or applying a filter, which makes it a staple for totals by category or by person.

The criteria can be more than plain text or a number. ">1000" adds only values above 1000, and "<>Fruit" adds everything that is not Fruit. An asterisk acts as a wildcard, so "App*" catches anything starting with App.

For two or more conditions use SUMIFS. The one thing to watch is that its arguments run in the opposite order — the sum range comes first. The same idea gives you COUNTIF for counting and AVERAGEIF for averages.