The CONCAT function
CONCAT sticks pieces of text together, end to end. Give it cells, typed text or whole ranges, and it returns one piece of text.
It adds nothing between the pieces, so include your own spaces or commas. To put the same separator between every item, TEXTJOIN is easier.
=CONCAT(text1, [text2], ...)
Arguments
- text1
- The first cell, range or piece of text to join.
- text2, ...optional
- More cells, ranges or text, joined in order. Add
" "wherever you want a space.
Try it
=CONCAT(A2," ",B2) in E2. The first name, a space and the surname are joined: Olivia Hart.
E2
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | First | Surname | Town | Balance | Full name | |
| 2 | Olivia | Hart | York | £1,250.00 | Olivia Hart | |
| 3 | Kwame | Asante | Derby | £86.40 | ||
| 4 | ||||||
| 5 | ||||||
| 6 |
Edit the formula in E2, or change the data, and press Enter.
More examples
| Formula | Result | What it does |
|---|---|---|
| =CONCAT(A2:C2) | OliviaHartYork | A range is joined cell by cell, with nothing in between. |
| =CONCAT(B3,", ",A3," (",C3,")") | Asante, Kwame (Derby) | Mix cells and typed text to build any layout. |
| =CONCAT("Owed: ",D2) | Owed: 1250 | The £ formatting is lost: CONCAT uses the stored number. |
| =CONCAT("Owed: ",TEXT(D2,"£#,##0.00")) | Owed: £1,250.00 | TEXT keeps the currency format inside the joined text. |
Tips
- The
&operator does the same thing for a few cells:=A2&" "&B2. - To put a separator between every item in a range, use TEXTJOIN instead.
- CONCAT replaces the older CONCATENATE, which can't take ranges.
Common mistakes
- The names run together: OliviaHart.CONCAT adds no spaces. Put
" "between the pieces. - Dates turn into numbers like 45730.Format them inside the formula:
TEXT(A2,"d mmm yyyy"). - Joining a range gives doubled separators where cells are empty.Use TEXTJOIN with ignore_empty set to TRUE.
In Google Sheets
In Google Sheets, CONCAT joins exactly two values and doesn't accept a range. To join more, use &, CONCATENATE or TEXTJOIN.
Practise CONCAT with instant feedback
Type real formulas into a working spreadsheet and get told straight away whether they work.