---
title: Text.At – ดึงอักขระที่ตำแหน่งที่ระบุ
url: https://www.thepexcel.com/functions/power-query/text-functions/text-at/
type: function-explainer
program: Power Query
syntax: "Text.At(text as nullable text, index as number) as nullable text"
date: 2025-12-04
updated: 2025-12-17
scores:
  popularity: 5
  difficulty: 3
  usefulness: 5
---

# Text.At – ดึงอักขระที่ตำแหน่งที่ระบุ

> ดึงอักขระที่ตำแหน่งที่ระบุ

## คำอธิบาย

Text.At ใช้สำหรับดึงอักขระตัวเดียวที่ตำแหน่งที่ระบุในข้อความ โดยใช้การนับ zero-based index ที่ตำแหน่ง 0 คือตัวแรก ตำแหน่ง 1 คือตัวที่สอง เป็นต้น

## Syntax

```excel
Text.At(text as nullable text, index as number) as nullable text
```

## Arguments

| Name | Required | Type | Default | Description |
| --- | --- | --- | --- | --- |
| text | Yes | nullable text |  | ข้อความที่ต้องการค้นหาอักขระ |
| index | Yes | number |  | ตำแหน่ง zero-based ของอักขระที่ต้องการดึง (0 = ตัวแรก) |

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

### ดึงตัวแรกของชื่อสำหรับสร้าง initials

ดึงตัวแรกของชื่อสำหรับสร้าง initials

### ตรวจสอบอักขระเฉพาะในข้อความ

ตรวจสอบอักขระเฉพาะในข้อความ

### แยกส่วนของรหัส ID ที่มีตำแหน่งคงที่

แยกส่วนของรหัส ID ที่มีตำแหน่งคงที่

## ตัวอย่าง

### 1. ดึงตัวแรก

```excel
Text.At("Hello", 0)
```

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

ตำแหน่ง 0 คือตัวแรก 'H'

### 2. ดึงตัวที่สี่

```excel
Text.At("Hello, World", 4)
```

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

ตำแหน่ง 4 คือตัวที่ห้า 'o'

### 3. ดึงอักขระจาก Power Query

```excel
Text.At("Power Query", 6)
```

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

ตำแหน่ง 6 คือตัว 'Q' ในคำ 'Query'

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

- [Text.Start – ดึงอักขระจากตัวแรกของข้อความ](https://www.thepexcel.com/functions/power-query/text-functions/text-start/)
- [Text.End – ดึงอักขระจากท้ายข้อความ](https://www.thepexcel.com/functions/power-query/text-functions/text-end/)
- [Text.Middle – ดึงข้อความจากตรงกลาง](https://www.thepexcel.com/functions/power-query/text-functions/text-middle/)
- [Text.Range – ดึงช่วงของข้อความ](https://www.thepexcel.com/functions/power-query/text-functions/text-range/)

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

- [Microsoft Learn: Text.At](https://learn.microsoft.com/en-us/powerquery-m/text-at) _(Official Documentation)_

---

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