---
title: Number.ToText – แปลงตัวเลขเป็นข้อความ
url: https://www.thepexcel.com/functions/power-query/number-functions/number-totext/
type: function-explainer
program: Power Query
syntax: "Number.ToText(number as nullable number, optional format as nullable text, optional culture as nullable text) as nullable text"
date: 2025-12-03
updated: 2025-12-17
scores:
  popularity: 6
  difficulty: 2
  usefulness: 6
---

# Number.ToText – แปลงตัวเลขเป็นข้อความ

> แปลงตัวเลขเป็นข้อความพร้อมจัดรูปแบบ

## คำอธิบาย

Number.ToText จะแปลงค่าตัวเลขให้เป็น Text String โดยสามารถระบุ format เพื่อจัดรูปแบบการแสดงผลได้ (เช่น "N2" สำหรับทศนิยม 2 ตำแหน่ง หรือ "C" สำหรับสกุลเงิน) และระบุ culture ได้

## Syntax

```excel
Number.ToText(number as nullable number, optional format as nullable text, optional culture as nullable text) as nullable text
```

## Arguments

| Name | Required | Type | Default | Description |
| --- | --- | --- | --- | --- |
| number | Yes | number |  | ตัวเลขที่ต้องการแปลง |
| format | No | text | null | รูปแบบ (Format String) เช่น "N2", "C", "P" |
| culture | No | text | null | รหัสวัฒนธรรม (Culture Code) เช่น "en-US" |

## เคสการใช้งาน

### แสดงผลทศนิยม 2 ตำแหน่ง

แปลง 123.4567 ให้เป็น "123.46" เพื่อแสดงในรายงาน

### จัดรูปแบบสกุลเงิน

แปลง 1000 ให้เป็น "$1,000.00" หรือ "฿1,000.00"

## ตัวอย่าง

### 1. ตัวอย่างที่ 1: แปลงเป็นข้อความธรรมดา

```excel
Number.ToText(123)
```

**ผลลัพธ์:** `"123"`

แปลงตัวเลขเป็นข้อความโดยไม่มีการจัดรูปแบบพิเศษ

### 2. ตัวอย่างที่ 2: ทศนิยม 2 ตำแหน่ง

```excel
Number.ToText(123.456, "N2")
```

**ผลลัพธ์:** `"123.46"`

ใช้ Format "N2" เพื่อปัดเศษและแสดงทศนิยม 2 ตำแหน่ง

### 3. ตัวอย่างที่ 3: รูปแบบสกุลเงิน (ไทย)

```excel
Number.ToText(1000, "C", "th-TH")
```

**ผลลัพธ์:** `"฿1,000.00"`

ใช้ Format "C" และ Culture "th-TH" เพื่อแสดงเป็นสกุลเงินบาท

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

**Q: Format String มีอะไรบ้าง?**

N (Number), C (Currency), P (Percentage), E (Scientific), D (Decimal), X (Hexadecimal) และสามารถระบุจำนวนหลักต่อท้ายได้ เช่น N2, P1

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

- [Number.From – แปลงค่าเป็นตัวเลข](https://www.thepexcel.com/functions/power-query/number-functions/number-from/)
- [Date.ToText – แปลงวันที่เป็นข้อความ](https://www.thepexcel.com/functions/power-query/date-functions/date-totext/)
- text-format

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

- [Microsoft Learn: Number.ToText](https://learn.microsoft.com/en-us/powerquery-m/number-totext) _(Official Documentation)_
- [PowerQuery.how](https://powerquery.how/number-totext/) _(guide)_

---

_Source: [https://www.thepexcel.com/functions/power-query/number-functions/number-totext/](https://www.thepexcel.com/functions/power-query/number-functions/number-totext/)_
