Concatenate in Excel: TEXTJOIN, CONCAT and the & Operator Compared

Concatenate in Excel: TEXTJOIN, CONCAT and the & Operator Compared

Source: TEXTJOIN function — Microsoft Support

Splitting text gets all the attention, but the reverse job, joining first name to last name, city to country, parts of an ID into a code, is just as constant. Excel has accumulated three generations of tools for it: the old CONCATENATE, the ampersand operator, and the modern pair CONCAT and TEXTJOIN. They overlap, but they are not interchangeable, and picking the right one is the difference between a formula you maintain and a formula you dread.

The ampersand: simple, visible, and still the everyday choice

=A2 & " " & B2 joins first and last name with a space. The & operator needs no function name, reads left to right like the sentence it builds, and handles anything: text, cell references, literal punctuation in quotes. Its cost shows at scale: joining twelve columns means eleven ampersands and eleven quoted separators typed by hand, and one missed quote breaks the line. For two or three pieces, reach for the ampersand without guilt. Beyond that, count your separators.

CONCAT: the renamed original

=CONCAT(A2, " ", B2) does the same job with commas instead of ampersands, and unlike the retired CONCATENATE it accepts ranges: =CONCAT(A2:A10) glues the whole column end to end. That range support is the upgrade, but note what it does not do: no separator sneaks in between the range's cells. CONCAT of a range is a solid block of characters. When you need commas or spaces between the pieces, that is the next function's entire purpose.

ToolSeparators between itemsSkips empty cellsBest for
& operatorTyped each timeNoTwo or three pieces
CONCATNoNoGluing ranges solid
TEXTJOINOne, defined onceYes, optionallyLists, addresses, CSV lines

TEXTJOIN: the one you will actually use

=TEXTJOIN(", ", TRUE, A2:D2) joins the row with comma-space between pieces, and the TRUE argument tells it to skip empty cells, which is the killer feature. An address with a missing apartment number becomes "12 Nile St, Cairo" instead of "12 Nile St, , Cairo" with the double comma every ampersand formula produces. The delimiter is typed once, the range can be huge, and mixing ranges with single cells is fine: =TEXTJOIN("-", TRUE, A2, C2:C5) builds product codes from parts. If you learn one joining tool, learn this one.

Numbers, dates and the formatting surprise

Joining pulls the raw value of a cell, not its displayed text. A date showing 15/03/2026 joins as its serial number, something like 46096, and a percentage joins as 0.15. The fix is wrapping the piece in TEXT with an explicit format: =A2 & " - " & TEXT(B2,"dd/mm/yyyy"). The same applies to leading zeros in IDs: TEXT(C2,"00000") keeps a five-digit code five digits long. Any time a joined result shows a strange long number where a date or code should be, TEXT is the missing wrapper.

No formula at all: Flash Fill for one-offs

For a one-time cleanup, type the joined result for the first row exactly as you want it, press Ctrl+E on the next cell, and Flash Fill repeats the pattern down the column as plain text. It handles reformatting in the same gesture, so "Hassan, Mohamed" from two columns is one example away. The trade-offs and the forcing shortcut are covered in Flash Fill in Excel (Ctrl+E): splitting and joining text without formulas. Living data gets formulas; a fixed list gets Flash Fill and forgets the whole problem.

The finishing step everyone skips

A joined column is a formula column. Delete the source columns and every result collapses to #REF!. When the join is final, convert it: select the column, Ctrl+C, Paste Special, Values, in place. The reverse direction of this work, pulling pieces back out of a joined string, is its own craft with FIND, LEFT and MID, covered in extracting text before and after a character. Join with formulas, freeze with values, and extract with the text functions when the data changes its mind.

A one-minute check before you rely on the column

  • Few pieces or many: & and CONCAT, or TEXTJOIN?
  • Are empty cells being skipped where blanks are possible?
  • Did dates, percentages and IDs get a TEXT wrapper?
  • Is the result pasted as values before sources are deleted?
  • Would Flash Fill have finished a one-off in ten seconds?

Match the tool to the shape of the job and joining text stops being the fiddly part of cleanup. TEXTJOIN for the many, the ampersand for the few, Flash Fill for the once, and values paste at the end, always.

المصدر: Microsoft Support: CONCAT function

If you invoice clients or run a small shop, the ready-made Excel sales invoice template and bookkeeping ledger saves building the file from scratch: Excel invoice and bookkeeping template - a product in our store.

المصدر: Microsoft Support: TEXTJOIN function

The same job, three formulas

MethodFormulaSkips blanks?
Ampersand=A2&" "&B2No
CONCAT=CONCAT(A2:B2)No
TEXTJOIN=TEXTJOIN(" ",TRUE,A2:B2)Yes

With A2 = "Ahmed" and B2 empty, the first two return "Ahmed " with a trailing space, and TEXTJOIN returns "Ahmed". That trailing space is enough to break a VLOOKUP later, which is why TEXTJOIN is the better default when any cell in the range might be empty.

Adding a delimiter between many columns

For a row of eight columns, the ampersand version needs fifteen quotes and separators. TEXTJOIN needs one formula: =TEXTJOIN(", ",TRUE,A2:H2). It is shorter, and much harder to get wrong when someone edits the sheet six months later.

Where TEXTJOIN beats the ampersand

The ampersand is fine for two or three cells. It stops being fine when you do not know how many values you have, or when some of them are blank. TEXTJOIN takes a delimiter once and a flag that skips empty cells, so a list of eight names with three blanks still produces a clean sentence with no stray commas. It also works across a range rather than one cell at a time, which means the formula does not need editing when a row is added.

One last habit: before you share the sheet, put your expected number for each column in a spare cell and compare it with what the formula returns. The gap is the only part worth your time; everything else is reassurance.

Get new guides by email
One short email when a new guide is published. No spam, and you can leave anytime.
Your address is only used for these emails.

Last updated: 5 December 2026

Comments

Popular posts from this blog

Learn to Code From Zero: A 90-Day Plan That Survives a Full-Time Job

How to Read Your Payslip: Gross, Net, Tax Codes and the YTD Column

iPhone Storage Full? What to Delete First (And What Never to Touch)