To combine two cells into one text string in Excel, the fastest method is using the Ampersand (&) symbol or the CONCAT function. For example, if cell A2 contains "John" and B2 contains "Doe", typing =A2 & " " & B2 into cell C2 will result in "John Doe". This process, known as concatenation, allows you to merge names, addresses, or product codes into a single, readable cell.

What You'll Need

  • Microsoft Excel (any modern version)
  • A dataset with at least two columns of text or numbers you wish to merge
  • A blank column where the combined results will be displayed

Step-by-Step

Depending on your version of Excel and your comfort level with formulas, there are three primary ways to achieve this. Note that menu labels and ribbon layouts may differ slightly depending on your version of Excel or operating system.

Method 1: Using the Ampersand (&) Symbol

The ampersand is the most flexible way to join cells because it does not require a formal function name.

  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 on the first cell you want to merge (e.g., A2).
  4. Type the ampersand symbol (&).
  5. To add a space or punctuation between the two cells, type a space enclosed in double quotation marks (" ") followed by another ampersand (&). If you do not add this, the text will be smashed together (e.g., "JohnDoe").
  6. Click on the second cell you want to merge (e.g., B2).
  7. Press Enter.
  8. Hover your mouse over the bottom-right corner of the cell until a small cross appears (the Fill Handle), then click and drag down to apply the formula to the rest of your column.

Method 2: Using the CONCAT or CONCATENATE Function

Functions are often easier to manage when you are merging a large number of cells.

  1. Select the cell where the result should go.
  2. Type =CONCAT( or =CONCATENATE(. (CONCAT is the newer version available in Office 365 and Excel 2019+).
  3. Select the first cell, then type a comma (,).
  4. Type " " (a space inside quotes) followed by another comma to ensure there is a gap between your words.
  5. Select the second cell.
  6. Close the parenthesis ) and press Enter.
  7. Drag the Fill Handle down to complete the column.

Method 3: Using Flash Fill (No Formulas)

Flash Fill is an intelligent tool that recognizes patterns. It is ideal for users who prefer not to use formulas.

  1. In the blank column next to your data, manually type the combined text exactly as you want it to look using the data from the first row. (e.g., if A2 is "John" and B2 is "Doe", type "John Doe" in C2).
  2. In the cell immediately below (C3), start typing the combined version of the second row.
  3. Excel will often show a light grey "ghost" list of suggestions for the rest of the column.
  4. Press Enter to accept the suggestions and fill the column automatically.
  5. If the suggestions do not appear, select the cell you typed in and go to the Data tab on the ribbon and click Flash Fill.

Common Mistakes

  • Forgetting the Space: The most common error is typing =A2&B2. This results in "JohnDoe". Always remember to include & " " & to separate words.
  • Missing Quotation Marks: Any text you manually add to a formula (like a space, a comma, or a dash) must be enclosed in double quotes. =A2 & , & B2 will cause a formula error.
  • Circular References: Trying to put the formula inside one of the cells you are merging. The formula must be placed in a separate, third cell.
  • Static Data: Using Flash Fill means the data is not "live." If you change the name in cell A2, the Flash Fill result in C2 will not update automatically, whereas a formula will.

Tips

  • Convert Formulas to Text: If you need to delete the original two columns but keep the combined text, you must convert the formulas to values. Copy the combined column, right-click the same area, and select Paste Values (the icon with "123").
  • Adding Punctuation: You can add commas or other characters easily. For "Last Name, First Name", use: =B2 & ", " & A2.
  • Merging Many Cells: If you have 10+ cells to merge, use =TEXTJOIN(" ", TRUE, A2:J2). This allows you to pick one delimiter (the space) and apply it to a whole range of cells at once.

Troubleshooting

If the result is not what you expected, try these steps in order:

  1. Check for leading/trailing spaces: If your combined text has weird gaps (e.g., "John Doe"), your original cells might have hidden spaces. Use the =TRIM() function to remove them.
  2. Verify Formula Syntax: Ensure every ampersand has a cell or a quoted string on both sides. A trailing & at the end of a formula will cause an error.
  3. Check Cell Formatting: If you see the formula itself (e.g., you see =A2&B2 instead of the name), the cell is likely formatted as "Text". Change the cell format to "General" via the Home tab and press Enter in the formula bar again.
  4. Flash Fill Not Working: If Flash Fill isn't suggesting data, ensure there are no completely empty rows between your data entries, as this can break the pattern recognition.

Frequently Asked Questions

Can I merge cells without using a formula?

Yes, using Flash Fill (found in the Data tab) allows you to merge cells by providing an example for Excel to follow, removing the need for formulas entirely.

What is the difference between CONCAT and CONCATENATE?

CONCATENATE is the older function. CONCAT is the newer version that allows you to select a range of cells (like A1:A10) rather than clicking every single cell individually.

How do I merge cells and keep the original data?

Simply place your formula in a new column. The original cells remain untouched, and the new column displays the combined result.

Why does my number change to a date when I merge it?

This happens if the destination cell is formatted as a Date. Change the cell format to "General" or "Text" using the dropdown menu in the Home tab.

Can I merge cells from two different worksheets?

Yes. When writing your formula, instead of clicking a cell on the current sheet, click the other worksheet tab and select the desired cell. Excel will automatically add the sheet name to the formula (e.g., =Sheet1!A2 & " " & Sheet2!A2).