菜单
×
   ❮   
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
     ❯   

Excel 教程

Excel HOME Excel Introduction Excel Get Started Excel Overview Excel Syntax Excel Ranges Excel Fill Excel Move Cells Excel Add Cells Excel Delete Cells Excel Undo Redo Excel Formulas Excel Relative Reference Excel Absolute Reference Excel Arithmetic Operators Excel Parentheses Excel Functions

Excel Formatting

Excel Formatting Excel Format Painter Excel Format Colors Excel Format Fonts Excel Format Borders Excel Format Numbers Excel Format Grids Excel Format Settings

Excel Data Analysis

Excel Sort Excel Filter Excel Tables Excel Conditional Format Excel Highlight Cell Rules Excel Top Bottom Rules Excel Data Bars Excel Color Scales Excel Icon Sets Excel Manage Rules (CF) Excel Charts

Table Pivot

Table Pivot Intro

Excel Case

Case: Poke Mart Case: Poke Mart, Styling

Excel Functions

AND AVERAGE AVERAGEIF AVERAGEIFS CONCAT COUNT COUNTA COUNTBLANK COUNTIF COUNTIFS IF IFS LEFT LOWER MAX MEDIAN MIN MODE NPV OR RAND RIGHT STDEV.P STDEV.S SUM SUMIF SUMIFS TRIM VLOOKUP XOR

Excel How To

Convert Time to Seconds Difference Between Times NPV (Net Present Value) Remove Duplicates

Excel Examples

Excel Exercises Excel Certificate

Excel References

Excel Keyboard Shortcuts


Excel COUNT 函数


COUNT 函数

COUNT 函数是 Excel 中一个预设函数,用于计算区域中包含数字的单元格的数量。

输入方式是: =COUNT

注意: COUNT 函数只计算包含数字的单元格,不计算包含字母的单元格。如果单元格包含字母,则更适合使用 COUNTA 函数。

如何使用 =COUNT 函数

  1. 选择一个单元格
  2. 输入 =COUNT
  3. 双击 **COUNT** 命令
  4. 选择一个范围
  5. 按 Enter 键

让我们看一些例子!

=COUNT 函数应用于范围 D2:D21。统计宝可梦总种族值(仅数字)的单元格数量。

复制值

COUNT 函数,分步教程

  1. 选择 D23
  2. 输入 =COUNT
  3. 在菜单中双击 **COUNT**
  4. 选择范围 D2:D21
  5. 按 Enter 键

注意: =COUNT 函数只计算范围内的数字单元格。

完成! =COUNT 函数成功计算了 20 个包含数字的单元格。



一个不起作用的例子

现在,让我们尝试一个将不会成功的示例。

=COUNT 函数应用于范围 A2:A21,该范围仅包含字母单元格。

它返回值为 0,未找到数字单元格。范围 A2:A21 只包含字母单元格。


×

联系销售

如果您想将 W3Schools 服务用于教育机构、团队或企业,请发送电子邮件给我们
sales@w3schools.com

报告错误

如果您想报告错误,或想提出建议,请发送电子邮件给我们
help@w3schools.com

W3Schools 经过优化,旨在方便学习和培训。示例可能经过简化,以提高阅读和学习体验。教程、参考资料和示例会不断审查,以避免错误,但我们无法保证所有内容的完全正确性。使用 W3Schools 即表示您已阅读并接受我们的使用条款Cookie 和隐私政策

版权所有 1999-2024 Refsnes Data。保留所有权利。W3Schools 由 W3.CSS 提供支持