Join text with &, CONCAT and TEXTJOIN

Text and cleaning · About 6 minutes

Join text with &, CONCAT and TEXTJOIN

The & sign joins text end to end. =A2&" "&B2 reads as "A2, then a space, then B2". The space goes in quotes, because it is text you type yourself.

CONCAT does the same job with commas between the parts: =CONCAT(A2," ",B2). Use whichever you find easier to read. In Google Sheets, CONCAT joins only two parts, so use CONCATENATE or & there.

TEXTJOIN puts the same separator between every part. =TEXTJOIN(", ",TRUE,A2:C2) reads as "join A2 to C2 with a comma and a space, and skip any empty cells". TRUE is the part that skips the empty ones.

Part of Plus

Free during our founding launch: sign in to unlock this lesson's exercises, the timed practice sets and the rest of Plus. The free lessons stay free, with no account needed.

What CONCATENATE, CONCAT and TEXTJOIN does

CONCATENATE, CONCAT and TEXTJOIN join text from several cells into one, like a first name and a last name into a full name. The & sign does the same job between two parts. Anything you add yourself, like a space or a comma, goes in quotes.

Joining saves retyping lists by hand. It builds full names, addresses, labels and IDs from the parts you already have, and the joined cell updates when a part changes.

How to write CONCATENATE, CONCAT and TEXTJOIN

=CONCATENATE(text1, [text2], ...)

text1
The first cell or piece of text to join.
text2, ...
More parts, joined in the order you list them. The square brackets mean they are optional.

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

text1, text2, ...
The parts to join, like CONCATENATE. In Excel it also takes a whole range, like A2:C2.

=TEXTJOIN(delimiter, ignore_empty, text1, [text2], ...)

delimiter
The separator to put between every part, in quotes, like " " for a space or ", " for a comma and a space.
ignore_empty
TRUE skips empty cells, so you don't get two separators in a row. FALSE keeps them.
text1, ...
The cells or ranges to join.

CONCATENATE, CONCAT and TEXTJOIN worked example

Some people have a middle name and some don't. In D2, build the full name from A2 to C2, then fill down to D5.

Some people have a middle name and some don't. In D2, build the full name from A2 to C2, then fill down to D5.
ABCD
1FirstMiddleLastFull name
2MariaJoseLopezMaria Jose Lopez
3TomHaleTom Hale
4AishaNoorKhanAisha Noor Khan
5BenOrtizBen Ortiz
D2=TEXTJOIN(" ",TRUE,A2:C2)Join A2 to C2 with a space between each part, and skip any empty cell: the first row shows Maria Jose Lopez. Tom has no middle name, so his row shows Tom Hale, with one space, not two.

Common CONCATENATE, CONCAT and TEXTJOIN mistakes

The joined names run together

Joining adds nothing between the parts. Add the space yourself as its own part in quotes, like " ", between the first name and the last name.

CONCAT stops after two parts

In Google Sheets, CONCAT joins only two values. Use CONCATENATE, TEXTJOIN or the & sign there when you have three or more parts.

A number or date loses its format

Joining uses the stored value, so a date can turn into a long number. Wrap it in TEXT with a format, like TEXT(B2,"mmm d"), before you join it.

&, CONCATENATE, CONCAT or TEXTJOIN?

For two or three parts, & or CONCATENATE is enough, and both work in every version of Excel and in Google Sheets. CONCAT is the newer name in Excel 2019 and later and Microsoft 365, where it also accepts a range.

Use TEXTJOIN when the same separator goes between many parts, or when some cells may be empty. It is in Excel 2019 and later, Microsoft 365 and Google Sheets.

Questions people ask

How do I combine first and last name with a space?

Use =A2&" "&B2. The space in quotes goes between the names.

What is the difference between CONCAT and CONCATENATE?

CONCAT is the newer one and also takes ranges like A2:C2. CONCATENATE still works for older files. In Google Sheets, CONCAT joins only two values, so use CONCATENATE or & there.

How do I put the last name first with a comma?

Use =B2&", "&A2.

How do I combine cells and skip blanks?

Use TEXTJOIN with TRUE: =TEXTJOIN(", ",TRUE,A2:D2). It's in Excel 2019 and later and Google Sheets.

Why is there no space between the names?

& joins exactly what you give it. Add a space in quotes between the parts: =A2&" "&B2.