Excel Merging Cells: Only Keeps Upper Left Value
In this article
When you merge cells in Excel, only the value in the upper-left cell is kept; any data in the other cells is deleted. This is by design: a merged cell can hold only one value, and Excel preserves the top-left entry. To keep all values, you must move or combine them before merging. This guide explains why it happens, how to merge safely, and how to recover or avoid losing data.
What You'll Need
- Excel for Windows, Mac, or Excel for the web (steps are similar; labels may differ slightly by version).
- A worksheet with the cells you plan to merge.
- Optional: a backup copy of your file before merging (File > Save As).
Step-by-Step
- Understand the rule: Merging combines selected cells into one. Only the upper-left cell's content survives; everything else is discarded. Formatting from the upper-left cell is also kept.
- Back up your data: Save a copy (File > Save As) or press Ctrl+Z immediately after merging to undo. Undo works right away; after saving and closing, it may not.
- Decide what to keep: If you need all values, do not merge directly. Instead, combine them first. For example, in an empty cell, use a formula like
=A1 & " " & B1to join text, or=A1+B1for numbers. Copy the result, then Paste Special > Values over the upper-left cell before merging. - Select the cells: Highlight the range you want to merge (e.g., A1:C1).
- Merge: On the Home tab, in the Alignment group, click Merge & Center (or the arrow for Merge Across, Merge Cells). On Mac, use the Merge button in the Home tab's Alignment section. In Excel for the web, the Merge cells option is on the Home tab.
- Confirm the warning: Excel displays a message that merging keeps only the upper-left value. Click OK to proceed. If you are unsure, click Cancel and combine values first.
- Verify: Check that the merged cell shows the intended content. If data was lost, press Ctrl+Z (Cmd+Z on Mac) immediately to undo.
- Alternative without merging: Use Center Across Selection (Format Cells > Alignment > Horizontal > Center Across Selection) to visually center text across cells without merging. This keeps all cell values intact and is safer for sorting and filtering.
Common Mistakes
- Merging before combining: Users merge first and lose data. Always combine or copy values first.
- Assuming undo is permanent: Undo works only until you save and close. After that, lost data may be unrecoverable unless you have a backup.
- Merging cells with formulas: Only the upper-left formula remains; references to other merged cells may break.
- Merging across filtered or sorted data: Merged cells can cause errors in sorting and filtering. Avoid merging in tables you plan to sort.
- Using Merge & Center when you need multiple rows: Merging across rows can hide data and complicate copy-paste. Use it sparingly.
Tips
- Use Center Across Selection instead of merging for headers; it looks the same but preserves all values.
- To merge and keep all values, use a helper column with TEXTJOIN (Excel 2019 and later, Microsoft 365) to combine text from multiple cells, then paste values.
- Before merging, copy the range to a scratch area if you might need the original data.
- Merge only after formatting and data entry are final; merging early can disrupt later edits.
- For numbers, sum or concatenate first; merging alone will not add values.
Troubleshooting
- Data disappeared after merging: Press Ctrl+Z (Cmd+Z on Mac) immediately. If you saved and closed, check for a backup or previous version (File > Info > Version History if available).
- Merge & Center is grayed out: The worksheet may be protected, or the cells are in a table. Unprotect the sheet (Review > Unprotect Sheet) or convert the table to a range first.
- Cannot merge cells with different formats: Excel keeps the upper-left format. If formatting matters, apply it to the upper-left cell before merging.
- Merged cells cause errors in formulas: Merged cells can break references. Unmerge (Home > Merge & Center again) and use Center Across Selection instead.
- Need to merge but keep all text: Use a formula like
=A1 & ", " & B1in a helper cell, copy, then Paste Special > Values into the upper-left cell before merging.
Frequently Asked Questions
Why does Excel keep only the upper-left value when merging?
A merged cell can contain only one value, so Excel retains the top-left entry and discards the rest. This is standard behavior in all Excel versions.
Can I merge cells without losing data?
Not directly. You must combine the values first (using formulas or manual entry) into the upper-left cell, then merge. Alternatively, use Center Across Selection to avoid merging entirely.
Does undo recover data lost by merging?
Yes, immediately after merging, Ctrl+Z (Cmd+Z on Mac) restores the original cells. After saving and closing, undo is no longer available; use a backup or version history if enabled.
Is merging the same in Excel for the web and desktop?
The behavior is the same: only the upper-left value is kept. Menu locations may differ slightly; look for Merge & Center on the Home tab.
What is Center Across Selection?
It is a formatting option that centers text across selected cells without merging them. All cell values remain intact, making it safer for sorting and filtering. Find it in Format Cells > Alignment.
Can I merge cells in a table?
Merging is generally disabled in Excel tables because it interferes with sorting and filtering. Convert the table to a range first if you must merge.