GCD function
the greatest common divisor.
Math and trigonometry
Where can you use it?
Reporting, manufacturing and engineering teams. When a total, rounding step or numerical transformation is needed, use the example to see which operation fits your inputs.
Scenario in the workbook
Find the largest pack size that divides both stock counts exactly.
A worked example from the workbook
| Row | A | B |
|---|---|---|
| 6 | First value | Second value |
| 7 | 18 | 24 |
| 8 | 12 | 30 |
| 9 | 7 | 13 |
Record 1
=GCD(A7,B7)Expected result6
See the inputs and instructions for all 3 examplesCopyable formulas
English Excel · en-US
=GCD(18,24)Turkish Excel · tr-TR
=OBEB(18;24)Expected result
6
Worked examples
Find the largest pack size that divides both stock counts exactly.
Open the English sheet. Inputs begin at A6. F7:F9 show the live results and G7:G9 show the original results for comparison.
| Row | A | B |
|---|---|---|
| 6 | First value | Second value |
| 7 | 18 | 24 |
| 8 | 12 | 30 |
| 9 | 7 | 13 |
| Case | Formula | Expected result |
|---|---|---|
| Record 1 | =GCD(A7,B7) |
6 |
| Record 2 | =GCD(A8,B8) |
6 |
| Record 3 | =GCD(A9,B9) |
1 |