---
title: ATAN – หาค่า Arctangent
url: https://www.thepexcel.com/functions/excel/math-and-trigonometry/atan/
type: function-explainer
program: Excel
syntax: =ATAN(number)
date: 2025-12-02
updated: 2025-12-24
scores:
  popularity: 5
  difficulty: 2
  usefulness: 6
---

# ATAN – หาค่า Arctangent

> คำนวณค่า Arctangent ส่งกลับมุมเป็นเรเดียน (-π/2 ถึง π/2) จากค่า Slope หรืออัตราส่วนตัวเลข

## คำอธิบาย

คำนวณค่า Arctangent ส่งกลับมุมเป็นเรเดียน (-π/2 ถึง π/2) จากค่า Slope หรืออัตราส่วนตัวเลข

## Syntax

```excel
=ATAN(number)
```

## Arguments

| Name | Required | Type | Default | Description |
| --- | --- | --- | --- | --- |
| number | Yes | Number |  | ค่า Tangent หรือ Slope ตัวเลขใดๆ (บวก ลบ หรือ ศูนย์) |

## ตัวอย่าง

### 1. ความชัน 1 (45 องศา)

```excel
=ATAN(1)
```

**ผลลัพธ์:** `0.785398163...`

มุมที่มี Slope = 1 คือประมาณ π/4 หรือ 45 องศา ผลลัพธ์เป็นเรเดียน

### 2. แปลงเป็นองศา

```excel
=DEGREES(ATAN(1))
```

**ผลลัพธ์:** `45`

ใช้ DEGREES() เพื่อแปลงจากเรเดียนเป็นองศา 0.7854... = 45°

### 3. ความชันติดลบ

```excel
=DEGREES(ATAN(-1))
```

**ผลลัพธ์:** `-45`

ความชันติดลบแสดงมุมลดลง ATAN(-1) = -45 องศา

### 4. ความชันสูง

```excel
=DEGREES(ATAN(10))
```

**ผลลัพธ์:** `84.2894068...`

Slope ที่มีค่ามาก = มุมใกล้ 90 องศา แต่ไม่เกิน 90 องศา

## หมายเหตุเพิ่มเติม

- ATAN ส่งกลับเรเดียนเสมอ จำไว้ว่าเรเดียน = องศา × π/180

- ถ้าต้องระบุ quadrant เต็ม (180° ถึง -180°) ใช้ ATAN2(y, x) แทน

- ค่า ATAN(0) = 0, ATAN(1) ≈ 0.7854, ATAN(-1) ≈ -0.7854

- ใช้ DEGREES() หรือ RADIANS() เพื่อแปลงระหว่างหน่วยมุม

- ใน scatter plot ใช้ ATAN2 หามุมของจุดจากจุดศูนย์กลาง

## คำถามที่พบบ่อย

**Q: ต้องแปลงเรเดียนเป็นองศาอย่างไร?**

ใช้ DEGREES() ครอบ ATAN เช่น =DEGREES(ATAN(1)) ได้ 45 องศา หรือคูณด้วย 180/PI() คือ =ATAN(1)*180/PI()

**Q: ATAN กับ ATAN2 ต่างกันอย่างไร?**

ATAN ต้องคำนวณ slope อย่างชาญฉลาด (y/x) เอง ส่วน ATAN2 ใช้พิกัด (x, y) โดยตรง และรู้จักทั้ง 4 quadrant ATAN2 เวลา x เป็นลบจะไม่สับสน

**Q: ผลลัพธ์มีช่วงเท่าไร?**

ATAN ส่งกลับค่าระหว่าง -π/2 (-1.5708...) ถึง π/2 (1.5708...) เรเดียน คือประมาณ -90° ถึง 90°

**Q: ใช้ ATAN ทำอะไรได้?**

หามุมเอียงของเส้น (จากสูตร slope = rise/run) คำนวณมุมในธรรมชาติ วิทยาศาสตร์ วิศวกรรม หรือ gamedev

## ฟังก์ชันที่เกี่ยวข้อง

- [ATAN2 – หาค่ามุมจากพิกัด x, y](https://www.thepexcel.com/functions/excel/math-and-trigonometry/atan2/)
- [DEGREES – แปลงเรเดียนเป็นองศา](https://www.thepexcel.com/functions/excel/math-and-trigonometry/degrees/)
- [PI – ค่าพาย (Pi)](https://www.thepexcel.com/functions/excel/math-and-trigonometry/pi/)
- [SLOPE – หาความชันของเส้นถดถอย](https://www.thepexcel.com/functions/excel/statistical/slope/)
- [TAN – หาค่า Tangent](https://www.thepexcel.com/functions/excel/math-and-trigonometry/tan/)

## แหล่งข้อมูลเพิ่มเติม

- [Microsoft Excel ATAN Function](https://support.microsoft.com/en-us/office/atan-function-50746fa7-1386-4ec7-b59b-583953a6e3b3) _(official)_
- [Trigonometric Functions Guide](https://support.microsoft.com/en-us/office/trigonometric-functions-atan2-acos-asin-cos-degrees-radians-sin-tan-functions-dd91d715-6c7d-4941-a92d-d455423e9814) _(official)_

---

_Source: [https://www.thepexcel.com/functions/excel/math-and-trigonometry/atan/](https://www.thepexcel.com/functions/excel/math-and-trigonometry/atan/)_
