Returns the greatest common divisor (GCD) of the specified sequence of numbers.
Syntax
![]() |
---|
GCD( Integer n1, [Integer n2], ... ) → Integer |
If any of the specified arguments is negative, the function returns the #NUM! error value. If one of the arguments is a cell reference or an array, the values of the referenced cells or the array are included in the operation. If the specified values are not integer, they are automatically truncated.
Formula
![]() |
---|
=GCD(12,18) |
Function Reference
LCM Function