Today’s article will teach you how to use AVERAGEIF in Google Sheets. It will also go over its advantages and give you a quick rundown of its syntax. The AVERAGEIF function in Google Sheets can be used in a variety of situations depending on the circumstances. To further understand how to utilize AVERAGEIF in Google Sheets, we will also look at a variety of situations.
Advantages of using AVERAGEIF in Google Sheets
Assuming you have data with values for multiple domains and you need to determine the average of some of them or any specific one of them, you can quickly discover the average by defining the criteria in the AVERAGEIF formula in Google Sheets without filtering or separating your data.
Syntax (Formula):
=AVERAGEIF(criteria_range, criteria, [average_range])
- Criteria_range: The range in which the formula looks for the criterion is called criteria_range. The denominator of the formula is the number of items in the range that meet the required standard.
- Criteria: An element included in the average must satisfy this requirement. This value may be a text string, a date, a number, etc.
- Average_range: The range of values (for the numerator) on which the formula determines the average number is known as the average_range. A range that you provide as “criteria_range” can be entered in the “average_range” field.
How to Use AVERAGEIF in Google Sheets
The Averageif formula’s process is a bit logical and dependent on the provided data, and we then apply the formula in accordance with the data. This article will show you three different methods to apply the Averageif formula so that you can understand when and how to do so in Google Sheets.
Use Case #1 to Use AVERAGEIF in Google Sheets
Step 1>
As you can see in the next image, we have sample data that shows the sales for three distinct months for three separate cities.
Step 2>
Let’s say you only need to determine the average of all stores’ January sales using the provided data. How will you then deduce it from the data’s stated pattern?
Step 3>
Then, as I’ve shown in the following image, execute the AVERAGEIF formula with an equal sign where you wish to determine January’s average.
Step 4>
The “Criteria_range” will be the first argument in the syntax when the formula is started. We will provide the requirements for the column of months as indicated below since we are searching for the average of January here.
Step 5>
We will need to describe the requirements after providing the syntax for the criteria range. We will write “January” as it is shown below since we need to know the average for January in this situation.
Step 6>
As the average range, “Sales” in the example below, will be the third argument in the syntax, we have written the sales range there.
Step 7>
Once the AVERAGEIF formula has been finished, all that is left to do is press the Enter key to obtain the result seen in the following screenshot.
Step 8>
Similar to that, what should you do if you need to find the average sales for March in the following data?
Step 9>
The entire syntax will be the same as it was above, with the exception that we will change the criterion to “March” rather than “January“, as seen in the following image.
Step 10>
By pressing the Enter key, we will obtain the March average sales for all stores based on the following information.
Use Case #2 to Use AVERAGEIF in Google Sheets
Step 1>
If we look at the data for this example, we can see that certain employers have total scores that fall inside different bands, as seen in the image below.
Step 2>
What would we do if, using the data above, we needed to calculate the average of the employer who received more than 50 points?
Step 3>
By simply writing the average in the cell with an equal sign, we will first run the AVERAGEIF function in the cell where we wish to determine the average of employers with over 50 points.
Step 4>
Since we need to calculate the average of the employers who have more than 50 points, the first argument of the AVERAGEIF formula is the criteria range, which in the example below is the range of the employer’s points.
Step 5>
The criteria you are looking for is the second argument in the AVERAGEIF calculation. Since we are seeking employers who have more than 50 points, we will use the criteria “50” as shown in the below image.
Step 6>
Since there are just two perimeters in this example, we will close the formula with a closing bracket and press the Enter key to obtain the answer. You have the average of the employers who have points above 50, as you can see in the screenshot below.
Use Case #3 to Use AVERAGEIF in Google Sheets
Step 1>
You can see in the below image that some of the students with their grades in the sample data below include both pass and fail results.
Step 2>
Let’s pretend we just need to calculate the average for students who pass, or, alternatively, who do not fail. What then will we do?
Step 3>
To find the average of the students who do not fail, first, simply create the AVERAGEIF function with an equal sign and run it where you need to.
Step 4>
We will first provide the criteria range from the following data in accordance with the AVERAGEIF syntax. Since we are seeking students who do not fail, we will also offer the cell reference for the grade column.
Step 5>
We must provide the criterion we are looking for after providing the criteria range. Here, we have written “>F” in the syntax since we are seeking for the average of those students who do not fail.
Step 6>
As we are looking at the average from the perspective of the student, we will now provide the reference of the average range from that student’s point of view.
Step 7>
The result will appear in front of you once you have completed the syntax for the AVERAGEIF formula, closed the bracket, and pressed the Enter key. As can be seen in the below image, we got the average of those students who are not failing.
Frequently Asked Questions
How do I deal with errors or empty cells while using AVERAGEIF?
When calculating the average, AVERAGEIF automatically disregards empty cells and cells with range problems.
Can I use Google Sheets’ AVERAGEIF function on numerous sheets at once?
Yes, you can use AVERAGEIF on several sheets by including the names of the sheets in your formula along with the cell ranges.
Can I use as many conditions with AVERAGEIF or AVERAGEIFS as I want?
The maximum number of criteria you can utilize using AVERAGEIF or AVERAGEIFS is not predetermined. To filter your data, you can add as many conditions as necessary.
How do I update an AVERAGEIF formula’s criteria when my data changes?
As your data changes, the AVERAGEIF formula’s output will be updated automatically. Unless you wish to change the criteria, you don’t need to manually change the formula.
Are there other functions than AVERAGEIF that Google Sheets users may use to compute averages with conditions?
Yes, you can conduct calculations based on conditions in Google Sheets in addition to using AVERAGEIF and AVERAGEIFS, SUMIF, SUMIFS, COUNTIF, and COUNTIFS.
Conclusion
Mastering AVERAGEIF in Google Sheets gives you the ability to analyze data based on particular circumstances. Anyone looking to improve their spreadsheet skills should learn it. With this information, you can improve the efficiency of your data and learn more about it. Thanks for reading and keep learning with OfficeChaser.