## What is ATAN2 function in Excel?

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

It Returns the **arctangent** of the specified **x- and y- coordinates**, in radians between **-Pi and Pi**, excluding -Pi.

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

## How to use ATAN2 function in excel

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

2. Click on the **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 **ATAN2 **function.

6. Then select **ok**.

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

8. **X **section num is the **x-coordinate** of the point.

9. **Y **section num is the **y-coordinate **of the point.

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

## Examples of **ATAN2 **function in Excel

**Example 1:**

**How to use ATAN2 function in excel**

You can see examples of ATAN2 function below:

**atan2**(A2,B2) ----->>>>answer is 0.785
**atan2**(A3,B3) ----->>>>answer is 0.643
**atan2**(A4,B4) ----->>>>answer is 0.982
**atan2**(A5,B5) ----->>>>answer is 0
**atan2**(A6,B6) ----->>>>answer is 1.570

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

**ATAN2**

It Returns the **arctangent** of the specified **x- and y- coordinates**, in radians between **-Pi and Pi**, excluding -Pi.

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

It returns a number.

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

**ATAN2**

This function has just **1** Argument.

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

**X **section num is the **x-coordinate** of the point.

**Y **section num is the **y-coordinate **of the point.

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

```
ATAN2(number) = number
```

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

**ATAN2**

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

## Errors in **ATAN2** function

**ATAN2**