Returns a number rounded to the nearest specified multiple.
ฟังก์ชันนี้ทำงานใน Google Sheets เหมือนกับใน Excel — ไวยากรณ์และอาร์กิวเมนต์เดียวกัน
MROUND(number, multiple)MROUND rounds a number up or down to the nearest multiple of the provided argument. If the remainder of dividing the number by the multiple is greater than or equal to half the value of the multiple, the function rounds away from zero.
=MROUND(10, 3)ผลลัพธ์: 9
10 is rounded to the nearest multiple of 3, which is 9.
=MROUND(11, 3)ผลลัพธ์: 12
11 is rounded to the nearest multiple of 3, which is 12.
MROUND will return a #NUM! error if the number and multiple have different signs.