TopicsCheat sheetLessons
Lurndo › Excel › SUMIFS

Learning Excel: SUMIFS

Several conditions

"What did Sophie sell in clothing? And how much of that clothing cost more than £5?" Two conditions at once: SUMIFS and COUNTIFS.

COUNTIFS

COUNTIFS counts with several conditions at once: each time a range and a criterion. Only the rows where all the conditions hold are counted.

=COUNTIFS(B2:B16,"Clothing",C2:C16,">5") counts the clothing over £5: three items.

I2
fx

=COUNTIFS(B2:B16,"Clothing",C2:C16,">5")

ABCDEFGHI
1ItemCategoryPriceDayVolunteerLimit
2Dress greenClothing£12.00MonSophie£10.003
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

SUMIFS, sum range first

SUMIFS adds up with several conditions. Watch out: in SUMIFS the sum range comes first, in SUMIF it comes last.

=SUMIFS(C2:C16,B2:B16,"Clothing",E2:E16,"Sophie") adds up the prices of the clothing Sophie sold: £19.

I2
fx

=SUMIFS(C2:C16,B2:B16,"Clothing",E2:E16,"Sophie")

ABCDEFGHI
1ItemCategoryPriceDayVolunteerLimit
2Dress greenClothing£12.00MonSophie£10.0019
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

What did the clothing that Grace sold bring in? Work it out in I2 with SUMIFS.

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 5 exercises, from easy to challenging, with hints, points and a streak you can build.

Start the lesson
← PreviousAdding up what matchesNext →An average with a condition

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