To concatenate in Excel, you can use the CONCAT function, the TEXTJOIN function, or the ampersand (&) symbol to merge two or more strings of text into one cell. The simplest method is using the ampersand: =A1&B1. For more complex needs, such as adding delimiters or ignoring empty cells, the TEXTJOIN function is the most powerful tool available in modern versions of Excel.
What You'll Need
- A computer with Microsoft Excel installed (Office 365, Excel 2019, 2016, or earlier versions).
- A dataset containing text or numbers in separate cells that you wish to combine.
- Basic knowledge of how to enter a formula into a cell.
Step-by-Step
- Identify the cells you want to merge: Locate the data you need to combine. For example, if cell A2 contains a first name ("Jane") and cell B2 contains a last name ("Doe"), these are your target cells.
- Select the destination cell: Click on the empty cell where you want the combined result to appear (e.g., cell C2).
- Choose your method based on your goal:
- Method A: The Ampersand (&) Symbol. This is the fastest way for simple joins. Type
=, click cell A2, type&, then click cell B2. To add a space between them, type=A2&" "&B2. - Method B: The CONCAT Function. This is used to join a range of cells without needing to click each one individually. Type
=CONCAT(A2:B2). Note that CONCAT does not automatically add spaces. - Method C: The TEXTJOIN Function. This is the gold standard for professional lists. Type
=TEXTJOIN(", ", TRUE, A2:B2). The first part (", ") is the delimiter, the second part (TRUE) tells Excel to skip empty cells, and the third part is the range.
- Method A: The Ampersand (&) Symbol. This is the fastest way for simple joins. Type
- Press Enter: Once the formula is typed, press the Enter key on your keyboard to execute the calculation.
- Apply the formula to other rows: To repeat this for an entire column, hover your mouse over the bottom-right corner of the destination cell until a small black cross (the Fill Handle) appears. Click and drag the handle down to the bottom of your dataset.
- Convert formulas to static values (Optional): If you want to delete the original source columns without losing the combined text, select the concatenated cells, copy them (Ctrl+C), right-click the same area, and select Paste Values (the icon with "123").
Common Mistakes
One of the most frequent errors users make is forgetting to wrap manual text in double quotation marks. In Excel syntax, any text that is not a cell reference or a function must be enclosed in quotes. For example, =A1& space &B1 will result in a #NAME? error because Excel thinks "space" is a named range. The correct syntax is =A1&" "&B1.
Another common mistake is using the old CONCATENATE function instead of the newer CONCAT or TEXTJOIN. While CONCATENATE still works for backward compatibility, it is limited because it does not support cell ranges. If you try to select a range like A1:A10 inside a CONCATENATE function, it will not merge the cells; it will only show the first one or return an error. Always use CONCAT or TEXTJOIN for ranges.
Users also often forget to handle empty cells. When using the ampersand or CONCAT, if one of the cells is blank, you may end up with awkward double spaces or trailing commas in your final string. This is where the TEXTJOIN function is essential, as its "ignore_empty" argument prevents these formatting glitches.
Tips
To make your concatenated data look professional, incorporate formatting functions inside your concatenation. For instance, if you are merging a name and a date, the date will often appear as a raw number (e.g., 45123). To fix this, use the TEXT function: =A2&" joined on "&TEXT(B2, "mm/dd/yyyy"). This forces the date to remain in a readable format.
If you are dealing with a massive amount of data, avoid using too many complex TEXTJOIN formulas in a single sheet, as they can occasionally slow down calculation speeds in very large workbooks. For static reports, always use the "Paste Values" method mentioned in the step-by-step section to lock the data and improve performance.
For those who prefer not to write formulas, Excel's "Flash Fill" feature is a powerful alternative. Type the desired result manually in the first two cells of a column, then press Ctrl+E. Excel will analyze the pattern and automatically concatenate the rest of the column for you. This is faster than writing a formula if you only need to do the task once and don't need the result to update automatically when source data changes.
Troubleshooting
If your formula returns a #NAME? error, check your spelling of the function (e.g., ensure it is CONCAT and not CONCATNATE if you are using a range) and ensure all manual text strings are enclosed in double quotes. If you see #VALUE!, it usually indicates a problem with the data types or a broken reference within the formula.
If the result shows a number instead of a date or currency, remember that concatenation strips away cell formatting. You must wrap the numeric cell in a TEXT function to specify the desired format, such as TEXT(A1, "$#,##0") for currency.
If the combined text is all bunched together without spaces, review your formula to ensure you have added the space character " " between your cell references. A common mistake is typing =A1&B1 and expecting Excel to know a space is needed; Excel performs exactly what is written, so the space must be explicitly added.
If the formula does not update when you change the source data, check if your workbook is set to "Manual Calculation" mode. Go to the Formulas tab, click Calculation Options, and ensure "Automatic" is selected.
Frequently Asked Questions
Can I concatenate cells from different worksheets?
Yes. Instead of clicking a cell on the current sheet, navigate to the other sheet while the formula is open and click the desired cell. The syntax will look like =Sheet1!A1&Sheet2!A1.
Is there a limit to how many cells I can concatenate?
While there is no strict "count" limit, there is a character limit for a single cell in Excel (32,767 characters). If your concatenated string exceeds this, the text will be truncated.
How do I add a line break (new line) when concatenating?
You can use the CHAR function. For Windows, use =A1&CHAR(10)&B1. After entering the formula, you must enable "Wrap Text" in the Home tab for the line break to be visible.
What is the difference between CONCAT and TEXTJOIN?
CONCAT simply joins everything together in a sequence. TEXTJOIN allows you to specify a delimiter (like a comma or space) that is automatically placed between every item, and it can automatically skip empty cells.
Can I concatenate numbers and text together?
Yes, Excel treats numbers as text when they are used within a concatenation formula, allowing you to merge a label and a value, such as ="Total: "&C10.
Does the ampersand method work in older versions of Excel?
Yes, the ampersand (&) symbol is a universal operator in Excel and works across all versions, including very old legacy versions where CONCAT or TEXTJOIN may not exist.