Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMichael Lawinger
33,581 PointsFind the Average
The spreadsheet shows all the expenses incurred by an individual over a period of time. The average value of expenses in the Clothing category is: ?
https://docs.google.com/spreadsheets/d/14N_iq_ixw66iPgL02htQgHNrMmea--dAv3tJkhy5DEE/edit#gid=0
1 Answer
Steven Parker
231,198 PointsThis is a good place for AVERAGEIF
.
Usiing the Category (C) column for the criteria range, "Clothing" as the criterion, and the Price (B) column as the value range, with data in rows 3 to 176, and then rounding to 2 places, you can establish a formula like this:
Ā Ā =ROUND(AVERAGEIF($C$3:$C$176,"Clothing",$B$3:$B$176), 2)
The sheet will then display the answer in the formula cell.