Merging text in Excel is achieved by using a formula to combine the contents of two or more cells into one single cell. Depending on your version of Excel and your specific needs, you can use the Ampersand (&) symbol, the CONCAT function, or the TEXTJOIN function. These methods allow you to join first and last names, combine addresses, or create unique identifiers by pulling data from multiple columns into a single destination cell.

What You'll Need

  • A computer with Microsoft Excel installed (Office 365, Excel 2019, 2016, or later).
  • A dataset containing at least two columns of text that you wish to combine.
  • An empty column where the merged results will be displayed.

Step-by-Step

Method 1: Using the Ampersand (&) Symbol

The ampersand is the fastest way to join a small number of cells. It acts as a "glue" that sticks pieces of text together.

  1. Click on the empty cell where you want the combined text to appear.
  2. Type the equals sign (=) to start the formula.
  3. Click the first cell you want to merge (e.g., A2).
  4. Type the ampersand symbol (&).
  5. To add a space between the words, type a quotation mark, press the spacebar once, and type another quotation mark (" "). If you do not do this, the text from the two cells will be squashed together without any gaps.
  6. Type another ampersand symbol (&).
  7. Click the second cell you want to merge (e.g., B2).
  8. Press Enter. Your formula should look like this: =A2&" "&B2.
  9. Hover your mouse over the bottom-right corner of the cell until a small black cross appears (the Fill Handle). Click and drag this handle down to apply the formula to the rest of your list.

Method 2: Using the CONCAT Function

The CONCAT function is useful when you have a larger range of cells to combine and don't want to click each one individually.

  1. Select the cell where you want the merged text to reside.
  2. Type =CONCAT(.
  3. Click and drag your mouse across the range of cells you wish to merge (e.g., A2:C2).
  4. Close the parenthesis ) and press Enter.
  5. Note that CONCAT does not automatically add spaces or commas. If you need separators, you must add them manually within the formula as text strings, such as =CONCAT(A2, " ", B2).
  6. Use the Fill Handle to drag the formula down through your data set.

Method 3: Using the TEXTJOIN Function

TEXTJOIN is the most powerful merging tool because it allows you to set a delimiter (like a comma or space) once and automatically apply it between every cell in a range. It can also ignore empty cells.

  1. Select the destination cell.
  2. Type =TEXTJOIN(.
  3. Enter the delimiter inside quotation marks. For a space, type " ". For a comma and a space, type ", ". Follow this with a comma.
  4. Type TRUE (this tells Excel to ignore any blank cells in your range so you don't end up with double spaces). Follow this with a comma.
  5. Select the range of cells you want to merge (e.g., A2:D2).
  6. Close the parenthesis ) and press Enter. Your final formula will look like: =TEXTJOIN(" ", TRUE, A2:D2).
  7. Drag the Fill Handle down to complete the column.

Common Mistakes

One of the most frequent errors is forgetting the quotation marks when adding spaces. In Excel formulas, any literal text (including a single space) must be enclosed in double quotes. If you type =A2& &B2, Excel will return a #NAME? error because it thinks the space is a named range or a function it doesn't recognize.

Another common mistake is confusing "Merging Cells" with "Merging Text." The "Merge & Center" button on the Home tab is a formatting tool; it physically merges two cells into one large cell but deletes all data except for the top-left cell. To keep your data, you must use the formulas described above, not the Merge & Center button.

Users also often forget to convert formulas to static values. If you delete the original columns (A and B) after merging them into column C, the formulas in column C will break and show a #REF! error. This happens because the formula is still looking at the original cells for its data.

Tips

To avoid the #REF! error mentioned above, you should convert your formulas to values. Once you have merged your text, select the result cells and copy them (Ctrl+C). Right-click on the same cells, select "Paste Special," and choose "Values" (the icon with the numbers 123). This removes the formula and leaves only the final text, allowing you to safely delete the source columns.

If you are merging dates or currency, you will notice that Excel turns the date into a random five-digit number (e.g., 45123). This is because Excel stores dates as numbers. To fix this, use the TEXT function inside your merge. For example, instead of =A2&B2, use =TEXT(A2, "mm/dd/yyyy")&" "&B2. This forces Excel to keep the date format during the merge.

For those dealing with massive datasets, using the Fill Handle can be slow. Instead, double-click the small black square (Fill Handle) at the bottom-right of the cell. Excel will automatically shoot the formula down to the bottom of your data range, provided there are no empty rows in the adjacent column.

Troubleshooting

If your formula returns a #NAME? error, double-check your spelling of the functions. Ensure you are using CONCAT and not CONCATENATE (though CONCATENATE still works in older versions, it is less efficient). Also, verify that all your quotation marks are standard straight quotes and not "curly" or "smart" quotes, which can happen if you copy-paste from a word processor.

If the result shows the formula itself (e.g., you see =A2&B2 in the cell instead of the merged name), the cell is likely formatted as "Text." Change the cell format to "General" using the dropdown menu in the Home tab, then click into the formula bar and press Enter again to trigger the calculation.

If you see a #VALUE! error, it usually means there is a problem with the data types you are trying to merge. While the ampersand usually handles this well, check for hidden characters or errors within the source cells that might be interfering with the function.

Frequently Asked Questions

Can I merge text from different worksheets?

Yes. When selecting the cell in your formula, simply click over to the other worksheet tab and select the cell. Excel will automatically add the sheet name to the formula, such as =Sheet1!A2&" "&Sheet2!A2.

Is there a way to merge text without using formulas?

Yes, you can use "Flash Fill." Type the desired merged result in the first cell manually. Start typing the result in the second cell, and Excel will often suggest a pattern. Press Enter to accept the suggestion, or press Ctrl+E to force Flash Fill to complete the column based on your example.

How do I add a line break between merged text?

To start a new line within a single cell, use the CHAR(10) function. For example: =A2&CHAR(10)&B2. After applying this, you must enable "Wrap Text" in the Home tab for the line break to become visible.

Does the TEXTJOIN function work in all versions of Excel?

No, TEXTJOIN is available in Office 365 and Excel 2019 or newer. If you are using an older version like Excel 2013, you will need to use the Ampersand method or the CONCATENATE function.

How can I merge text and remove duplicates at the same time?

Merging and removing duplicates are two different steps. First, use one of the merging methods above. Then, select your new merged column, go to the "Data" tab, and click "Remove Duplicates."