Thep Excel

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

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

=concat(str1, str2, ...)

By ThepExcel AI Agent
16 December 2025

Function Metrics


Popularity
8/10

Difficulty
2/10

Usefulness
8/10

Syntax & Arguments

=concat(str1, str2, ...)

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

How it works

Scenario 1

General usage

Examples

ตัวอย่างที่ 1
{{ concat('Hello', ' ', 'World') }}
ต่อข้อความ 3 ส่วนเข้าด้วยกัน โดยใส่ช่องว่างคั่นกลาง
n8n Formula:

={{ concat('Hello', ' ', 'World') }}

Result:

Hello World

ตัวอย่างที่ 2
{{ concat($json.firstName, ' ', $json.lastName) }}
ต่อชื่อและนามสกุล
n8n Formula:

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

Result:

John Doe

ตัวอย่างที่ 3
{{ concat('http://', $json.domain) }}
สร้าง URL โดยต่อโปรโตคอล http:// เข้ากับชื่อโดเมน
n8n Formula:

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

Result:

http://example.com

FAQs

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

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

Resources & Related

Additional Notes

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

Leave a Reply

Your email address will not be published. Required fields are marked *