Math and Trignometric - GCD Function



Description

The GCD function returns the greatest common divisor of two or more integers. The greatest common divisor is the largest integer that divides both number1 and number2 without a remainder.

Syntax

GCD (number1, [number2] ...)

Arguments

Argument Description Required/Optional
Number1 1 to 255 values. If any value is not an integer, it is truncated. Required
number2, ... Optional

Notes

  • One divides any value evenly.

  • A prime number has only itself and one as even divisors.

  • If any argument is nonnumeric, GCD returns the #VALUE! error value.

  • If any argument is less than zero, GCD returns the #NUM! error value.

  • If a parameter to GCD is >=2^53, GCD returns the #NUM! error value.

Applicability

Excel 2007, Excel 2010, Excel 2013, Excel 2016

Example

GCD Function
advanced_excel_math_trigonometric_functions.htm
Advertisements