GCD

Returns the greatest common divisor of one or more integers.

Sample usage

GCD(A2:A5)

GCD(24,96,A4)

Syntax

GCD(value1, [value2, ...])

  • value1 – The first value or range whose factors are considered in a calculation to find the greatest common divisor.

  • value2, ...[ OPTIONAL ] – Additional values or ranges whose factors to consider to find the greatest common divisor.

Notes

  • Any input with a decimal part provided to GCD will be silently truncated.

See also

LCM: Returns the least common multiple of one or more integers.

Examples

true
Visit the Learning Center

Using Google products, like Google Docs, at work or school? Try powerful tips, tutorials, and templates. Learn to work on Office files without installing Office, create dynamic project plans and team calendars, auto-organize your inbox, and more.

Search
Clear search
Close search
Google apps
Main menu
10458206301334129305
true
Search Help Centre
false
true
true
true
true
true
35
false
false
false
false