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 COUNTA 函数


COUNTA 函数

**COUNTA** 函数是 Google Sheets 中的一个预制函数,它计算包含值的单元格,包括字母和数字。

它被输入为 =COUNTA 并获取单元格列表

=COUNTA(value1, [value2, ...])

您可以逐个选择单元格,也可以选择区域,甚至多个区域。


COUNTA 函数示例

=COUNTA 函数应用于区域 D2:D21。通过名称(仅限字母)计算神奇宝贝的数量。

复制值

**COUNTA** 函数,分步操作

  1. 选择单元格 A22
  2. 输入 =COUNTA
  3. 点击 **COUNTA** 命令

  1. 指定区域 A2:A21
  2. 按 Enter 键

就是这样!=COUNTA 函数成功计算了区域 A2:A21 中 20 个包含值的单元格。



另一个示例(数字)

=COUNTA 函数应用于区域 D2:D21,该区域仅包含包含数字的单元格。

**太棒了!** COUNTA 函数计算区域中包含数字和字母值的单元格。


×

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.