TopicsCheat sheetLessons
Lurndo › Excel › AVERAGEIF

Learning Excel: AVERAGEIF

An average with a condition

"What does a piece of clothing cost here on average? And is that more expensive than household items?" After counting and adding up: the average with a condition.

AVERAGEIF

AVERAGEIF works like SUMIF: the range with the condition, the criterion and the range with the numbers. Only it gives the average instead of the sum.

=AVERAGEIF(B2:B16,"Clothing",C2:C16) gives £7.67: £46 divided by 6 items.

I2
fx

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

ABCDEFGHI
1ItemCategoryPriceDayVolunteerLimit
2Dress greenClothing£12.00MonSophie£10.007.666666667
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 one of Sophie's items cost on average? 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
← PreviousSeveral conditionsNext →Looking up in a column

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