Returns the remainder after a number is divided by a divisor.
ฟังก์ชันนี้ทำงานใน Google Sheets เหมือนกับใน Excel — ไวยากรณ์และอาร์กิวเมนต์เดียวกัน
MOD(number, divisor)The MOD function calculates the remainder of a division operation. The result has the same sign as the divisor.
=MOD(10, 3)ผลลัพธ์: 1
10 divided by 3 is 3 with a remainder of 1.
=MOD(15, 4)ผลลัพธ์: 3
15 divided by 4 is 3 with a remainder of 3.
The MOD function will return a #DIV/0! error.