Math and trigonometry

GCD

Find the largest integer that divides every supplied integer evenly.

Syntax

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

Worked example

Find the largest equal group size for lots of 18 and 24.

=GCD(18,24)

Result 6

Microsoft documentation

Check the arguments, supported editions and behavior of this function in Microsoft’s reference.

Microsoft reference

Search ExcelTutor