---
title: DECIMAL – แปลงเป็นเลขฐาน 10
url: https://www.thepexcel.com/functions/excel/math-and-trigonometry/decimal/
type: function-explainer
program: Excel
syntax: "=DECIMAL(text, radix)"
date: 2025-12-02
updated: 2025-12-17
scores:
  popularity: 5
  difficulty: 2
  usefulness: 6
---

# DECIMAL – แปลงเป็นเลขฐาน 10

> แปลงเป็นเลขฐาน 10

## คำอธิบาย

DECIMAL ใช้แปลง “ข้อความตัวเลข” ที่อยู่ในฐานที่กำหนด (radix 2–36) ให้เป็นเลขฐาน 10 เหมาะเมื่อคุณได้รหัส/เลขฐานอื่นจากระบบภายนอก (เช่น Hex หรือ Binary) แล้วต้องการนำมาคำนวณต่อใน Excel

## Syntax

```excel
=DECIMAL(text, radix)
```

## Arguments

| Name | Required | Type | Default | Description |
| --- | --- | --- | --- | --- |
| text | Yes | Text |  | ข้อความตัวเลข |
| radix | Yes | Number |  | ฐาน (2-36) |

## ตัวอย่าง

### 1. ตัวอย่างที่ 1: แปลง Hex เป็นเลขฐาน 10

```excel
=DECIMAL("FF", 16)
```

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

ค่า "FF" เป็นเลขฐาน 16 (Hex) เมื่อแปลงเป็นฐาน 10 จะได้ 255 ซึ่งนำไปใช้คำนวณต่อได้ทันที

### 2. ตัวอย่างที่ 2: แปลงเลขฐาน 2 (Binary) เป็นฐาน 10

```excel
=DECIMAL("1011", 2)
```

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

ค่า "1011" เป็นเลขฐาน 2 เมื่อแปลงเป็นฐาน 10 จะได้ 11 (8+2+1) เหมาะกับงานถอดรหัสบิต/แฟล็ก

### 3. ตัวอย่างที่ 3: แปลงฐาน 36 (0-9,A-Z) เป็นฐาน 10

```excel
=DECIMAL("ZZ", 36)
```

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

ฐาน 36 ใช้ตัวอักษร A-Z แทนค่า 10-35 ดังนั้น "ZZ" จะแปลงเป็น 35×36 + 35 = 1295

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

- [BASE – แปลงเลขฐาน](https://www.thepexcel.com/functions/excel/math-and-trigonometry/base/)
- [BIN2DEC – แปลงเลขฐานสองเป็นฐานสิบ](https://www.thepexcel.com/functions/excel/engineering/bin2dec/)
- [HEX2DEC – แปลงฐาน 16 เป็นฐาน 10](https://www.thepexcel.com/functions/excel/engineering/hex2dec/)
- [DEC2HEX – แปลงฐาน 10 เป็นฐาน 16](https://www.thepexcel.com/functions/excel/engineering/dec2hex/)

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

- [เอกสาร Microsoft Support: DECIMAL](https://support.microsoft.com/en-us/office/decimal-function-ee554665-6176-46ef-82de-0a283658da2e) _(official)_
- [คำอธิบายและตัวอย่างเพิ่มเติม: DECIMAL (ExcelJet)](https://exceljet.net/excel-functions/excel-decimal-function) _(guide)_

---

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