The AVERAGEIF function is used to get the “average” of values for a range of cells, based on multiple criteria.
The mathematical Average is calculated following: = Sum of all values / (divided by) number of items.
AVERAGEIF Function has two required arguments i.e. range, criteria and optional argument i.e. [average_range].
=AVERAGEIF(range,criteria,[average_range])
range argument is used to give the range of cells in which criteria needs to find
criteria argument is used to give criteria for average. We can give value (example “A”,”A*” >10, 50 ) or cell reference# (example: E2) in this argument
average_range argument is used to give cell range; those values to be averaged as per the criteria mentioned above
Kindly note, [average_range] is optional ONLY incase where range and [average_range] are in ONE column, but if, range and [average_range] are in DIFFERENT columns then [average_range] is NOT optional.
When we want to calculate the average with any condition than AVERAGEIF is used.
Here in example 2, we are calculating the average sales volume but with 1 condition, that’s why we will use AVERAGEIF here.
Formula:- =AVERAGEIF($A$2:$A$11,E6,$B$2:$B$11)
So here Criteria 1 is sales volume, the condition is David, and criteria 2 is a sales rep.
basically, we want to count the average of sales done by David.
The result is 4378 as shown in the 2nd image.
– Criteria argument can also work with Wild characters i.e. asterisk (*), question mark (?). Asterisk will find any series of characters and Question mark will find a single character.
– If you want to search actual * or ? (Asterisk or Question Mark) then type tilde (~) before * or ?
Hope you learnt this Function,
Don’t forget to leave your valuable comments!
If you liked this article and want to learn more similar tricks, please Subscribe us or follow us on Social Media by clicking below buttons:
UPPER function is used for changing the text/string to UPPER case in Microsoft Excel. The output of the function returns value in new cell.
RANK function performs the Ranking in a range or list of numbers. Function returns the rank position and can assigned as highest or lowest value as 1st Rank
The tutorial demonstrates how to find a date any number of days before or after today, counting either all days or only business days.
How to use Excel Function PROPER? PROPER function is used for changing the format of any text or string to PROPER or SENTENCE Case. PROPER Function has argument only one argument i.e. text, which makes the function…
The only thing worse than wrong data in your spreadsheet is Empty Cells. If these blanks aren’t filled, they can cause problems when using formulas. I usually fill these empty cells with 0 or “NA”…
What is COUNTIFS in Excel? The Microsoft Excel COUNTIFS function counts the number of cells in a range, that meets a single or multiple criteria and adjacent or non-adjacent. As a Statistical function of Excel,…