---
title: concat – ฟังก์ชันต่อข้อความหลาย ๆ ตัว
url: https://www.thepexcel.com/functions/n8n/string-functions/concat-n8n/
type: function-explainer
program: n8n
syntax: "concat(str1, str2, ...)"
date: 2025-12-16
updated: 2025-12-17
scores:
  popularity: 8
  difficulty: 2
  usefulness: 8
---

# concat – ฟังก์ชันต่อข้อความหลาย ๆ ตัว

> ต่อข้อความหลาย ๆ ตัว

## คำอธิบาย

concat ต่อข้อความหลาย ๆ ตัวเป็นข้อความเดียว ฟังก์ชันนี้มีประโยชน์ในการสร้างข้อความจากส่วนต่างๆ

## Syntax

```excel
concat(str1, str2, ...)
```

## Arguments

| Name | Required | Type | Default | Description |
| --- | --- | --- | --- | --- |
| str1 | Yes | string |  | ข้อความแรกที่ต้องการต่อ |
| str2 | No | string |  | ข้อความที่สอง (และต่อไปได้อีก) |

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

### Scenario 1

General usage

_เหมาะกับ:_ general

## ตัวอย่าง

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

```excel
{{ concat('Hello', ' ', 'World') }}
```

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

ต่อข้อความ 3 ส่วนเข้าด้วยกัน โดยใส่ช่องว่างคั่นกลาง

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

```excel
{{ concat($json.firstName, ' ', $json.lastName) }}
```

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

ต่อชื่อและนามสกุล

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

```excel
{{ concat('http://', $json.domain) }}
```

**ผลลัพธ์:** `http://example.com`

สร้าง URL โดยต่อโปรโตคอล http:// เข้ากับชื่อโดเมน

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

⚠️ ฟังก์ชัน concat() ใช้สำหรับจัดการข้อมูล

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

**Q: ใช้ concat() เมื่อไหร่?**

ใช้ในการจัดการข้อมูลตามที่อธิบายไว้

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

- [split – ฟังก์ชันแยกข้อความจากตัวคั่น](https://www.thepexcel.com/functions/n8n/string-functions/split-n8n/)
- [join – แปลงอาร์เรย์เป็นข้อความด้วยตัวคั่น](https://www.thepexcel.com/functions/n8n/array-functions/join-n8n/)
- to-string-n8n

---

_Source: [https://www.thepexcel.com/functions/n8n/string-functions/concat-n8n/](https://www.thepexcel.com/functions/n8n/string-functions/concat-n8n/)_
