LiveFlow raises $13.5 million Series A led by New York-based Valar Ventures and launches LiveFlow Next to revolutionize finance!
Read More
Arrow
Back to guides
Google Sheets Formulas

AVERAGEIF Function in Google Sheets: Explained

In this article, you will learn how to use the AVERAGEIF function in Google Sheets.

The AVERAGEIF function is beneficial when you need to compute the average of values under a condition. To calculate the average of values depending on multiple criteria, you need to use the AVERAGEIFS formula instead.

How to use the AVERAGEIF formula in Google Sheets

  • Type “=AVERAGEIF(” or navigate to “Insert”“Function”“Statistical”“AVERAGEIF”.

  • Select “criteria_range”, input “criterion”, and choose “average_range”.

  • Press the “Enter” key.

AVERAGEIF
How to insert the AVERAGEIF formula from the menu bar in Google Sheets

The general syntax is as follows:

=AVERAGEIF(criteria_range, criterion, [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)

Criterion: 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 numerator) based on which the formula calculates the average number. You can input a range you include as “criteria_range” in the “average_range”.

As mentioned at the beginning, this function is proper when you want to compute the average figure within a condition. With this function, you don’t need to calculate a total figure for a numerator and the number of items for a denominator separately to find an average number. 

Assume you are a finance manager and need to get three average numbers with the following separate standards from a data set of companies. 

(i) The average number of employees of companies established on or after 1/1/2015

(ii) The average number of employees of companies in the "East" country

(iii) The average revenue of companies that have less than 1000 employees

For each case, we will show two AVERAGEIF functions, one with a condition by cell reference and the other with a criterion by manual input.

companies
How to use the AVERAGEIF function with examples

Save hours formatting your next financial spreadsheet!
100+ templates, all free to use.
Free Spreadsheet Templates

(i) The average number of employees of companies established on or after 1/1/2015

companies established
How to use the AVERAGEIF formula with a date condition in Google Sheets

The formula in the screenshot above incorporates the following arguments.

Criteria_range: $C$3:$C$17

Criterion: D20 (cell reference) or “>=1/1/2015” (manual input)

Average_range: $E$3:$E$17

Note: When you want to input a criterion manually in the formula and use a date criterion together with marks such as “=”, “<” or “>”, do not forget to enclose them with quotation marks entirely, as shown above.

The formula finds companies that meet the date requirement (highlighted in red in the picture) and then computes their average employee number.

(ii) The average number of employees of companies in the "East" country

 Google Sheets: Explained
How to use the AVERAGEIF formula with a text standard in Google Sheets

The formula in the picture above includes the following arguments.

Criteria_range: $D$3:$D$17

Criterion: D24 (cell reference) or “East” (manual input)

Average_range: $E$3:$E$17

Note: Do not forget to surround “East” with quotation marks when manually inputting the criterion.

In this example, compared to the first example, although “average_rage” has not changed as we still calculate the average number of employees, “criteria_range” has moved to Column D from C due to the change in the condition. 

(iii) The average revenue of companies that have less than 1,000 employees

AVERAGEIF Function in
How to use the AVERAGEIF function with a number criterion in Google Sheets

The function in the screenshot above contains the following arguments.

Criteria_range: $E$3:$E$17

Criterion: D28 (cell reference) or “<1000” (manual input)

Average_range: $F$3:$F$17

In this third example, all arguments are different from one for the first example because we calculate the average revenue instead of the number of employees. Also, the criteria have changed to the number of employees from a date (in the first sample).

Sheets tutorials availalble now in our free certificate program!
Learn basic and intermediate functions with digestible videos and instructions.
Enroll in LiveFlow Academy

What is the difference between the AVERAGE and the AVERAGEIF formulas?

The difference between AVERAGE and AVERAGEIF functions is that the AVERAGE function simply calculates the average of values in a specified range, whereas the AVERAGEIF function allows you to compute the average of values in a particular field that meets a specific criterion.

What does AVERAGEIFS mean?

The AVERAGEIFS function can contain multiple criteria, while the AVERAGEIF can include one standard.

Thus, the AVERAGEIFS formula is beneficial when you need to compute the average of values under more than one criterion. Check this article to learn the AVERAGEIFS function.

Turn Quickbooks Online data into a Google Sheets dashboard
100+ templates, update automatically, totally secure!
Book a Demo

Learn how to do this step-by-step in the video below 👇

Automate financial reporting with LiveFlow

Cta Photo

Want to eliminate manual updates of your Excel & Google Sheets models?

Yes, show me how!

Get personal help

We guarantee you personal help on chat or Zoom within maximum 6 hours between 9am and 10pm EST.
Blue Tick
Email us at: help@liveflow.io

Liked this article? Then you'll love the ones below

Supercharge your financial reporting today

See LiveFlow in action and discover how to streamline your workflows.

Book a demo