To connect cells in Excel, you can either merge them into one large physical cell using the Merge & Center tool or combine the data from multiple cells into one using the CONCATENATE function or the ampersand (&) symbol. Merging changes the layout of your spreadsheet, while concatenating combines the actual text or numbers stored within those cells.

What You'll Need

  • A computer with Microsoft Excel installed (Windows or macOS).
  • An existing workbook with data in at least two separate cells that you wish to connect.
  • Basic knowledge of how to select cells and enter formulas.

Step-by-Step

Depending on your goal, you will use one of three primary methods. Note that menu labels may differ slightly depending on your version of Excel, your operating system, or your regional settings.

Method 1: Merging Cells (Visual Connection)

Use this method when you want to create a header that spans across multiple columns or rows. This does not combine data; it creates one large cell.

  1. Open your Excel workbook and highlight the cells you want to merge. You can do this by clicking the first cell and dragging your mouse to the last cell in the range.
  2. Navigate to the Home tab on the top ribbon.
  3. Locate the Alignment group.
  4. Click the Merge & Center button. This will combine the selected cells into one and center the text from the top-left cell.
  5. If you want different options, click the small drop-down arrow next to Merge & Center. Here you can choose Merge Across (merges cells in the same row but keeps rows separate) or Merge Cells (merges the selection without centering the text).

Method 2: Using the Ampersand (&) Symbol (Data Connection)

The ampersand is the fastest way to join text from two or more cells. This is known as concatenation.

  1. Click on the empty cell where you want the combined result to appear.
  2. Type the equals sign (=) to start the formula.
  3. Click the first cell you want to connect (e.g., cell A2).
  4. Type the ampersand symbol (&).
  5. To add a space between the connected values, type a quotation mark, a space, and another quotation mark (" ").
  6. Type another ampersand (&).
  7. Click the second cell you want to connect (e.g., cell B2).
  8. The final formula should look like this: =A2&" "&B2.
  9. Press Enter. The text from both cells will now appear connected in the new cell.

Method 3: Using the CONCAT or TEXTJOIN Functions (Advanced Connection)

For larger sets of data, using a dedicated function is more efficient than typing multiple ampersands.

  1. Select the cell where the result should go.
  2. Type =CONCAT( or =TEXTJOIN(.
  3. If using CONCAT, select the range of cells you want to join (e.g., =CONCAT(A2:C2)) and press Enter. Note that CONCAT does not automatically add spaces.
  4. If using TEXTJOIN, you can specify a delimiter (like a comma or space). Type the delimiter in quotes first, then choose whether to ignore empty cells, then select the range. For example: =TEXTJOIN(" ", TRUE, A2:C2).
  5. Press Enter to complete the operation.

Common Mistakes

One of the most frequent errors is attempting to merge cells that both contain data. When you use the Merge & Center feature on multiple cells that have text in them, Excel will display a warning stating that merging cells only keeps the upper-left value and discards all other data. If you need to keep all the information, you must use the ampersand or CONCAT method instead of merging.

Another common mistake is forgetting the quotation marks when adding spaces or punctuation. In Excel formulas, any static text (including a single space) must be wrapped in double quotes. If you type =A2& &B2 without quotes around the space, Excel will return a formula error because it thinks the space is part of a function name or a named range.

Users also frequently forget that merged cells can interfere with data sorting and filtering. If you have a table with merged cells in the header or the body, Excel may struggle to sort the columns alphabetically or numerically, often resulting in an error message stating that all merged cells need to be the same size.

Tips

To apply a connection formula to an entire column without re-typing it, use the Fill Handle. After entering your formula in the first cell, hover your mouse over the bottom-right corner of that cell until the cursor turns into a small black cross. Double-click the cross or drag it down to the bottom of your list to automatically connect the corresponding cells in every row.

If you want to connect cells and then remove the formulas to keep only the final text, use Paste Values. Copy the cells containing your formulas, right-click on the same area, and select the Values icon (the clipboard with "123" on it) under Paste Options. This converts the formula result into static text, allowing you to delete the original source columns without losing the combined data.

For those dealing with dates or currency when connecting cells, use the TEXT function within your concatenation. If you simply connect a cell containing a date, Excel will display the date as a serial number (e.g., 45123). To fix this, use =A2&" "&TEXT(B2, "mm/dd/yyyy") to ensure the date remains formatted correctly.

Troubleshooting

If your formula returns a #NAME? error, check the spelling of your function. This often happens if you use =CONCATENATE in a version of Excel that prefers =CONCAT, or if you have a typo in the function name. Ensure there are no accidental spaces before the equals sign at the start of the formula.

If the result of your connection looks like the formula itself (e.g., you see =A2&B2 instead of the actual combined text), the cell is likely formatted as Text rather than General. To fix this, go to the Home tab, find the Number group, change the dropdown from "Text" to "General," and then double-click the cell and press Enter to refresh it.

If you cannot find the Merge & Center button, ensure you are not currently editing a cell. If your cursor is blinking inside a cell, many ribbon options are greyed out. Press Enter or Esc to exit the cell edit mode, then try selecting the range again.

When using TEXTJOIN and getting a #NAME? error, it is possible you are using an older version of Excel (such as 2013 or earlier) that does not support this function. In this case, you must revert to using the ampersand (&) method or the older CONCATENATE function.

Frequently Asked Questions

Can I unmerge cells after connecting them?

Yes. Select the merged cell and click the Merge & Center button again to toggle it off. This will return the area to individual cells, though only the top-left cell will retain the data.

What is the difference between CONCAT and CONCATENATE?

CONCAT is the newer version of the function. The main advantage of CONCAT is that it allows you to select a range of cells (e.g., A1:A10), whereas the older CONCATENATE function requires you to select each cell individually.

How do I connect cells with a line break instead of a space?

You can use the CHAR function. On Windows, use =A2&CHAR(10)&B2. You must then enable Wrap Text in the Alignment group for the line break to be visible.

Does merging cells delete my data?

If multiple cells in the selection contain data, Excel will keep only the data from the upper-leftmost cell and delete everything else. Always back up your data or use concatenation if you need to preserve all values.

Can I connect cells from two different worksheets?

Yes. When writing your formula, instead of clicking a cell on the current sheet, click the tab of the other worksheet, select the desired cell, and then return to your original sheet to finish the formula.