GCD function

GCD returns the greatest common divisor of all arguments.

Syntax

GCD(number1, [number2], ... )

number1 is required and subsequent numbers are optional. The numbers must be integers and cannot be less than 0.

Example

=GCD(16,32,24) returns 8, because 8 is the largest number that can divide 16, 24, and 32 without a remainder.