---
title: Guid.From – สร้าง GUID จากข้อความ
url: https://www.thepexcel.com/functions/power-query/text-functions/guid-from/
type: function-explainer
program: Power Query
syntax: Guid.From(value as nullable text) as nullable text
date: 2025-12-04
updated: 2025-12-17
scores:
  popularity: 5
  difficulty: 3
  usefulness: 5
---

# Guid.From – สร้าง GUID จากข้อความ

> แปลงข้อความเป็น GUID

## คำอธิบาย

Guid.From ใช้สำหรับแปลงข้อความเป็น GUID ยอมรับรูปแบบ GUID หลายแบบ เช่น ที่มีเครื่องหมายขีด วงเล็บ หรือไม่มี

## Syntax

```excel
Guid.From(value as nullable text) as nullable text
```

## Arguments

| Name | Required | Type | Default | Description |
| --- | --- | --- | --- | --- |
| value | Yes | nullable text |  | ข้อความ GUID ในรูปแบบต่างๆ |

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

### แปลงข้อความ GUID จากฐานข้อมูล

แปลงข้อความ GUID จากฐานข้อมูล

### ตรวจสอบรูปแบบ GUID

ตรวจสอบรูปแบบ GUID

### แปลง GUID จากรูปแบบต่างๆ เป็นรูปแบบมาตรฐาน

แปลง GUID จากรูปแบบต่างๆ เป็นรูปแบบมาตรฐาน

## ตัวอย่าง

### 1. GUID แบบ 32 หลัก

```excel
Guid.From("05FE1DADC8C24F3BA4C2D194116B4967")
```

**ผลลัพธ์:** `05fe1dad-c8c2-4f3b-a4c2-d194116b4967`

แปลง 32 หลักตัวเลขเป็น GUID

### 2. GUID แบบมีเครื่องหมายขีด

```excel
Guid.From("05FE1DAD-C8C2-4F3B-A4C2-D194116B4967")
```

**ผลลัพธ์:** `05fe1dad-c8c2-4f3b-a4c2-d194116b4967`

แปลง GUID พร้อมเครื่องหมายขีด

### 3. GUID พร้อมวงเล็บปีกกา

```excel
Guid.From("{05FE1DAD-C8C2-4F3B-A4C2-D194116B4967}")
```

**ผลลัพธ์:** `05fe1dad-c8c2-4f3b-a4c2-d194116b4967`

แปลง GUID ที่มีวงเล็บปีกกา

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

- [Text.NewGuid – สร้าง GUID ใหม่](https://www.thepexcel.com/functions/power-query/text-functions/text-newguid/)

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

- [Microsoft Learn: Guid.From](https://learn.microsoft.com/en-us/powerquery-m/guid-from) _(Official Documentation)_

---

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