- The fastest way to use Averagif in Google Sheets: Run the formula in the cell > Give the criteria range according to data > Specify the Criteria > Give the Average range > Press the Enter key.
- Another simple way to use Averageif in Google Sheets: Run the formula in the cell > Give the criteria range according to data > Specify the Criteria > Give the Average range > Press the Enter key.
- Another quick way to use Averageif in Google Sheets: Run the formula in the cell > Give the criteria range according to data > Specify the Criteria > Give the Average range > Press the Enter key.
In Today’s topic, we are going to learn how to use AVERAGEIF in Google Sheets, we will also discuss its benefits and an overview of the syntax of the AVERAGEIF function. There may be many scenarios where we can use the AVERAGEIF function in Google Sheets according to given conditions. We will also see several different examples of using the AVERAGEIF function to understand the use of AVERAGEIF in Google Sheets.
Table of Contents
Benefits of using AVERAGEIF in Google Sheets
Let’s suppose, you have data containing values for several domains and you need to find the average of some of them or any specific of them, you don’t need to filter data or separate your data, you can easily find the average by specifying the criteria in the AVERAGEIF formula in Google Sheets.
=AVERAGEIF(criteria_range, criteria, [average_range])
- Criteria_range: This is the range in which the formula searches for the criterion. The formula counts the number of items that meet the specified standard in the range (for the denominator)
- Criteria: This is a condition that an item incorporated in the average needs to meet. This value could be text, date, number, etc.
- Average_range: This is the range containing the values (for the numerator) based on which the formula calculates the average number. You can input a range you include as “criteria_range” in the “average_range”
How to Use AVERAGEIF in Google Sheets
The procedure of the Averageif formula is a little logical and depends on the given data, then we apply the Averageif formula according to the data. In this tutorial, we will see three different examples of using of Averageif formula so you may learn where and how to use Averageif in Google Sheets
USE CASE # 1
If you see in the following picture, we have sample data in which three different stores have their sales for three different months.
Suppose from the given data, you have to calculate only the average of sales for January of all stores. Then how will you find it from the given pattern of the data?
First place your cursor where you want to find the average for January and run the AVERAGEIF formula with an equal sign as I have written in the following picture.
After starting the formula, the first argument of the syntax will be the “Criteria_range“. As we are looking for the average of January here, we will give the criteria for the column of months as highlighted below.
After giving the criteria range in the syntax we will have to specify the requirements that we are looking for. As we need to know the average of January here, we will write “January” as written below.
In the last the third argument in the syntax will be the average range which is “Sales” in the following example so, we have written the sales range in the syntax.
The formula for the AVERAGEIF has been completed so just need to press the Enter key to get the result as we have found in the following screenshot.
Similarly, in the following data if you need to find average sales for March then what to do?
The whole syntax will be the same as above, just we will change the criteria to “March” instead of January as written in the following picture.
So, we will get the average sales of March for all the stores from the following data by pressing the Enter key.
USE CASE # 2
In this example, if we consider the data there are some students with their total points in different ranges as shown in the following picture.
Let’s suppose, we need to find the average of those students who have got above 60 points from the above data what will we do?
First, we will run the AVERAGEIF function in the cell where we want to find the average of students having above 60 marks by just writing the average in the cell with an equal sign.
As we know the first argument of the AVERAGEIF formula is the criteria range which is the student’s points in the following example because we need to find the average of those students who have above 60 points.
The second argument of the AVERAGEIF formula is the criteria that you are looking for, as we are looking for those students who have above 60 points so here, we will give the criteria “<60” as written in the following picture.
In this example, we have just two perimeters so we will close the formula by a close bracket and then hit the Enter key to get the result. As you can see in the following screenshot, you have got the average of those students who have points above 60.
USE CASE # 3
In the following sample data as well, we have the data of several students with their grades as you can see in the following picture some of them are pass and fail as well.
Let’s suppose we need to find the average of only those students who pass, or we can say who do not fail. So, what will we do?
Simply first, write the AVERAGEIF function with an equal sign to run it where you want to find the average of those students who do not fail.
According to the AVERAGEIF syntax first, we will provide the criteria range from the following data, as we are looking for those students who do not fail so we will give the cell reference of the status column.
After giving the criteria range we need to specify the criteria that we are looking for. As we are looking for the average of those students who do not fail, here we have written “<>F” in the syntax.
Where “<>” indicates “Not equal to” in the syntax.
Now we will put the reference of the average range from where we are looking for, as we are looking at the average from the student’s point so here, we will give the range of the student’s point.
Once you have completed the syntax of the AVERAGEIF formula, close the bracket, and press the Enter key, the result will be in front of you as can be seen in the following picture, we have got the average of those students who are not failing.
Frequently Asked Questions
Can Sparkline in Google Sheets be Used in Combination with AVERAGEIF?
Sparkline in Google Sheets can definitely be used in combination with AVERAGEIF. To learn how to use sparkline in google sheets effectively, you can follow these steps. First, select the range of data you want to apply the sparkline to. Then, go to the Insert menu and choose Chart. Finally, select Sparklines and customize the options to your preference.
What is the difference between the average and AVERAGEIF functions in Google Sheets?
The AVERAGE function only calculates the average in a specific range in Google Sheets. The AVERAGEIF function allows you to compute the average of values in a particular field that meets a specific criterion.
What are the Similarities and Differences Between DSUM and AVERAGEIF Functions in Google Sheets?
The google sheets dsum function and the AVERAGEIF function have both similarities and differences. The DSUM function calculates the sum of values in a specific range, based on specified criteria. On the other hand, the AVERAGEIF function calculates the average of values in a given range, based on certain conditions. Both these functions are powerful tools in Google Sheets for data manipulation and analysis.
Why do we need to use AVERAGEIF in Google Sheets?
When you have such type of data representing different criteria, but you want to find the average of specific values in such cases we use the Averageif function in Google Sheets.
That’s all from how to use AverageIf in Google Sheets. With the help of the above article on how to use averageif in Google Sheets, you can greatly enhance your data analysis capabilities and can quickly and efficiently summarize and analyze large datasets based on specific conditions, to make your sheets more powerful.