Movatterモバイル変換


[0]ホーム

URL:


Menu
×
See More 
Sign In
+1 Get Certified Upgrade Teachers Spaces Get Certified Upgrade Teachers Spaces
   ❮   
     ❯   

Google Sheets AVERAGEIF Function


AVERAGEIF Function

TheAVERAGEIF function is a premade function in Google Sheets, which calculates theaverage of a range based on atrue orfalsecondition.

It is typed=AVERAGEIF and has three parts:

=AVERAGEIF(criteria_range,criterion,[average_range])

Thecondition is referred to ascriterion, which can check things like:

  • If a number isgreater than another number>
  • If a number issmaller than another number<
  • If a number or text isequal to something=

The[average_range] is the range where the function calculates the average.

Note: The[average_range] is optional.

If not specified, the function calculates the average of the same range as condition.


Example AVERAGEIF function

Find the average speed of Grass type Pokemon:

The condition is that the type is "Grass".

Copy Values

ExampleAVERAGEIF function, step by step:

  1. Select the cellF3
  2. Type=AVERAGEIF
  3. Click theAVERAGEIF command

  1. Specify the range for the conditionB2:B10 (the Type 1 values)
  2. Type,
  3. Specify the criteria (the cellE3, which has the value "Grass")
  4. Type,
  5. Specify the range for the averageC2:C10 (the Speed values)
  6. Hit enter

The function now calculates the average speed value of the Grass type Pokemon: Bulbasaur, Ivysaur and Venusaur.

The function can be repeated for Fire and Water type Pokemon to compare them:

Note: You can use thefilling function for the other rows, but make sure to useabsolute references for the ranges.

Now, we can see the average speed values of each type:



×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning.
Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness
of all content. While using W3Schools, you agree to have read and accepted ourterms of use,cookies andprivacy policy.

Copyright 1999-2025 by Refsnes Data. All Rights Reserved.W3Schools is Powered by W3.CSS.


[8]ページ先頭

©2009-2025 Movatter.jp