Menu
×
   ❮   
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE
     ❯   

Google Sheets AVERAGEIF 函数


AVERAGEIF 函数

AVERAGEIF 函数是 Google Sheets 中的一个预制函数,它根据条件计算一个区域的平均值

它被输入为=AVERAGEIF,并且有三个部分

=AVERAGEIF(criteria_range, criterion, [average_range])

条件被称为criterion,它可以检查诸如

  • 如果一个数字大于另一个数字 >
  • 如果一个数字小于另一个数字 <
  • 如果一个数字或文本等于某物 =

[average_range]是函数计算平均值的区域。

注意:[average_range]是可选的。

如果未指定,则函数计算与条件相同的区域的平均值。


AVERAGEIF 函数示例

查找草属性宝可梦的平均速度

条件是类型为“草”。

复制值

AVERAGEIF 函数示例,分步说明

  1. 选择单元格F3
  2. 输入=AVERAGEIF
  3. 点击AVERAGEIF命令

  1. 指定条件的区域B2:B10(类型 1 值)
  2. 输入,
  3. 指定条件(单元格E3,其值为“草”)
  4. 输入,
  5. 指定平均值的区域C2:C10(速度值)
  6. 按回车键

该函数现在计算草属性宝可梦(妙蛙种子、妙蛙草和妙蛙花)的平均速度值。

该函数可以重复用于火属性和水属性宝可梦以进行比较

注意:您可以使用填充函数用于其他行,但请确保对区域使用绝对引用

现在,我们可以看到每种类型的平均速度值


×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
[email protected]

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
[email protected]

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 our terms of use, cookie and privacy policy.

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