Joining Text: & and CONCAT
About this lesson
The ampersand joins pieces of text end to end. So a first name, a space in quotation marks and a last name become one full name.
- join cells and words together with the ampersand.
- use CONCAT for a list of pieces and say when & is simpler.
The idea
There are three ways to join text in Excel, and they do the same thing. The ampersand is the shortest. It reads in the order the result comes out. CONCAT is the function form. CONCATENATE is the old name for CONCAT. It is kept for old files and not worth learning now.
Whichever you use, joining adds nothing you did not ask for. No space appears between two names unless you put one there in quotation marks. That is the mistake everybody makes once. The less obvious point is what the result is. Joining always produces text. So two numbers joined together are no longer numbers. They will not match either number in a lookup, will not sort in numeric order, and will not add up. Join for display. Keep the original columns for anything that has to compute.
The mistake to watch for
Two mistakes, one obvious and one not. Forgetting the space, so two names run together, is caught the first time you look. The quieter one is joining numbers. The result is text. It will not add up, will not sort in numeric order, and will not match either number in a lookup. Join for display, and keep the original columns for anything that has to compute.
Read more about this
This lesson needs JavaScript to run. Everything below is the lesson in full, but you cannot type into the grid or be marked.
The ampersand (&) joins pieces of text end to end.
In D2, type:
=A2&" "&B2
Remember: the space is text, so it goes in quotes.
| Row | A | B | C | D | E | F | G |
|---|---|---|---|---|---|---|---|
| 1 | First | Last | Town | Label | |||
| 2 | Rosa | Marchetti | Deal | ||||
| 3 | Elliot | Nwankwo | Frome | ||||
| 4 | Sana | Idris | Rhyl | ||||
| 5 | |||||||
| 6 | |||||||
| 7 | |||||||
| 8 |
Every step
-
The ampersand (&) joins pieces of text end to end. In
D2, type:=A2&" "&B2. Remember: the space is text, so it goes in quotes. -
Somebody left the space out. Read
=A3&B3and say what it returns. -
CONCATdoes the same job as a function. InD3, joinA3, a space andB3withCONCAT. Shape:=CONCAT(text, text, text). -
In
D4, build a postal label fromA4,B4andC4. Shape:=text&" "&text&", "&text. The comma and its space go inside one pair of quotes. -
Joining makes one new value. Read
=LEN(A2&B2)and say what it returns.