---
title: LOGEST – คำนวณสมการ Exponential Regression
url: https://www.thepexcel.com/functions/excel/statistical/logest/
type: function-explainer
program: Excel
syntax: "=LOGEST(known_y's, [known_x's], [const], [stats])"
date: 2025-12-02
updated: 2025-12-24
scores:
  popularity: 5
  difficulty: 4
  usefulness: 6
---

# LOGEST – คำนวณสมการ Exponential Regression

> LOGEST ใช้คำนวณค่าสถิติสำหรับเส้นโค้ง Exponential ที่เหมาะสมที่สุด เพื่อวิเคราะห์การเติบโตแบบเลขชี้ก

## คำอธิบาย

LOGEST ใช้คำนวณค่าสถิติสำหรับเส้นโค้ง Exponential ที่เหมาะสมที่สุด เพื่อวิเคราะห์การเติบโตแบบเลขชี้กำลัง

## Syntax

```excel
=LOGEST(known_y's, [known_x's], [const], [stats])
```

## Arguments

| Name | Required | Type | Default | Description |
| --- | --- | --- | --- | --- |
| known_y's | Yes | Range/Array |  | ช่วงข้อมูลค่า Y ที่ทราบแล้ว (ข้อมูลตามแกนตั้ง) - ต้องมีอย่างน้อย 2 ค่า |
| known_x's | No | Range/Array | 1, 2, 3, ... | ช่วงข้อมูลค่า X ที่ทราบแล้ว (ข้อมูลตามแกนนอน) - ถ้าละไว้ Excel จะใช้ค่า 1, 2, 3... แทน |
| const | No | Logical | TRUE | TRUE (ค่าเริ่มต้น) = คำนวณค่า b ปกติ, FALSE = บังคับให้ b = 1 |
| stats | No | Logical | FALSE | FALSE (ค่าเริ่มต้น) = คืนค่า m และ b เท่านั้น, TRUE = คืนสถิติเพิ่มเติม |

## ตัวอย่าง

### 1. ตัวอย่างพื้นฐาน: หาสัมประสิทธิ์การเติบโต

```excel
=LOGEST(B2:B10, A2:A10)
```

**ผลลัพธ์:** `{1.15, 50}`

หา m และ b ของสมการ y = 50 * 1.15^x โดยดูจากข้อมูลปีที่ 1-9 (A2:A10) และยอดขาย (B2:B10) ค่า m=1.15 หมายถึงการเติบโต 15% ต่อปี

### 2. ตัวอย่างจริง: พยากรณ์ยอดขาย

```excel
=GROWTH(INDEX(LOGEST(B2:B10, A2:A10), 1), A2:A10, 11)
```

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

ใช้ LOGEST หาค่าสัมประสิทธิ์แล้วส่งให้ GROWTH เพื่อพยากรณ์ยอดขายปีที่ 11 ซึ่งจะเป็น ~115,000

### 3. ตัวอย่างเชิงลึก: ได้สถิติการวิเคราะห์

```excel
=LOGEST(B2:B10, A2:A10, TRUE, TRUE)
```

**ผลลัพธ์:** `Array 5x2 ที่มี m, b, และสถิติ`

ตั้ง stats=TRUE จะได้เมทริกซ์สถิติ แถวที่ 1 = m,b | แถวที่ 2 = ค่าความผิดพลาด | แถวที่ 3 = R^2, F-statistic | สำหรับตรวจสอบคุณภาพของสมการ

### 4. ตัวอย่างระดับสูง: X หลายคอลัมน์

```excel
=LOGEST(C2:C20, A2:B20, TRUE, FALSE)
```

**ผลลัพธ์:** `{m1, m2, b}`

ใช้ 2 ตัวแปร X (A และ B) เพื่อวิเคราะห์ y = b*(m1^x1)*(m2^x2)* ซึ่งแม่นยำกว่าสำหรับข้อมูลที่มีหลายปัจจัยเกี่ยวข้อง

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

- ใช้ INDEX เพื่อดึงค่า m หรือ b จากผลลัพธ์: =INDEX(LOGEST(...), 1) ได้ m ส่วน =INDEX(LOGEST(...), 2) ได้ b

- ถ้า known_x's ยาว ให้เรียงตามลำดับ มิฉะนั้นผลจะเสีย

- เปรียบเทียบกับ LINEST ได้ LINEST ใช้หา Linear Regression (y = bx + a) ส่วน LOGEST ใช้หา Exponential (y = b*m^x)

- สำหรับข้อมูลหลายตัวแปร X ให้มัดรวมเป็น Range ติดกัน เช่น A2:B20 สำหรับ 2 คอลัมน์

- ใน Excel 365 สูตร Array ใช้ได้ทั่วไป ไม่ต้องกด Ctrl+Shift+Enter อีกต่อไป

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

**Q: LOGEST กับ LINEST ต่างกันยังไง?**

LOGEST หา Exponential: y = b*m^x (สำหรับการเติบโตแบบเลขชี้กำลัง) ส่วน LINEST หา Linear: y = bx + a (สำหรับความสัมพันธ์เชิงเส้น)

**Q: ทำไมได้ผลลัพธ์ที่เป็น Array ใหญ่ใหญ่?**

เพราะตั้ง stats=TRUE จะคืน 5 แถว (m/b, ค่าความผิดพลาด, R^2/F-stat, 度ของความเป็นอิสระ, SS regression/residual) ถ้าต้องแค่ m,b ให้ตั้ง stats=FALSE

**Q: ใช้พยากรณ์ค่ากับ LOGEST ยังไง?**

ใช้ GROWTH function: =GROWTH(known_y, known_x, new_x) มันจะใช้ผลลัพธ์จาก LOGEST ในเบื้องหลัง

**Q: ค่า m ไม่ได้เป็นเปอร์เซนต์เพิ่ม?**

ถูก m คือ base ของเลขชี้กำลัง ถ้า m=1.15 การเพิ่มคือ 15% ต่อหน่วย X ต้องลบ 1 แล้วคูณ 100 = (m-1)*100 เพื่อได้เปอร์เซนต์

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

- [GROWTH – พยากรณ์การเติบโต (Exponential)](https://www.thepexcel.com/functions/excel/statistical/growth/)
- [HARMEAN – หาค่าเฉลี่ยฮาร์โมนิก](https://www.thepexcel.com/functions/excel/statistical/harmean/)
- [INDEX – ดึงค่าจากตำแหน่งที่ระบุใน Range หรือ Array](https://www.thepexcel.com/functions/excel/lookup-and-reference/index/)
- [RATE – คำนวณอัตราดอกเบี้ยต่องวด](https://www.thepexcel.com/functions/excel/financial/rate/)

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

- [Microsoft Support: LOGEST Function](https://support.microsoft.com/en-us/office/logest-function-f27462d8-3657-4030-866b-a272c1d18b4b) _(official)_
- [Microsoft Learn: GROWTH Function (Companion Function)](https://learn.microsoft.com/en-us/office/client-developer/excel/xllfunctionwizard/growth) _(official)_
- [Microsoft Support: LINEST Function (Linear Regression)](https://support.microsoft.com/en-us/office/linest-function-84d7d0d9-6e50-4101-977a-fa7abdc892ab) _(official)_

---

_Source: [https://www.thepexcel.com/functions/excel/statistical/logest/](https://www.thepexcel.com/functions/excel/statistical/logest/)_
