To join text in Excel, use the CONCATENATE function or the ampersand (&) operator. For example, =CONCATENATE(A1, " ", B1) or =A1 & " " & B1 combines the values from A1 and B1 with a space between them. CONCATENATE works in all Excel versions, but newer versions also offer the CONCAT and TEXTJOIN functions for more flexibility. This guide walks you through using CONCATENATE step by step, avoiding common pitfalls, and fixing typical errors.
What You'll Need
- Microsoft Excel (any version; CONCATENATE is available in Excel 2007 and later, including Microsoft 365).
- Data to combine, such as names, addresses, or codes, in separate cells.
- Basic familiarity with entering formulas in Excel.
Step-by-Step
- Open your workbook and locate the cells containing the text you want to join. For example, suppose first names are in column A and last names in column B, starting at row 2.
- Select the cell where you want the combined result. Click on an empty cell, such as C2.
- Start the formula by typing
=CONCATENATE(. Excel will show a tooltip with the syntax: CONCATENATE(text1, [text2], ...). - Add the first text argument. Click cell A2 or type
A2. This is the first value to join. - Add a separator if needed. Type a comma, then a space enclosed in double quotes:
" ". This inserts a space between the first and last names. Without it, the names would run together (e.g., "JohnSmith"). - Add the second text argument. Type a comma, then click cell B2 or type
B2. - Close the formula with a closing parenthesis and press Enter. The complete formula looks like:
=CONCATENATE(A2, " ", B2). The cell now shows the combined text, e.g., "John Smith". - Copy the formula down to apply it to other rows. Drag the fill handle (the small square at the bottom-right of the cell) down as far as needed. Excel adjusts the cell references automatically.
Alternatively, use the ampersand operator for the same result: =A2 & " " & B2. The & operator is often quicker to type and works identically to CONCATENATE. In Excel 2016 and later, you can also use the CONCAT function (which accepts ranges) or TEXTJOIN (which lets you specify a delimiter and ignore empty cells). For most simple joins, CONCATENATE or & is sufficient.
Common Mistakes
- Forgetting quotation marks around text strings. If you want to include literal text like a space or comma, it must be in double quotes:
" "or", ". Without quotes, Excel may interpret it as a named range or produce an error. - Omitting separators. Concatenating without a space or delimiter results in merged words (e.g., "JohnSmith"). Always add a separator if you need one.
- Using cell references without adjusting for rows. When copying formulas, relative references change automatically, but if you use absolute references (e.g., $A$2), they won't adjust. Use relative references unless you specifically need absolute ones.
- Mixing data types. CONCATENATE converts numbers to text, which can affect later calculations. If you need to perform math on the result, consider keeping numbers separate or using VALUE to convert back.
- Exceeding the 255-character limit per text argument. Each argument in CONCATENATE can be up to 255 characters; the total result can be up to 8,192 characters (32,767 in newer versions). For longer text, use the & operator or TEXTJOIN.
Tips
- Use the & operator for simplicity. It's faster to type and easier to read for short joins.
- Combine with other functions. For example, use
=CONCATENATE("Total: ", SUM(A1:A10))to include a calculated total in a text string. - Use TEXTJOIN for ranges. If you have a range of cells to join with a delimiter, TEXTJOIN (available in Excel 2019 and Microsoft 365) is more efficient:
=TEXTJOIN(", ", TRUE, A1:A10). - Format numbers before concatenating. If you join a date or number, it may lose formatting. Use the TEXT function to preserve it:
=CONCATENATE("Date: ", TEXT(A1, "mm/dd/yyyy")). - Watch for extra spaces. If your source cells contain trailing spaces, use TRIM to clean them:
=CONCATENATE(TRIM(A1), " ", TRIM(B1)).
Troubleshooting
- #NAME? error: This usually means CONCATENATE is misspelled or the function is not recognized. Check spelling. In some older Excel versions or non-English locales, the function name may differ (e.g., CONCATENAR in Spanish).
- Formula shows as text: If you see the formula instead of the result, the cell may be formatted as Text. Change the format to General, then re-enter the formula.
- Unexpected results with numbers: Concatenating numbers may drop leading zeros or change formatting. Use TEXT to format numbers as desired before joining.
- #VALUE! error: This can occur if an argument is invalid, such as a range without the CONCAT function. CONCATENATE does not accept ranges; use individual cell references or switch to CONCAT or TEXTJOIN.
- Formula not updating: Ensure calculation is set to Automatic (Formulas > Calculation Options > Automatic). If set to Manual, press F9 to recalculate.
Frequently Asked Questions
What is the difference between CONCATENATE and the & operator?
They do the same thing. The & operator is a shorthand for joining text and is often more convenient for simple concatenations. CONCATENATE is a function that can take multiple arguments, but it's being replaced by CONCAT in newer Excel versions.
Can I concatenate a whole range of cells?
CONCATENATE does not accept a range as a single argument. You must list each cell individually. To join a range, use the CONCAT function (Excel 2016+) or TEXTJOIN (Excel 2019+), which accept ranges.
How do I add a line break in a concatenated string?
Use the CHAR function with code 10 (line feed) and enable Wrap Text in the cell. For example: =CONCATENATE(A1, CHAR(10), B1). Then format the cell to wrap text (Home > Wrap Text).
Why does my concatenated date show as a number?
Excel stores dates as serial numbers. When concatenated, the number appears. Use the TEXT function to format the date: =CONCATENATE("Date: ", TEXT(A1, "mm/dd/yyyy")).
Is CONCATENATE case-sensitive?
No, CONCATENATE does not change the case of text; it simply joins exactly what is in the cells. If you need to change case, use UPPER, LOWER, or PROPER functions on the source cells first.
Can I use CONCATENATE with cell references from another sheet?
Yes. Refer to cells on another sheet by including the sheet name followed by an exclamation mark, e.g., =CONCATENATE(Sheet2!A1, " ", Sheet2!B1). If the sheet name contains spaces, enclose it in single quotes: 'Sheet 2'!A1.