## What is GCD Function in Excel?

The **GCD **function is one of the math functions of Excel.

It Returns the **greatest common divisor**.

We can find this function in **Math & trig** category of insert function Tab.

## How to use GCD function in excel

- Click on
**an empty cell**(like F5 )

2. Click on **fx icon** (or press** shift+F3**)

3. In the** insert function tab** you will see all functions

4. Select **math and trig** category

5. Select **GCD **function

6. Then select **ok**

7. In the function arguments Tab you will see **GCD **function

8 & 9. Numbers: number1,number2,… **are 1 to 255 values**

10. You will see **results **in the formula result section

## Examples of **GCD** function in Excel

**Example 1:**

**How to use GCD function in excel**

You can see examples of GCD function below:

**gcd**(A2,B2) ----->>>>answer is 3
**gcd**(A3,B3) ----->>>>answer is 9
**gcd**(A4,B4) ----->>>>answer is 2
**gcd**(A5,B5) ----->>>>answer is 10
**gcd**(A6,B6) ----->>>>answer is 1

## What is the purpose of **GCD** function?

**GCD**

It Returns the **greatest common divisor**.

## What is the Return value of **GCD** function?

**GCD**

It returns a number.

## How many arguments does **GCD** function have?

**GCD**

This function has just **2** Argument.

The **argument **of GCD function is **number**.

Numbers: number1,number2,… **are 1 to 255 values**.

The argument of GCD function is **required **and not optional.

```
GCD(number) = number
```

## Which version of excel supports **GCD** function?

**GCD**

This function is available for all excel **versions **(2003-2019)

## Errors in **GCD** function

**GCD**