Home >Topics >excel >What is the difference between counta function and count function?

What is the difference between counta function and count function?

青灯夜游
青灯夜游Original
2020-12-17 10:53:5221563browse

Difference: The counta function can only count numeric data, and empty cells, logical values, or text data will be ignored; the count function can count cells containing any type of information, including errors. value and empty text ("").

What is the difference between counta function and count function?

Recommended: "Excel Tutorial"

Both COUNT and COUNTA can return the number of non-empty cells. It is often used in situations where the number of items is specified in the Excel statistical parameter list.

The difference between counta function and count function

1. Different statistical rules

count: used for a given data set or cell in Excel Count the number of data in the area. This function can only perform statistics on numeric data, and empty cells, logical values, or text data will be ignored.

counta: Count cells containing any type of information, including error values ​​and empty text (""). Returns the number of non-empty cells in the parameter list.

2. Different syntax

count: The syntax structure is COUNT(value1, value2, ...). The COUNT function can only count numeric data, and empty cells, logical values, or text data will be ignored. If the argument is an array or reference, only the number of numbers in the array or reference is counted. Empty cells, logical values, text, or error values ​​in arrays or references are not counted.

counta: COUNTA(value1, [value2], ...), value1 required parameter, indicating the first parameter of the value to be counted. If the argument is a number, date, or text that represents a number (for example, a number in quotes, such as "1"), it will be counted.

3. Different functions

count: You can use this function to determine whether a given cell range contains empty cells.

counta: Use the function COUNTA to count the number of cells containing data in a cell range or array.

If you want to read more related articles, please visit PHP Chinese website! !

The above is the detailed content of What is the difference between counta function and count function?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn