ID EN
#Text

CONCAT

Excel Functions 🇮🇩 Bahasa Indonesia

Gabungkan nilai teks tanpa pembatas

Syntax

EXCEL
=CONCAT(text1, [text2], ...)

Arguments

Parameter Deskripsi
text1 First text value, cell reference, or range.
text2 [optional] Second text value, cell reference, or range.

Return Value

Hasil teks gabungan

Details

Fungsi CONCAT menggabungkan (menggabungkan) nilai yang diberikan sebagai referensi atau konstanta. Berbeda dengan fungsi CONCATENATE (yang digantikan oleh CONCAT), CONCAT akan menerima rentang sel untuk digabungkan, selain referensi sel individual. Fungsi CONCAT secara otomatis mengabaikan sel kosong. Fungsi CONCAT menerima beberapa argumen yang disebut text1, text2, text3, dll. hingga total 255. Argumen dapat diberikan sebagai referensi sel, rentang, dan string teks berkode keras. Hanya argumen pertama yang diperlukan, dan nilai digabungkan sesuai urutan kemunculannya. Misalnya, untuk menggabungkan nilai A1 dan B1, dipisahkan oleh spasi, Anda dapat mengkonfigurasi CONCAT seperti ini: Ini sama dengan menggunakan operator penggabungan (&) secara manual seperti ini: Saat menggabungkan angka, format angka akan hilang.

Contoh

Example 1

The CONCAT function accepts multiple arguments called text1, text2, text3, etc. up to 255 total. Arguments may be supplied as cell references, ranges,

EXCEL
=CONCAT(A1," ",B1)
Example 2

This is equivalent to using the concatenation operator (&) manually like this:

EXCEL
=A1&" "&B1 // manual concatenation
Example 3

When concatenating numbers, number formatting is lost. For example, with the date 1-Jul-2021 in cell A1, the date reverts to a serial number:

EXCEL
=CONCAT("The date is ",A1) // returns "The date is 44378"
Example 4

Use the TEXT function to apply formatting during concatenation:

EXCEL
=CONCAT("The date is ",TEXT(A1,"mmmm d")) // "The date is July 1"
Example 5

The main benefit of CONCAT over the older CONCATENATION function is the ability to concatenate ranges. To concatenate the values in A1, B1, and C1, yo

EXCEL
=CONCAT(A1:C1)

See Also

CONCATENATE TEXTJOIN