Excel functions · Text
CONCAT function in Excel
CONCAT joins text from several cells, ranges or typed strings into one string, with nothing added in between. It replaces CONCATENATE and, unlike it, accepts whole ranges such as A2:C2; for spaces or commas between pieces, add them yourself or use TEXTJOIN.
Last reviewed
Syntax
=CONCAT(text1, [text2], ...)- text1required
- The first text, cell or range to join.
- text2, ...optional
- More text, cells or ranges, up to 253 in all.
- The & operator does the same for single cells: =A2&" "&C2.
- CONCATENATE still works for compatibility but doesn't accept ranges.
- Numbers lose their formatting when joined: use TEXT(B2, "0.00") to keep it.
Which versions have CONCAT
Microsoft 365, Excel for the web, and Excel 2019 or later (Windows and Mac). Not in Excel 2016.
| Version | Has it |
|---|---|
| Microsoft 365 (Windows and Mac) | Yes |
| Excel for the web | Yes |
| Excel 2024 | Yes |
| Excel 2021 | Yes |
| Excel 2019 | Yes |
| Excel 2016 | No |
Google Sheets
Google Sheets has CONCAT, but it joins exactly two values. For more pieces use CONCATENATE, TEXTJOIN or the & operator.
Examples
The examples use this sample sheet.
| Row | A | B | C | D |
|---|---|---|---|---|
| 1 | First | Middle | Last | City |
| 2 | Maria | J. | Lopez | Austin |
| 3 | Sam | Chen | Denver |
B3 is empty: Sam has no middle name.
1.First and last name with a space
=CONCAT(A2, " ", C2)Result: Maria Lopez
The space is a third piece you type yourself.
2.Join a range
=CONCAT(A2:C2)Result: MariaJ.Lopez
CONCAT adds no delimiter, which is why TEXTJOIN is better for names.
3.Text around a value
=CONCAT("Order for ", A3, " ", C3)Result: Order for Sam Chen
Mix typed text and cells in any order.
Common errors and fixes
| Error | Why it happens | Fix |
|---|---|---|
| #VALUE! | The result is longer than 32,767 characters. | Join fewer cells. |
| #NAME? | Your Excel doesn't have CONCAT (Excel 2016 or older). | Use CONCATENATE or &. |
Do it with GPTExcel
Skip writing CONCAT by hand
Upload your Excel or CSV file to Chat and ask in plain English. GPTExcel writes the formula for your file and your version of Excel or Google Sheets.
Build an ID for each row from the region code and order number, like N-1001.
Done. I used CONCAT on your sheet and checked the results against your data.
- Written for your platform and version
- Checked against your actual data
- Newest functions looked up in official docs
CONCAT questions
- What's the difference between CONCAT and CONCATENATE?
- CONCAT accepts ranges such as A2:C2; CONCATENATE needs every cell listed one by one. CONCATENATE is kept for older files, and both add nothing between the pieces.
- Why does CONCAT only take two values in Google Sheets?
- Google Sheets' CONCAT is defined with two arguments. Use CONCATENATE, TEXTJOIN or & in Sheets to join more than two.
Skip the formula hunt
Upload a spreadsheet and ask in plain English. Free plan, no credit card.
Start free