CONCATENATE function

This article describes the formula syntax and usage of the CONCATENATEfunction in Microsoft Excel.

Description

The CONCATENATE function joins up to 255 text strings into one text string. The joined items can be text, numbers, cell references, or a combination of those items. For example, if your worksheet contains a person's first name in cell A1 and the person's last name in cell B1, you can combine the two values in another cell by using the following formula:

=CONCATENATE(A1," ",B1)

The second argument in this example (" ") is a space character. You must specify any spaces or punctuation that you want to appear in the results as an argument that is enclosed in quotation marks.

Syntax

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

The CONCATENATE function syntax has the following arguments:

  • Text1    Required. The first text item to be concatenated.

  • Text2, ...    Optional. Additional text items, up to a maximum of 255 items. The items must be separated by commas.

Note   You can also use the ampersand (&) calculation operator instead of the CONCATENATE function to join text items. For example,=A1 & B1 returns the same value as=CONCATENATE(A1, B1)

Example

Copy the example data in the following table, and paste it in cell A1 of a new Excel worksheet. For formulas to show results, select them, press F2, and then press Enter. If you need to, you can adjust the column widths to see all the data.

Data

brook trout

Andreas

Hauser

species

Fourth

Pine

32

Formula

Description

=CONCATENATE("Stream population for ", A2, " ", A3, " is ", A4, "/mile.")

Creates a sentence by joining the data in column A with other text. The result is Stream population for brook trout species is 32/mile.

=CONCATENATE(B2, " ", C2)

Joins three things: the string in cell B2, a space character, and the value in cell C2. The result is Andreas Hauser.

=CONCATENATE(C2, ", ", B2)

Joins three things: the string in cell C2, a string with a comma and a space character, and the value in cell B2. The result is Andreas Hauser.

=CONCATENATE(B3, " & ", C3)

Joins three things: the string in cell B3, a string consisting of a space with ampersand and another space, and the value in cell C3. The result is Fourth & Pine.

=B3 & " & " & C3

Joins the same items as the previous example, but by using the ampersand (&) calculation operator instead of the CONCATENATE function. The result is Fourth & Pine.

Applies To: Excel 2007, Excel 2010, Excel Starter, Excel Online, SharePoint Online



Was this information helpful?

Yes No

How can we improve it?

255 characters remaining

To protect your privacy, please do not include contact information in your feedback. Review our privacy policy.

Thank you for your feedback!

Support resources

Change language