Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Combine Cells in Excel: Merge, Unmerge & Tips

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Combining cells in Excel joins adjacent cells into a single larger cell, often used to center a title across multiple columns or create cleaner layouts. To do this, you must first select the cells you want to merge, then use the Merge & Center or Merge Cells command. Note that merging only keeps the value from the top-left cell—data in other cells is deleted—so back up your data first if needed.

What You'll Need

  • Microsoft Excel (any modern version: 2010, 2013, 2016, 2019, 2021, or Microsoft 365)
  • A spreadsheet with adjacent cells you want to combine
  • Basic familiarity with navigating Excel ribbons and cell selection

Step-by-Step

  1. Open your Excel workbook and navigate to the worksheet containing the cells you want to combine.
  2. Select the range of cells you wish to merge. Click and drag across adjacent cells—make sure they form a single rectangle (e.g., A1 to C1 for a row, or B2 to B5 for a column). Non-adjacent cells cannot be merged in one step.
  3. Go to the Home tab on the Excel ribbon at the top of the window.
  4. Locate the Alignment group, usually near the center-right of the Home tab.
  5. Click the small arrow in the bottom-right corner of the Alignment group to open the Format Cells dialog box, OR skip to step 6 if you prefer the ribbon button.
  6. Alternatively, in the Alignment group, click the Merge & Center dropdown arrow (it shows a grid icon with arrows overlapping). Choose one of these options:
    • Merge & Center: Merges the selected cells and centers the content horizontally in the new cell. This is the most common choice for headers.
    • Merge Across: Merges cells row by row for each row in your selection (useful for multi-row headers).
    • Merge Cells: Merges the selection into one cell but keeps the original alignment (does not auto-center).
  7. After choosing an option, Excel will merge the cells and display only the content from the top-left cell. The other cells in the selection become empty—this is normal behavior.

Common Mistakes

  • Forgetting data loss: Excel deletes all values except the top-left cell when merging. If you have important data in other cells (e.g., B1 and C1 contain notes), copy them elsewhere first or use a formula like =A1 & " " & B1 to combine text before merging.
  • Selecting non-adjacent cells: Merging only works on contiguous (touching) cells. If you hold Ctrl while selecting scattered cells, the Merge Cells option may be grayed out.
  • Using Merge & Center unintentionally: This auto-centers content, which can misalign numbers or dates. Use Merge Cells instead if you need to preserve left, right, or general alignment.
  • Merging cells in tables: Excel Tables (created with Ctrl+T) do not allow merging inside the table range. You’ll see a warning or the option may be disabled. Workarounds include merging outside the table or converting the table to a range (Table Design > Convert to Range).

Tips

  • Use Merge & Center for column headers: It’s the standard for titles spanning multiple columns (e.g., "Sales Q1–Q3" across three month columns).
  • Unmerge before sorting or filtering: Merged cells break Excel’s sort and filter functions. Always unmerge (select the merged cell > Home tab > Merge & Center dropdown > Unmerge Cells) before applying these features.
  • Keep formatting simple: Merged cells can’t have individual borders per original cell. Use the Border tools after merging to draw outer lines only.
  • Use Wrap Text for long content: After merging, enable Wrap Text in the Alignment group so long text flows into the merged area instead of spilling out or truncating.
  • Alternative: Center Across Selection: For headers without merging (which avoids sort/filter issues), select the range, press Ctrl+1 to open Format Cells, go to the Alignment tab, choose Center Across Selection under Horizontal, and click OK. This visually centers text without merging.

Troubleshooting

  • Merge option is grayed out: Check if your selection includes non-adjacent cells or if you’re inside an Excel Table. If inside a table, exit table editing mode or convert to a range first. If cells are protected, unprotect the sheet (Review tab > Unprotect Sheet) with the correct password.
  • Data vanished after merging: Excel deleted it intentionally. If you didn’t back it up, undo the merge immediately with Ctrl+Z. To prevent this, paste values into a new column first using =A1 & " " & B1 for text, or use Power Query to combine data safely.
  • Merged cell doesn’t center content: You likely used Merge Cells instead of Merge & Center. Re-select the cell and choose Merge & Center from the dropdown, or manually center it using the Center button in the Alignment group.
  • Unmerge didn’t restore original cells: Unmerging returns cells to their pre-merged state, but any data lost during merging is gone. Only the cell structure is restored, not deleted content. To reconstruct, you’ll need to re-enter or recover from a backup/version history.
  • Printing issues (merged cells cut off or misaligned): Adjust page setup: Page Layout > Margins > Narrow, or scale to fit (Page Layout > Scale to Fit). Also ensure the merged cell’s font size doesn’t exceed the cell’s physical width after printing.

Frequently Asked Questions

Can I merge cells vertically (down a column)?

Yes. Select cells in the same column (e.g., D2 to D5), then use Merge Cells or Merge & Center. The content will appear in the top cell (D2), and the rows below will be removed visually—though the rows still exist in the worksheet.

Why does my merged cell show #VALUE! or #REF!?

This usually happens if the formula or reference in the top-left cell refers to a merged cell or is broken during merging. Check the formula bar for errors and re-enter the formula. If you used a formula to combine text before merging, ensure all referenced cells are still valid.

How do I merge cells without losing data?

Use a formula first: In a new cell, type =A1 & " " & B1 & " " & C1 (adjust cell references and add separators as needed), then copy and paste the result as values. Alternatively, use the TEXTJOIN function (Excel 2016+) like =TEXTJOIN(" ",TRUE,A1:C1) to combine with spaces and ignore blanks.

Does merging affect formulas that reference the merged range?

Yes. If a formula like =SUM(A1:C1) is used, Excel only reads the top-left cell (A1) when A1:C1 is merged. To fix this, unmerge before summing, or use =A1 directly if only the first cell’s value matters.

Can I merge cells in Excel Online or mobile apps?

Yes, but the interface differs. In Excel for the web or mobile, tap the cell, select the range, tap the Merge icon (often in the Home tab of the floating ribbon), and choose Merge or Merge & Center. Some mobile versions limit advanced alignment options.

What’s the keyboard shortcut to merge cells?

There’s no direct shortcut, but you can assign one: Go to File > Options > Customize Ribbon > Keyboard Shortcuts: Customize, then search for "MergeCells" and assign a key (e.g., Ctrl+Shift+M). Note: This varies by version and may not exist in older Excel builds.