The Excel CONCATENATE Function

Basic Description

The Excel CONCATENATE function joins together a series of supplied text strings or other values, into one combined text string.

The syntax of the function is:

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

where the text arguments are a set of one or more text strings or other values that you want to join together.

In current versions of Excel (Excel 2007 and later), you can supply up to 255 text arguments to the Concatenate function, but in Excel 2003, the function can only accept up to 30 text arguments.

Using the & Operator to Concatenate

Note that you can also use the & operator to concatenate in Excel.

This is described in the Excel String Concatenation page.

Concatenate Function Examples

In column D of the following example spreadsheet, the Concatenate function is used to join together the text strings in columns A-C.

 Formulas:
 ABCD
1ForenameSurnameDOBCombined Details
2JaneSMITH =CONCATENATE( A2, " ", B2 )
3JohnDAY =CONCATENATE( A3, " ", B3 )
4PaulJONES02/02/87=CONCATENATE( A4, " ", B4, ", DOB: ", TEXT( C4, "mm/dd/yy" ) )
 Results:
 ABCD
1ForenameSurnameDOBCombined Details
2JaneSMITH Jane SMITH
3JohnDAY John DAY
4PaulJONES02/02/87Paul JONES, DOB: 02/02/87

Note that, in the examples above:


Further information and examples of the Excel Concatenate function are provided on the Microsoft Office website.


Concatenate Function Problem

Common Problem - Dates & Times

One of the most common Concatenate problems encountered by Excel users is that the function result shows a date or time as a number, as shown below:

 Formulas:
 AB
102/02/2016=CONCATENATE( "The Date is: ", A1 )
209:00 AM=CONCATENATE( "The Time is: ", A2 )
 Results:
 AB
102/02/2016The Date is: 40211
209:00 AMThe Time is: 0.375
Likely Reason

Dates and times in Excel are represented internally by numbers. It is simply the formatting of a cell that causes these numbers to be displayed as dates and times. Therefore, when an Excel date or time is supplied to the Concatenate function, the result displays the underlying numeric value.

Solution

This problem can be solved by using the Excel Text function to convert the date or time value into a text string. This is shown in the example spreadsheet below:

 Formulas:
 AB
102/02/2016=CONCATENATE( "The Date is: ", TEXT( A1, "mm/dd/yyyy" ) )
209:00 AM=CONCATENATE( "The Time is: ", TEXT( A2, "hh:mm am/pm" ) )
 Results:
 AB
102/02/2016The Date is: 02/02/2016
209:00 AMThe Time is: 09:00 AM

The date and time formatting types are explained further in the Excel Custom Number Format page.