TopicsCheat sheetLessons
Lurndo › Excel › SUMIF

Learning Excel: SUMIF

Adding up what matches

Counting is nice, but Yasmina also wants to know what the clothing brought in. "Not how many pieces, but how many pounds." Then you don't count, you add up.

SUMIF

SUMIF adds up the numbers from the rows that meet a condition. It has three arguments: where you test the condition, the criterion, and what you add up: the sum range.

=SUMIF(B2:B16,"Clothing",C2:C16) tests in column B and adds up the prices from column C: £46.

I2
fx

=SUMIF(B2:B16,"Clothing",C2:C16)

ABCDEFGHI
1ItemCategoryPriceDayVolunteerLimit
2Dress greenClothing£12.00MonSophie£10.0046
3Book fictionBooks£2.00MonOmar
4LampHousehold£8.00TueSophie
5T-shirt SClothing£3.00TueGrace
6Dressing gownClothing£6.00WedOmar
7PuzzleToys£4.00WedGrace
8Book cookingBooks£3.00ThuSophie
9RadioElectrical£15.00ThuOmar
10T-shirt XLClothing£4.00FriSophie
11Dress blackClothing£18.00FriGrace
12What? GameToys£5.00SatOmar
13VaseHousehold£7.00SatGrace
14T-shirt MClothing£3.00SatSophie
15BookendHousehold£9.00SatOmar
16Kids' bikeToys£35.00SatGrace
17

Try it yourself

How much did Grace take at the till? Work it out in I2.

ABCDEFGHIJ
1ItemCategoryPriceDayVolunteerLimit
2Dress greenClothing£12.00MonSophie£10.00
3Book fictionBooks£2.00MonOmar
4LampHousehold£8.00TueSophie
5T-shirt SClothing£3.00TueGrace
6Dressing gownClothing£6.00WedOmar
7PuzzleToys£4.00WedGrace
8Book cookingBooks£3.00ThuSophie
9RadioElectrical£15.00ThuOmar
10T-shirt XLClothing£4.00FriSophie
11Dress blackClothing£18.00FriGrace
12What? GameToys£5.00SatOmar
13VaseHousehold£7.00SatGrace
14T-shirt MClothing£3.00SatSophie
15BookendHousehold£9.00SatOmar
16Kids' bikeToys£35.00SatGrace
17
I2

Ready for more?

The full lesson has 6 exercises, from easy to challenging, with hints, points and a streak you can build.

Start the lesson
← PreviousWildcardsNext →Several conditions

SQL

  • Topics
  • All lessons
  • Cheat sheet

Excel

  • Topics
  • All lessons
  • Shortcuts

HTML & CSS

  • About the course
  • All lessons

Lurndo

  • Dashboard
  • Leaderboard
  • Premium
  • Account
  • Privacy
Nederlands