---
title: Currency.From – แปลงเป็นสกุลเงิน
url: https://www.thepexcel.com/functions/power-query/number-functions/currency-from/
type: function-explainer
program: Power Query
syntax: currency_from(value as any) as any
date: 2025-12-12
updated: 2025-12-17
scores:
  popularity: 5
  difficulty: 3
  usefulness: 5
---

# Currency.From – แปลงเป็นสกุลเงิน

> แปลงเป็นสกุลเงิน

## คำอธิบาย

Currency.From แปลงค่าตัวเลขเป็นค่าสกุลเงิน (currency)

## Syntax

```excel
currency_from(value as any) as any
```

## Arguments

| Name | Required | Type | Default | Description |
| --- | --- | --- | --- | --- |
| value | Yes | any |  | ค่าที่ต้องการประมวลผล |

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

### แปลงข้อมูลการเงิน

แปลงจำนวนเงินจากข้อความเป็น currency สำหรับการคำนวณที่แม่นยำ

_เหมาะกับ:_ financial-conversion

### จัดการข้อมูลค่าเงิน

ใช้สำหรับข้อมูลค่าเงินที่ต้องการความแม่นยำ

_เหมาะกับ:_ currency-data

### การรายงานทางการเงิน

แปลงค่าสำหรับการรายงานและวิเคราะห์ทางการเงิน

_เหมาะกับ:_ financial-reporting

## ตัวอย่าง

### 1. ตัวอย่างที่ 1

```excel
currency_from(data)
```

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

การใช้งานพื้นฐาน

### 2. ตัวอย่างที่ 2

```excel
currency_from(#date(2025,12,12))
```

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

ใช้กับวันที่

### 3. ตัวอย่างที่ 3

```excel
let result = currency_from(today) in result
```

**ผลลัพธ์:** `ผลลัพธ์สุดท้าย`

ใช้ในสูตร let...in

## หมายเหตุเพิ่มเติม

⚠️ ฟังก์ชันนี้ใช้สำหรับการตรวจสอบวันที่

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

**Q: ฟังก์ชันนี้ใช้สำหรับอะไร**

Currency.From แปลงค่าตัวเลขเป็นค่าสกุลเงิน (currency)

**Q: ข้อมูลส่งเข้าจำเป็นต้องมีรูปแบบไหน**

ข้อมูลต้องเป็นค่าวันที่ (date) หรือวันที่และเวลา (datetime)

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

- [Microsoft Learn: Power Query M](https://learn.microsoft.com/en-us/powerquery-m/currency-from) _(documentation)_

---

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