How to join text in Excel with CONCAT and CONCATENATE
Use CONCAT in Excel to join values into a single text string. CONCATENATE also joins individual values and remains available for compatibility with older workbooks. Both functions need you to specify any spaces or separators.
Join individual cells and ranges
Enter Lorem in A2, Ipsum in B2, and Dolor in C2. Enter the formulas below in separate cells outside that range. The first two return LoremIpsumDolor. CONCAT accepts A2:C2 as one range. With CONCATENATE, list the cells individually. The final formula adds spaces to give Lorem Ipsum Dolor.
=CONCAT(A2:C2)
=CONCATENATE(A2,B2,C2)
=CONCAT(A2," ",B2," ",C2)
If Excel rejects the separator between arguments, use the list separator in your regional settings.
Microsoft’s CONCAT function reference
Microsoft’s CONCATENATE function reference
Insert words or punctuation
In a separate row, put Name in A4 and John in B4. Both formulas return My Name is John! The & operator is convenient for joining a few pieces. Spaces inside quotation marks become part of the result.
=CONCAT("My ",A4," is ",B4,"!")
="My "&A4&" is "&B4&"!"
Use one separator and skip blank cells
To repeat the same separator between the values in A2:C2, use TEXTJOIN. The formula below returns Lorem / Ipsum / Dolor. Clear B2 and it returns Lorem / Dolor because blank cells are skipped. The first argument is the delimiter and the second controls whether blanks are skipped.
=TEXTJOIN(" / ",TRUE,A2:C2)
Microsoft’s TEXTJOIN function reference
Preserve leading zeros and date formatting
Enter the number 7 in D2. Format it as five digits with TEXT before joining to get ID-00007. This works when you know how many digits the code should have. If leading zeros have already been lost and you do not know the original length, the original code cannot be reconstructed.
="ID-"&TEXT(D2,"00000")
Joining a date directly can produce its serial number instead of the displayed date. Give TEXT the date format you want. Date-format codes can vary with Excel’s display language. Check the Custom category in Format Cells for the codes your version uses.




