# AVERAGEIF(range,criteria,average_range) returns the average of all the cells in a range that meet a given criteria : AVERAGEIF « Statistical functions « Microsoft Office Excel 2007 Tutorial

Home
Microsoft Office Excel 2007 Tutorial
 1 Introduction 2 Editing 3 Format Style 4 Table 5 Chart 6 Formula 7 Workbook Worksheet 8 Wordart Clip Art Shape Picture 9 PivotTable PivotChart 10 Data Analysis 11 Macro ActiveX Add in 12 Security 13 Collaboration 14 Database functions 15 Date Time functions 16 Engineering functions 17 Information functions 18 Logical functions 19 Lookup Reference functions 20 Math Trigonometry functions 21 Statistical functions 22 Text functions
 Microsoft Office Excel 2007 Tutorial » Statistical functions » AVERAGEIF
21.3.1.AVERAGEIF(range,criteria,average_range) returns the average of all the cells in a range that meet a given criteria
 `=AVERAGEIF(B2:B5,"<8") gets the average of all values less than 23`
 `Input the formula: =AVERAGEIF(B2:B5,"<8"). Press Enter to get the result.`

Referenced from Excel Help

 21.3.AVERAGEIF 21.3.1. AVERAGEIF(range,criteria,average_range) returns the average of all the cells in a range that meet a given criteria 21.3.2. =AVERAGEIF(B2:B5,">5",C2:C5) returns the average of all values with a value greater than 25 5",C2:C5) returns the average of all values with a value greater than 25" src="http://www.java2s.com/Tutorial/Microsoft-Office-Excel-2007Images/averageifb2b5gt25c2c5_Returns_Average_Of_All___Input_Formula_.PNG" width=200 height=40> 21.3.3. =AVERAGEIF(A2:A6,"=Item*",B2:B6) returns the average of all values