Returns the greatest common divisor of two or more integers.
Эта функция в Google Таблицах работает так же, как в Excel — тот же синтаксис и аргументы.
GCD(number1, [number2], ...)The GCD function calculates the largest positive integer that divides each of the provided numbers without a remainder. If any argument is non-numeric, the function returns the #VALUE! error value.
=GCD(12, 18)Результат: 6
The largest number that divides both 12 and 18 is 6.
=GCD(24, 36, 48)Результат: 12
The greatest common divisor for 24, 36, and 48 is 12.
The GCD function uses the absolute value of any negative number provided.