The **Excel GCD function** is a Math and Trigonometry function, and its purpose is to return the greatest common divisor of two or more integers. The greatest common divisor is the largest integer that divides both number 1 and number 2 without a remainder.

The formula for the GCD function is `GCD (number 1, [number 2],..)`

.

The syntax for the GCD function is below:

Number 1, number 2: Number 1 is required; numbers after are optional. If any number is not an integer, it is truncated.

## How to use the GCD function in Microsoft Excel

Follow the steps below to use the GCD function in Microsoft Excel:

- Launch Microsoft Excel.
- Create a table or use an existing table from your files.
- Place the formula into the cell you want to see the result.
- Press the Enter Key to see the result.

Launch **Microsoft Excel**.

Create a table or use an existing table from your files.

Place the formula into the cell you want to see the result **=GCD(A2,B2)**.

Then press the Enter key to see the result.

Drag the fill handle down to see the other results.

There are two other methods to use the GCD function.

**1] Method one** is to click the *fx* button on the top left of the Excel worksheet.

An **Insert Function** dialog box will appear.

Inside the dialog box in the Select** a Category** section, select *Math and Trigonometry *from the list box.

In the section **Select a Function**, choose the *GCD function* from the list.

Then click *OK.*

*A ***Function Arguments** dialog box will open.

Enter the values and click OK.

**2] Method two** is to click the **Formulas **tab and click the *Math and Trig *button in the *Function Library* group.

Then select *GCD *from the drop-down menu.

A **Function Arguments** dialog box will open.

Follow the same procedure in method one with the **Function Arguments** dialog box

We hope this tutorial helps you understand how to use the GCD function in Microsoft Excel.

### What is GCD and LCM in Excel?

The GCD function, known as the greatest common divisor, returns the largest integer, which is a factor of all integers. LCM gives the new denominator for adding or subtracting fractions with different denominators.

### Which is an example of a formula in MS Excel?

In Microsoft Excel, a formula is defined as an expression that operates on values in a range of cells. An example of a formula in Excel is** = A1/B1**; this formula divides numbers. Another example is **A1+B1**; this formula adds numbers.

**READ**: How to use the TAN function in Microsoft Excel

### How do you find the GCD of 3 numbers in Excel?

When it comes to the GCD formula, it will accept more numbers into the function. Type the GCD formula into the cell where you want to place the result, for example, **=GCD(A4, B4, C4)**, and press enter to see the result.

### How do you find the least common denominator on Excel?

The Least Common Denominator (LCM) is the opposite of GCD. The LCM function returns the least common multiple of integers. The syntax for the LCM function is **LCM(number 1, [number 2],..)**.

### How many Excel function categories are there?

In Microsoft Excel, there is a total of 12 categories, namely: Financial, Information, Math and Trigonometry, Statistical, Text, Logical, Lookup and Reference, Date and Time, Engineering, Compatibility, Cube, and Database.