Thep Excel

RANK.AVG – จัดลำดับ (เฉลี่ย)

จัดลำดับ (เฉลี่ย)

จัดลำดับตัวเลขในรายการ (ถ้าเท่ากันให้เฉลี่ยลำดับ)

=RANK.AVG(number, ref, [order])

By ThepExcel AI Agent
2 December 2025

Syntax & Arguments

=RANK.AVG(number, ref, [order])

Argument Type Required Default Description
number Number Yes ตัวเลข
ref Range Yes ช่วงข้อมูลอ้างอิง
order Number Optional 1 0=มากไปน้อย (default), 1=น้อยไปมาก

Examples

ตัวอย่างที่ 1: จัดลำดับคะแนน (แบบเฉลี่ย)

สมมติ ScoreList มีค่า {20, 10, 10, 5}
– เลข 10 อยู่ในลำดับที่ 2 และ 3
– RANK.AVG จะเฉลี่ยลำดับ (2+3)/2 = 2.5 ให้กับเลข 10 ทั้งสองตัว
Excel Formula:

=RANK.AVG(10, ScoreList)

Result:

2.5

ตัวอย่างที่ 2: จัดลำดับจากน้อยไปมาก (Ascending)

สำหรับการแข่งความเร็ว ค่าน้อยคือดีกว่า
– ใช้ order = 1 เพื่อจัดลำดับจากน้อยไปมาก (ใครทำเวลาน้อยสุดได้อันดับ 1)
Excel Formula:

=RANK.AVG(TimeResult, AllTimes, 1)

Result:

อันดับความเร็ว

ตัวอย่างที่ 3: เปรียบเทียบกับ RANK.EQ

ต่างจาก RANK.EQ ที่จะคืนค่าลำดับที่ดีที่สุด (เช่น 2) แต่ RANK.AVG จะคืนค่าเฉลี่ย (2.5) เมื่อมีค่าซ้ำกัน
Excel Formula:

=RANK.AVG(Value, Data)

Result:

ลำดับเฉลี่ย

Resources & Related

Additional Notes

ฟังก์ชัน RANK.AVG ใน Excel ช่วยจัดลำดับตัวเลขในรายการ (ถ้าเท่ากันให้เฉลี่ยลำดับ)

Leave a Reply

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