Fresh Excel Tips

Quick and Easy Excel Tips and Tutorials

How to use the GCD function to determine the greatest common divisor

In this example, the greatest common divisor of two integers has to be determined. To do so, use the GCD function. This function is only available if you have the Analysis ToolPak add-in installed. Here is the syntax that is used:
GCD(number1, number2, …)
number1, number2, …: From 1 to 29 values for which you want to find the greatest common divisor. Non-integer values are truncated.

To determine the greatest common divisor:

  1. In cells A2:A10 list any valid numbers.
  2. In cells B2:B10 list any valid numbers.
  3. Select cells C2:C10.
  4. Type the following formula: =GCD(A2,B2).
  5. Press Ctrl+Enter.

How to use the GCD function to determine the greatest common divisor

This tip is compatible with Excel 97, 2000, 2003 and 2007.

How to use the GCD function to determine the greatest common divisor
  1. How to Use the LCM function to determine the least common multiple
  2. Use the NETWORKDAYS function to determine number of workdays
  3. How to Use the STDEV function to determine the standard deviation
  4. How to Use the SUMSQ function to determine the square sum
  5. Use the EOMONTH function to determine the last day of a month

Leave a Reply