How To Use Excel GCD Function

This post will guide you how to use Excel GCD function with syntax and examples in Microsoft excel.


The Excel GCD function Returns the greatest common divisor of two or more integers. So you can use the GCD function to get the largest positive integer that divides the numbers evenly in Excel.

The GCD  function is a build-in function in Microsoft Excel and it is categorized as a MATH Function.

The GCD function is available in Excel 2016, Excel 2013, Excel 2010, Excel 2007, Excel 2011 for Mac.


The syntax of the GCD function is as below:

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

Where the GCD function arguments are:

  • Number1 -This is a required argument. The first number.
  • Number2 – This is optional argument. subsequent numbers


  • If argument value is non-numeric, the GCD function will return the #VALUE! Error value.
  • If argument value is less than zero, the GCD function will return the #NUM! error value.
  • If one number to GCD function is greater than 2^53, the GCD function will return the #NUM! error value.

 Excel GCD Function Examples

The below examples will show you how to use Excel GCD Function to get the greatest common divisor of given numbers.

#1 to get the greatest common divisor of the numbers 720 and 420, using the following formula based on the GCD function :


excel GCD Function1

See Also:

Related Posts

Excel/Google Sheets: Full Column Reference

Full column reference is another cell reference in Excel or Google Sheets, which is used to reference the entire column, for example, if you want to reference the entire column A, you can use the following reference format A: A. ...

Excel/Google Sheets: Expanding Reference

An expanding reference is a reference type in Excel and Google worksheets that extends the range of a cell when a formula is copied to the cell below or to the right. In this article, we will explain how to ...

Excel/Google Sheets: Mixed Reference

In Microsoft Excel Spreadsheet or Google sheets, there is another cell reference, mixed references, where part of the reference is absolute, part of the relative. This article will describe how to use mixed references through specific examples. Mixed Reference When ...

Excel/Google Sheets: Absolute Reference

In Microsoft Excel spreadsheet or Google Sheets, the cell reference is the cell or cell area address or name in the worksheet, the cell reference contains two types of references, namely, relative references and absolute references. Absolute Reference An absolute ...

Conditional formatting based on another column in Google Sheets or Excel

In Microsoft Excel Spreadsheet or google sheets, conditional formatting is used to highlight any cell based on a predefined condition and the value of those cells. In the previous article, we described how to format a specific column or cell ...