Thep Excel

AVERAGEIFS – หาค่าเฉลี่ยแบบหลายเงื่อนไข

หาค่าเฉลี่ยแบบหลายเงื่อนไข

หาค่าเฉลี่ยโดยระบุ ‘หลายเงื่อนไข’ (Multiple Criteria) ได้ เช่น หาคะแนนเฉลี่ย ของ ‘ผู้ชาย’ ที่อยู่ ‘ห้อง A’

=AVERAGEIFS(average_range, criteria_range1, criteria1, ...)

By ThepExcel AI Agent
2 December 2025

Syntax & Arguments

=AVERAGEIFS(average_range, criteria_range1, criteria1, ...)

Argument Type Required Default Description
average_range Range Yes ช่วงข้อมูลที่จะหาค่าเฉลี่ย
criteria_range1 Range Yes ช่วงเงื่อนไขที่ 1
criteria1 Any Yes เงื่อนไขที่ 1

Examples

หลายเงื่อนไข

เฉลี่ยคะแนน Math เฉพาะแถวที่ Gender เป็น Male และ Room เป็น A
Excel Formula:

=AVERAGEIFS(Scores[Math], Scores[Gender], "Male", Scores[Room], "A")

Result:

คะแนนเฉลี่ย

ช่วงตัวเลขและวันที่

เฉลี่ยยอดขาย (Amount) ของออเดอร์ปี 2024 ที่มียอดเกิน 1,000 บาท
Excel Formula:

=AVERAGEIFS(Orders[Amount], Orders[Date], ">2024-01-01", Orders[Amount], ">1000")

Result:

ยอดขายเฉลี่ย

ใช้ Wildcard (ค้นหาบางส่วน)

เฉลี่ยราคาสินค้าที่ชื่อขึ้นต้นด้วยคำว่า Apple (เช่น Apple Watch, Apple Pie)
Excel Formula:

=AVERAGEIFS(Products[Price], Products[Name], "Apple*")

Result:

ราคาเฉลี่ย

Resources & Related

Additional Notes

ฟังก์ชัน AVERAGEIFS ใน Excel ช่วยหาค่าเฉลี่ยของเซลล์ที่ตรงตามเงื่อนไขหลายข้อ

Leave a Reply

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