Beginner

Sum values by category

Add up only the rows that match one label — here every amount recorded for Paris.

The formula

=SUMIF(A:A, "Paris", B:B)

How it works

Criteria
City = "Paris"
AB
1CityAmount
2Paris120
3Lyon80
4Paris200
5Nice150
Total
320

Add up Amount only for rows where City is Paris (120 + 200).

Functions used