Monday 20 March 2017

Excel - Microsoft Excel AVERAGEIF Function

Description

The Excel AVERAGEIF function finds values in a supplied array, that satisfy a given criteria, and returns the average (ie. the statistical mean) of the corresponding values in a second supplied array. 

The function is new in Excel 2007, and so is not available in earlier versions of Excel. 

The syntax of the Averageif function is : 

AVERAGEIF( range, criteria, [average_range] ) 


Where the function arguments are: 


Wildcards 
You can also use the following wildcards in text-related criteria: 
?    -    matches any single character
*    -    matches any sequence of characters 

if you do actually want to find the ? or * character, type the ~ symbol before this character in your search. 

eg. the condition "A*e" will match all cells containing a text string beginning with "A" and ending in "e". 

The supplied criteria can be either: 


and can be entered into the function either directly, as a value returned from another function, or as a reference to a cell containing a value. 

The Excel Averageif function is not case-sensitive. So, for example, the text strings "TEXT" and "text" will be classed as equal. 

Excel Averageif Function Examples

The following spreadsheet shows several examples of the Excel Averageif function. 
The spreadsheet on the left shows the formulas used and the spreadsheet on the right shows the results. 


In the above spreadsheet, each call to the Excel Averageif function tests the contents of cells A1 to A14 against the supplied criteria. For of the cells that satisfy the criteria, the corresponding cells in the range B1 to B14 are included in the average calculation. 

In cell A16, for example, the cells A3 and A5 are both equal to the text string "Thursday". Therefore, the average is calculated for the corresponding values from cells B3 and B5 (100 and 200), resulting in an average value of 150. 


Averageif Function Errors

The most common errors from the Excel Averageif function are listed in the table below : 
Common Errors 



























No comments:

Post a Comment