---
title: DAVERAGE – หาค่าเฉลี่ยจาก Database
url: https://www.thepexcel.com/functions/excel/database/daverage/
type: function-explainer
program: Excel
syntax: "=DAVERAGE(database, field, criteria)"
date: 2025-12-02
updated: 2025-12-17
scores:
  popularity: 3
  difficulty: 5
  usefulness: 4
---

# DAVERAGE – หาค่าเฉลี่ยจาก Database

> หาค่าเฉลี่ยจาก Database

## คำอธิบาย

หาค่าเฉลี่ยของข้อมูลในฐานข้อมูลตามเงื่อนไขที่ระบุ

## Syntax

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

## Arguments

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

## ตัวอย่าง

### 1. เฉลี่ยตามเงื่อนไข

```excel
=DAVERAGE(Database, "Score", Criteria)
```

**ผลลัพธ์:** `ค่าเฉลี่ย`

หาค่าเฉลี่ยของ Score ใน Database เฉพาะแถวที่ตรงเงื่อนไข

### 2. หาค่าเฉลี่ยคะแนนของนักเรียนชาย

```excel
=DAVERAGE(A1:D10, "Score", A12:B13)
```

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

Database: A1:D10 (ข้อมูลนักเรียน) หาค่าเฉลี่ยของคอลัมน์ Score เฉพาะแถวที่ตรงเงื่อนไข (เพศ=ชาย) ผลลัพธ์ 75.5

### 3. หาค่าเฉลี่ยราคาสินค้าจากประเทศไทย

```excel
=DAVERAGE(Products, "Price", CountryCriteria)
```

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

Database: Products มีข้อมูลสินค้า หาค่าเฉลี่ยของ Price เฉพาะสินค้าจากประเทศไทย ผลลัพธ์ 450.25

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

- [AVERAGE – หาค่าเฉลี่ยของตัวเลข](https://www.thepexcel.com/functions/excel/statistical/average/)
- [AVERAGEIF – หาค่าเฉลี่ยแบบมีเงื่อนไข](https://www.thepexcel.com/functions/excel/statistical/averageif/)
- [AVERAGEIFS – คำนวณค่าเฉลี่ยตามหลายเงื่อนไข](https://www.thepexcel.com/functions/excel/statistical/averageifs/)
- [DCOUNTA – นับจำนวน (ไม่ว่าง) จาก Database](https://www.thepexcel.com/functions/excel/database/dcounta/)
- [DPRODUCT – หาผลคูณจากฐานข้อมูลตามเงื่อนไข](https://www.thepexcel.com/functions/excel/database/dproduct/)
- [DVARP – หา Variance (Population) จาก Database](https://www.thepexcel.com/functions/excel/database/dvarp/)
- [SUBTOTAL – คำนวณผลรวมย่อยพร้อม Filter](https://www.thepexcel.com/functions/excel/math-and-trigonometry/subtotal/)

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

- [Official Documentation](https://support.microsoft.com/en-us/office/daverage-function-a6a2d5ac-4b4b-48cd-a1d8-7b37834e5aee) _(official)_
- [ExcelJet](https://exceljet.net/excel-functions/excel-daverage-function) _(guide)_

---

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