How to use AVERAGEIF function in Excel
To calculate the average of the data in the table on Excel, we will use the AVERAGE function, the familiar average calculation function. However, almost calculating the average value on Excel will come with many different conditions. And so, you need the AVERAGEIF function to be conditionally averaged.
AVERAGEIF will proceed with the average plus the zoned data areas in the table, along with the conditions that the user set. How to use the AVERAGEIF function to calculate conditional averages on Excel will be guided by Network Administrator in the article below, through each specific example.
- These are the most basic functions in Excel that you need to understand
- Forgot password protected Excel file, what should you do?
The AVERAGEIF function syntax on Excel is: = AVERAGEIF (range, criteria, [average_range]) .
Inside:
- Range is the range for which the average value can be calculated, including numbers, names, references, arrays.
- Criteria are conditions in the form of numbers, expressions, cell references or text to determine the average value. Conditions are in "".
- Average_range includes cells that need to calculate the average value. If Average_range is empty, it will replace with Range to calculate the average value.
Note when using AVERAGEIF function :
- Empty cells in Average_range, TRUE, FALS and AVERAGEIF functions will be ignored.
- If Range does not contain a value or contains a string function, the result will indicate an error.
- If the Criteria is empty, the function is 0.
- If we determine that there is no value matching the criteria, we will get an error.
- Average_range does not need to be mandatory in the size of the Range range. If not, the AVERAGEIF function will determine from the top left cell as the first cell and then match the range.
We will proceed to calculate the average score in the data table below.
Example 1 : Calculate the average score of students with scores greater than 5 .
Enter the formula = AVERAGEIF (D2: D6, "> 5") and press Enter.
The result will look like the image below.
Example 2 : Calculate the average score of students with scores less than 5 .
Enter the formula = AVERAGEIF (D2: D6, "<5") and press Enter.
The end result is # DIV / 0! Because Excel relies on user-defined conditions and has no value corresponding to that condition, there are no students below point 5.
Example 3 : Calculate the average of male sex students .
Here you need to delineate 2 areas as Gender to filter the condition and the Score area to calculate the average score.
The syntax used here is = AVERAGEIF (C2: C6, "Male", D2: D6) , press Enter to perform.
The end result will look like the image below.
Example 4 : Calculate the average of students who do not have the Thi in the Last and Last names column .
We will have the formula = AVERAGEIF (B2: B6, "<> Marketing", D2: D6) and press Enter.
The result is the average of the classification score by name as shown below.
The above is a tutorial on how to use the AVERAGEIF function with a common usage syntax, and each case with different conditions. You need to specify the area to be calculated as well as the conditions to apply the AVERAGEIF function accordingly.
I wish you all success!
You should read it
- Basic Excel functions that anyone must know
- How to fix the SUM function doesn't add up in Excel
- How to use Hlookup function on Excel
- How to use the LEN function in Excel
- How to use Excel's VALUE function
- How to use the DAVERAGE function in Excel
- How to use MID functions to get strings in Excel
- How to use the SUBTOTAL function in Excel
May be interested
- How to use different currency symbols in specific Excel cellsexcel is a great tool for budgeting and if you regularly travel or use a number of different currencies, there is an easy way to handle different currencies in a spreadsheet. . here are the steps.
- How to use the kernel function (PRODUCT function) in Excelin excel, product helps users to calculate product values, multiply arguments together, and return their results correctly.
- Split, cut PDF files to reduce capacity, take the part you needhow to cut pdf files, split detailed pdf files to help you reduce pdf file size, get the necessary part to email or share with friends.
- How to use SUMPRODUCT function in Excelsumproduct function in excel is a function that calculates the total value of corresponding products that users conduct zoning.
- How to display Ruler ruler bar in Micorosoft Word 2010, Word 2003, 2007, 2013 and Word 2016the ruler ruler in word makes it easy to align, sometimes you see ruler disappear and don't know how to display the ruler bar? this is how to display the ruler bar in word 2003, 2007, 2010, 2013 and word 2016.
- Use Custom Views to view specific spreadsheet layouts in Excelsetting up custom views in excel makes it easy to view specific information on a dense spreadsheet or create different layouts for your data. let's see more details about custom views in the post!