GCD function

Category: Math and trigonometry
Introduced: Excel 2003

Summary

Returns the greatest common divisor

Syntax

GCD(number1, [number2], ...) The GCD function syntax has the following arguments:
• Number1, number2, ... Number1 is required, subsequent numbers are optional. 1 to 255 values. If any value is not an integer, it is truncated.

Example

=GCD(5, 2)
=GCD(24, 36)
=GCD(7, 1)
=GCD(5, 0)

Microsoft Support Page

https://support.microsoft.com/en-us/office/gcd-function-d5107a51-69e3-461f-8e4c-ddfc21b5073a

Back to Functions