Returns the median of the given numbers.
ฟังก์ชันนี้ทำงานใน Google Sheets เหมือนกับใน Excel — ไวยากรณ์และอาร์กิวเมนต์เดียวกัน
MEDIAN(number1, [number2], …)The median is the number in the middle of a set of numbers. If the set contains an even number of values, the function returns the average of the two middle numbers.
=MEDIAN(1, 2, 3, 4, 5)ผลลัพธ์: 3
The middle value in this set is 3.
=MEDIAN(10, 20, 30, 40)ผลลัพธ์: 25
Since there are 4 numbers, it averages 20 and 30.
Empty cells, logical values, or text in references are ignored.