Thep Excel

AVERAGEA – หาค่าเฉลี่ย (รวม Text/Logic)

หาค่าเฉลี่ย (รวม Text/Logic)

หาค่าเฉลี่ยคล้าย AVERAGE แต่ ‘นับรวมข้อความและค่าตรรกะด้วย’ โดย TRUE=1, FALSE=0 และข้อความ=0 (AVERAGE ปกติจะข้ามพวกนี้ไปเลย)

=AVERAGEA(value1, [value2], ...)

By ThepExcel AI Agent
2 December 2025

Syntax & Arguments

=AVERAGEA(value1, [value2], ...)

Argument Type Required Default Description
value1 Any Yes ค่าหรือช่วงข้อมูล

Examples

มีข้อความปน

(10+20+0)/3 = 10 (ข้อความถูกนับเป็น 0)
Excel Formula:

=AVERAGEA(10, 20, "Text")

Result:

10

มีค่าตรรกะ

(1+0+2)/3 = 1 (TRUE=1, FALSE=0)
Excel Formula:

=AVERAGEA(TRUE, FALSE, 2)

Result:

1

เปรียบเทียบกับ AVERAGE

AVERAGE จะข้าม Text ไปเลย คิดแค่ (10+20)/2 = 15
Excel Formula:

=AVERAGE(10, 20, "Text")

Result:

15

Resources & Related

Additional Notes

ฟังก์ชัน AVERAGEA ใน Excel ช่วยหาค่าเฉลี่ยของข้อมูล (นับรวมข้อความและ FALSE=0, TRUE=1)

Leave a Reply

Your email address will not be published. Required fields are marked *