Gabungkan teks bersama-sama
=CONCATENATE(text1, text2, [text3], ...)
| Parameter | Deskripsi |
|---|---|
text1 |
The first text value to join together. |
text2 |
The second text value to join together. |
text3 |
[optional] The third text value to join together. |
The CONCATENATE function accepts multiple arguments called text1, text2, text3, etc. up to 30 total. Values may be supplied as cell references, and ha
=CONCATENATE(A1," ",B1)
The result of this formula is the same as using the concatenation operator (&) manually like this:
=A1&" "&B1 // manual concatenation
When concatenating numeric values like dates, times, percentages, etc., number formatting will be lost. For example, with the date 1-Jul-2021 in cell
=CONCATENATE("Date: ",A1) // returns "Date: 44378"
To apply formatting during concatenation use the TEXT function :
=CONCATENATE("The date is ",TEXT(A1,"mmmm d")) // "Date: July 1"
The CONCATENATE function will not handle ranges:
=CONCATENATE(A1:D1) // does not work