---
title: DCOUNTA – นับจำนวน (ไม่ว่าง) จาก Database
url: https://www.thepexcel.com/functions/excel/database/dcounta/
type: function-explainer
program: Excel
syntax: "=DCOUNTA(database, field, criteria)"
date: 2025-12-02
updated: 2025-12-17
scores:
  popularity: 3
  difficulty: 5
  usefulness: 4
---

# DCOUNTA – นับจำนวน (ไม่ว่าง) จาก Database

> นับจำนวน (ไม่ว่าง) จาก Database

## คำอธิบาย

นับจำนวนเซลล์ที่ไม่ว่างในฐานข้อมูลตามเงื่อนไข

## Syntax

```excel
=DCOUNTA(database, field, criteria)
```

## Arguments

| Name | Required | Type | Default | Description |
| --- | --- | --- | --- | --- |
| database | Yes | Range |  | ฐานข้อมูล |
| field | Yes | Text/Number |  | คอลัมน์ |
| criteria | Yes | Range |  | เงื่อนไข |

## ตัวอย่าง

### 1. นับรายการที่ไม่ว่าง

```excel
=DCOUNTA(Database, "Name", Criteria)
```

**ผลลัพธ์:** `จำนวนรายการ`

นับจำนวนแถวที่มีข้อมูลในคอลัมน์ Name และตรงตามเงื่อนไข

### 2. นับจำนวนนักเรียนตามชั้นเรียน

```excel
=DCOUNTA(A1:D50, "StudentName", ClassCriteria)
```

**ผลลัพธ์:** `42`

Database: A1:D50 (ข้อมูลนักเรียน) นับจำนวนนักเรียนชั้น ม.1 ทั้งชายและหญิง = 42 คน

### 3. นับข้อมูลที่ไม่ว่างตามเงื่อนไข

```excel
=DCOUNTA(Data, "Notes", DateCriteria)
```

**ผลลัพธ์:** `28`

Database: Data นับจำนวนแถวที่มีข้อมูล Notes (ไม่ว่าง) ในช่วงวันที่ที่กำหนด = 28 แถว

## ฟังก์ชันที่เกี่ยวข้อง

- [COUNTA – ฟังก์ชันนับเซลล์ที่ไม่ว่าง](https://www.thepexcel.com/functions/excel/statistical/counta/)
- [COUNTIF – นับจำนวนแบบมีเงื่อนไข](https://www.thepexcel.com/functions/excel/statistical/countif/)
- [COUNTIFS – ฟังก์ชันนับเซลล์ตามหลายเงื่อนไขพร้อมกัน](https://www.thepexcel.com/functions/excel/statistical/countifs/)
- [DAVERAGE – หาค่าเฉลี่ยจาก Database](https://www.thepexcel.com/functions/excel/database/daverage/)
- [DCOUNT – นับจำนวน (ตัวเลข) จาก Database](https://www.thepexcel.com/functions/excel/database/dcount/)
- [DSUM – หาผลรวมจากฐานข้อมูลตามเงื่อนไข](https://www.thepexcel.com/functions/excel/database/dsum/)

## แหล่งข้อมูลเพิ่มเติม

- [Official Documentation](https://support.microsoft.com/en-us/office/dcounta-function-00232a6d-5a66-4a01-a25b-c1653fda1244) _(official)_
- [ExcelJet](https://exceljet.net/excel-functions/excel-dcounta-function) _(guide)_

---

_Source: [https://www.thepexcel.com/functions/excel/database/dcounta/](https://www.thepexcel.com/functions/excel/database/dcounta/)_
