---
title: Text.Insert – แทรกข้อความ
url: https://www.thepexcel.com/functions/power-query/text-functions/text-insert/
type: function-explainer
program: Power Query
syntax: "Text.Insert(text as text, offset as number, newText as text) as text"
date: 2025-12-03
updated: 2025-12-17
scores:
  popularity: 5
  difficulty: 3
  usefulness: 5
---

# Text.Insert – แทรกข้อความ

> แทรกข้อความ

## คำอธิบาย

แทรกข้อความเข้าไปในตำแหน่งที่กำหนด

## Syntax

```excel
Text.Insert(text as text, offset as number, newText as text) as text
```

## Arguments

| Name | Required | Type | Default | Description |
| --- | --- | --- | --- | --- |
| text | Yes | text |  | ข้อความหลัก |
| offset | Yes | number |  | ตำแหน่งที่จะแทรก (เริ่มที่ 0) |
| newText | Yes | text |  | ข้อความที่จะแทรก |

## ตัวอย่าง

### 1. แทรกคำ

```excel
Text.Insert("VLOOKUP", 1, "X")
```

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

แทรก X ที่ตำแหน่ง 1

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

- [Text.Replace – แทนที่ข้อความใน Power Query](https://www.thepexcel.com/functions/power-query/text-functions/text-replace/)
- [Text.Combine – รวมข้อความหลายรายการเป็นข้อความเดียว](https://www.thepexcel.com/functions/power-query/text-functions/text-combine/)
- [Text.ReplaceRange – แทนที่ข้อความในช่วงที่ระบุ](https://www.thepexcel.com/functions/power-query/text-functions/text-replacerange/)

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

- [PowerQuery.how](https://powerquery.how/text-insert/) _(guide)_

---

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