Bài 104: Cách sử dụng hàm COUNTIF trong Excel

brownfish469

New member
#Excel #Countif #Function #Tutorial #googlesheets ## 1.Chức năng Countif là gì?

Hàm Countif đếm số lượng ô trong một phạm vi đáp ứng một tiêu chí nhất định.Cú pháp của chức năng Countif là:

`` `
= Countif (phạm vi, tiêu chí)
`` `

*** Phạm vi ** là phạm vi của các ô mà bạn muốn đếm.
*** Tiêu chí ** là tiêu chí mà bạn muốn sử dụng để lọc các ô.

Ví dụ: công thức sau đếm số lượng ô trong phạm vi A1: A10 chứa giá trị "Apple":

`` `
= Countif (A1: A10, "Apple")
`` `

## 2.Cách sử dụng chức năng Countif

Chức năng Countif rất dễ sử dụng.Để sử dụng chức năng Countif, hãy làm theo các bước sau:

1. Chọn ô nơi bạn muốn hiển thị kết quả.
2. Nhập công thức sau:

`` `
= Countif (phạm vi, tiêu chí)
`` `

3. Nhấn Enter.

Hàm Countif sẽ trả về số lượng ô trong phạm vi đáp ứng các tiêu chí.

## 3.Ví dụ về việc sử dụng chức năng Countif

Dưới đây là một số ví dụ về việc sử dụng chức năng Countif:

* Đếm số lượng ô trong một phạm vi có chứa một giá trị nhất định:

`` `
= Countif (A1: A10, "Apple")
`` `

* Đếm số lượng ô trong một phạm vi trống:

`` `
= Countif (A1: A10, "")
`` `

* Đếm số lượng ô trong một phạm vi không trống:

`` `
= Countif (A1: A10, "<>")
`` `

* Đếm số lượng ô trong một phạm vi lớn hơn một giá trị nhất định:

`` `
= Countif (A1: A10, "> 10")
`` `

* Đếm số lượng ô trong một phạm vi nhỏ hơn một giá trị nhất định:

`` `
= Countif (A1: A10, "<10")
`` `

##4.Mẹo sử dụng chức năng Countif

Dưới đây là một số mẹo để sử dụng chức năng Countif:

*Sử dụng toán tử ** và ** để kết hợp nhiều tiêu chí.Ví dụ: công thức sau đếm số lượng ô trong phạm vi A1: A10 chứa giá trị "Apple" và lớn hơn 10:

`` `
= Countif (A1: A10, "Apple" & "> 10")
`` `

*Sử dụng toán tử ** hoặc ** để kết hợp nhiều tiêu chí.Ví dụ: công thức sau đếm số lượng ô trong phạm vi A1: A10 có chứa giá trị "táo" hoặc "cam":

`` `
= Countif (A1: A10, "Apple" | "Orange")
`` `

*Sử dụng toán tử ** không ** để phủ nhận một tiêu chí.Ví dụ: công thức sau đếm số lượng ô trong phạm vi A1: A10 không chứa giá trị "Apple":

`` `
= Countif (A1: A10, "<>" & "Apple")
`` `

## 5.Phần kết luận

Chức năng Countif là một công cụ mạnh mẽ có thể được sử dụng để đếm số lượng ô trong một phạm vi đáp ứng một tiêu chí nhất định.Nó rất dễ sử dụng và có thể được sử dụng để thực hiện nhiều nhiệm vụ khác nhau.
=======================================
#Excel #Countif #Function #Tutorial #googlesheets ##1. What is the COUNTIF function?

The COUNTIF function counts the number of cells in a range that meet a certain criteria. The syntax of the COUNTIF function is:

```
=COUNTIF(range, criteria)
```

* **range** is the range of cells that you want to count.
* **criteria** is the criteria that you want to use to filter the cells.

For example, the following formula counts the number of cells in the range A1:A10 that contain the value "Apple":

```
=COUNTIF(A1:A10, "Apple")
```

##2. How to use the COUNTIF function

The COUNTIF function is very easy to use. To use the COUNTIF function, follow these steps:

1. Select the cell where you want to display the result.
2. Type the following formula:

```
=COUNTIF(range, criteria)
```

3. Press Enter.

The COUNTIF function will return the number of cells in the range that meet the criteria.

##3. Examples of using the COUNTIF function

Here are some examples of using the COUNTIF function:

* Count the number of cells in a range that contain a certain value:

```
=COUNTIF(A1:A10, "Apple")
```

* Count the number of cells in a range that are blank:

```
=COUNTIF(A1:A10, "")
```

* Count the number of cells in a range that are not blank:

```
=COUNTIF(A1:A10, "<>")
```

* Count the number of cells in a range that are greater than a certain value:

```
=COUNTIF(A1:A10, ">10")
```

* Count the number of cells in a range that are less than a certain value:

```
=COUNTIF(A1:A10, "<10")
```

##4. Tips for using the COUNTIF function

Here are some tips for using the COUNTIF function:

* Use the **AND** operator to combine multiple criteria. For example, the following formula counts the number of cells in the range A1:A10 that contain the value "Apple" and are greater than 10:

```
=COUNTIF(A1:A10, "Apple" & ">10")
```

* Use the **OR** operator to combine multiple criteria. For example, the following formula counts the number of cells in the range A1:A10 that contain the value "Apple" or "Orange":

```
=COUNTIF(A1:A10, "Apple" | "Orange")
```

* Use the **NOT** operator to negate a criteria. For example, the following formula counts the number of cells in the range A1:A10 that do not contain the value "Apple":

```
=COUNTIF(A1:A10, "<>" & "Apple")
```

##5. Conclusion

The COUNTIF function is a powerful tool that can be used to count the number of cells in a range that meet a certain criteria. It is easy to use and can be used to perform a variety of tasks.
 
Join ToolsKiemTrieuDoGroup
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock