Text Formulas

How to Combine Text From Cells in Excel

Join text from several cells in Excel with the & operator, CONCAT or TEXTJOIN, and keep dates, numbers and blank cells from spoiling the result.

On this page
  1. Join cells with the & operator
  2. Use CONCAT for a list of cells
  3. Use TEXTJOIN to add a separator and skip blanks
  4. Avoid doubled spaces from blank cells
  5. Watch out for dates and numbers
  6. Put each value on its own line
  7. Lock the separator when you copy the formula
  8. Join only when a condition is met
  9. Fill the formula down and check a few rows

Join cells with the & operator

The simplest way is the ampersand. =A2&" "&B2 joins the text in A2 and B2 and puts a space between them. The quotation marks around the space matter, because they tell Excel to add a literal space. Put any separator in quotes. With Smith in A2 and Jane in B2, =A2&", "&B2 returns “Smith, Jane”.

Use CONCAT for a list of cells

CONCAT accepts single cells as well as ranges, so =CONCAT(A2:C2) joins all three cells with nothing between them. To add a separator, give it as its own argument: =CONCAT(A2," ",B2). CONCAT needs Excel 2019 or Microsoft 365. Older guides use CONCATENATE, which still works, but Microsoft has replaced it with CONCAT.

Use TEXTJOIN to add a separator and skip blanks

TEXTJOIN takes three things in order: the separator, TRUE or FALSE for whether to skip empty cells, and the cells to join.

=TEXTJOIN(", ",TRUE,A2:A6)

With TRUE in the second position, blank cells are skipped. That avoids doubled separators such as “Red, , Blue”. TEXTJOIN works on a whole range, so it suits a column of values. It also needs Excel 2019 or Microsoft 365. Google Sheets has TEXTJOIN too.

Avoid doubled spaces from blank cells

With &, a blank middle cell leaves two spaces side by side. If B2 is blank, =A2&" "&B2&" "&C2 returns “Jane Smith” with a double space. Wrapping the formula in TRIM removes the extra space:

=TRIM(A2&" "&B2&" "&C2)

TRIM only fixes spaces, though. If you need commas between values and some cells are blank, TEXTJOIN with TRUE is the cleaner choice.

Watch out for dates and numbers

Joining a date with & shows its serial number, a five-digit number such as 46350, instead of the date you see in the cell. Use TEXT to set the format:

=A2&" "&TEXT(B2,"mm/dd/yyyy")

A number formatted as currency has the same problem. It joins as its plain value, such as 1250.5, not $1,250.50. Use TEXT(B2,"$#,##0.00") to keep the format.

Put each value on its own line

Use CHAR(10), which is a line break, as the separator:

=A2&CHAR(10)&B2

Turn on Wrap Text for the cell, from the Home tab, or the line break won’t show and the values will run together on one line.

Lock the separator when you copy the formula

If the separator sits in its own cell, such as D1, a formula copied down needs $D$1 so it keeps pointing at that cell:

=A2&$D$1&B2

For the full rules on when to use the dollar signs, see how to lock cell reference in excel.

Join only when a condition is met

To join values only when a cell has something in it, add an IF test around the join. How to use if function in excel covers the syntax.

Fill the formula down and check a few rows

Once the first row gives the right result, fill the formula down by dragging the fill handle or double-clicking it. Check a few rows that have blanks, dates or long text, since those are where joins most often go wrong.

The complete guide to text formulas

Text Formulas in Excel Explained
Read the guide

Keep exploring

Guides from other topics

All topics →

How to Look Up Data in Excel

How lookups work in Excel, with VLOOKUP, XLOOKUP and INDEX with MATCH, how to set up your data, and how to choose the right function for the job.

Lookups 3 min read