In Excel, merging cells normally keeps only the value in the upper-left cell and removes the contents of the other cells. To keep all the text, combine the contents into one cell first, then merge the range—or use Center Across Selection if you only want the text to look centered across several cells.
What happens when you merge cells
In Microsoft Excel for Microsoft 365 on Windows, a merge turns a selected rectangular range into one larger cell. The value in the range’s upper-left cell is retained; values in the other cells are discarded. For example, if A1 contains “North,” B1 contains “Region,” and C1 contains “Sales,” merging A1:C1 leaves “North” in the merged cell. Excel may display a warning before proceeding, but the warning does not offer a way to preserve all three values automatically.
This applies whether the cells contain words, numbers, dates, or formulas. If the upper-left cell contains a formula, that formula remains; formulas in the other cells are removed. The remaining value may look like it spans the selected area, but Excel has not joined the separate contents. It has made a single cell from the range.
That distinction matters because merging is a layout and formatting action, not a text-combining action. To preserve the information, create a combined value before you merge. Keep a copy of the original cells until you have checked the result.
Safest method: combine text, then merge
A reliable approach is to put a formula in a spare cell, check the combined result, and then paste that result as a value into the upper-left cell of the range. Only after that should you merge. For a simple row, you can use Excel’s TEXTJOIN function to combine the entries with a space between them.
- Check which cells contain information and choose a delimiter, such as a space, comma, or line break.
- In an unused cell outside the range, enter a TEXTJOIN formula. For example, if A1:C1 contains North, Region, and Sales, enter
=TEXTJOIN(" ",TRUE,A1:C1)in D1. The result is “North Region Sales.” TRUE tells Excel to skip empty cells. - Check the result for missing text, awkward spacing, or duplicate separators. Adjust the formula or delimiter if needed.
- Copy the result cell. Select A1, then use Home > Paste > Paste Values so the combined text replaces the original top-left value without leaving a formula that depends on cells you are about to clear.
- Clear the contents of B1:C1, select A1:C1, and choose Home > Merge & Center. If you do not want centered text, open the button’s dropdown and choose Merge Cells instead.
Paste Values is important in this sequence: a formula left in A1 that refers to A1:C1 would become circular, because A1 is both the formula cell and part of the referenced range. Putting the formula in D1 first avoids that problem. Clear the other original cells only after you have confirmed the combined result and pasted it into A1.
Choose a separator that preserves meaning
When values are joined, the separator becomes part of the final text. A space is useful for words that should read as a phrase, but it may be wrong for codes or values that need punctuation. Think about how someone will interpret the combined result after the original cell boundaries are gone.
- Space: “North Region Sales” is readable as a heading or label.
- Comma and space: “North, Region, Sales” makes separate items easier to distinguish.
- Slash or dash: “North / Region / Sales” can work for compact labels, provided those characters do not already have a special meaning in your data.
- Line break: putting each item on its own line can be easier to scan in a tall merged cell.
For a line-break result, with the original text in A1:C1 and the formula entered in D1, use =TEXTJOIN(CHAR(10),TRUE,A1:C1). The formula joins nonempty entries with a line break. Turn on Home > Wrap Text for the destination cell so the lines can display, and adjust the row height if necessary. The same formula can be pasted as a value into A1 before merging. If you choose a delimiter that can also appear inside the source text, consider whether readers will still be able to tell where one item ends and the next begins.
When formulas are useful—and when they are not
TEXTJOIN is convenient when you need to combine several cells and want a consistent separator. It can join a range such as A1:C1, and TRUE skips empty cells so they do not create extra separators. If every empty position must be represented, use FALSE instead, but be aware that empty cells can then result in repeated delimiters or extra spacing. The formula creates text; it does not preserve each original cell as a separate, editable value inside the merged cell.
For a one-time heading, a formula followed by Paste Values is usually straightforward. If the original cells may change and you want the combined display to update, keep the formula in a separate, unmerged destination cell rather than replacing the source cells. A formula placed in a merged cell cannot turn that cell into a container for several independently editable values. The original entries still need to remain in separate cells somewhere if you expect to revise them individually.
Dates and numbers deserve a quick check. When Excel combines values into text, the displayed result may not use the number format you expected. For example, a date might appear as its underlying serial number rather than as a date. If that happens, format the value as text within a formula or prepare the source display before joining. Do not assume that merging will preserve the separate number formats of the original cells; a merged cell has one displayed value and one formatting treatment.
Merge Cells versus Center Across Selection
If your goal is visual—such as centering a title across columns—merging may be unnecessary. Center Across Selection centers text across the selected cells without combining them. The text remains in the leftmost cell, while the neighboring cells stay separate and available for data. This avoids losing other entries and is often more suitable for worksheets that people will sort, filter, or edit.
In Excel for Microsoft 365 on Windows, select the cells, open the Format Cells dialog with Ctrl+1, choose the Alignment tab, open the Horizontal dropdown, and select Center Across Selection. Confirm with OK. On a Mac, the Format Cells dialog is also available, but the keyboard shortcut differs; use the Format Cells command from the Excel menu or ribbon if Ctrl+1 does not open it. Center Across Selection changes alignment, not the underlying values.
Use Merge & Center when the range genuinely needs to become one cell, such as a decorative heading in a report area that will not be sorted as data. Use Center Across Selection when you mainly want a centered appearance while keeping the worksheet structure intact. Neither option combines multiple cell values for you, so combine the text first if you need every entry in one displayed result.
Common problems and ways to avoid them
- Text disappears after merging: Undo immediately with Ctrl+Z on Windows if possible. Otherwise, restore the source values from a saved copy, version history, or backup. Excel does not store the discarded contents inside the merged cell.
- The result has odd spaces or commas: Check for blank cells and choose whether the formula should skip them. With TEXTJOIN, TRUE skips empty cells; FALSE includes their positions, which can leave repeated separators.
- The merged cell looks cut off: Turn on Wrap Text, widen the column, or adjust the row height. A merged area may not automatically show all wrapped lines at the height you expect.
- Merge commands are unavailable: Excel does not allow merged cells inside an Excel table. Convert the table to a normal range if merging is essential, or use alignment formatting instead. Converting changes table behavior, so consider whether you rely on its filters and structured references.
- Sorting or filtering becomes difficult: Merged cells can interfere with selecting and organizing data because the merged area no longer matches the worksheet’s regular cell-by-cell structure. Avoid merging inside a dataset; reserve it for headings outside the sortable range.
On Windows, the ribbon path is Home > Merge & Center, with a dropdown for the other merge choices. Excel for Mac has comparable merge options on the Home tab, though ribbon layout and keyboard shortcuts can differ. Excel for the web also offers merge controls on the Home tab, but some dialog and formatting details differ from the desktop app. If a workbook will be edited across platforms, test the layout in the versions your collaborators use.
After merging: editing, accessibility, and recovery
After a range is merged, only its upper-left cell is the cell that holds the value. Selecting or referencing another position that used to be inside the range will not retrieve a separate text item, because that item was removed during the merge. To change the combined wording, select the merged cell and edit its value in the formula bar or directly in the cell. To restore the original grid, use Home > Merge & Center > Unmerge Cells; unmerging restores the cell layout, but it does not restore values that were discarded.
Merged cells can also make a worksheet less predictable for assistive technology and for people navigating with a keyboard. A screen reader or collaborator may find it harder to understand a layout where cells span different rows or columns. Clear headings, consistent table structure, and avoiding unnecessary merges can make data easier to navigate. If the worksheet is a data table rather than a presentation, keep labels and values in separate cells and apply alignment, borders, or fill colors for visual emphasis instead.
Before merging important information, save a copy or make a backup. If you have already merged and the missing text is not available in Undo, check the workbook’s version history or recover the original from another copy. The safest prevention is to combine and verify the text first, then retain the original entries elsewhere if they may be needed later.
Frequently Asked Questions
Does Excel have a merge option that keeps every cell’s text?
No. Excel’s merge commands retain only the upper-left cell’s value. Combine the text first with a formula such as TEXTJOIN, paste the result as a value, and then merge if a single cell is required.
Can I merge cells without losing data?
Yes, if you first move or combine the contents so they are all represented in the upper-left cell, and clear the other cells before merging. Keep a backup until you have checked the result; merging alone does not preserve the other values.
How do I merge cells with a line break between each entry?
Use TEXTJOIN with CHAR(10) as the delimiter, for example =TEXTJOIN(CHAR(10),TRUE,A1:C1) when the source cells are A1:C1. Turn on Wrap Text, check the output, then paste it as a value before merging.
Can I undo a merge and get the deleted text back?
Unmerge Cells restores the separate cell layout, not the discarded contents. Use Ctrl+Z on Windows immediately after the merge if the action is still available to undo, or recover the original from a backup or version history.
What should I use instead of Merge & Center for a heading?
Use Center Across Selection when you want a heading centered over several columns but want the cells to remain separate. It preserves the worksheet structure, though the heading text still belongs in the leftmost cell.
Related
- Excel Named Range in a Drop-Down List: How to Set It Up
- Excel Update Dropdown List Values: A Practical Guide
- Excel Unable to Find Circular Reference?
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- How to Add a Watermark in Word Online (and What Works)Word for the web can display a watermark that is already in a document, but it generally cannot…
- Excel Frozen Not Responding? Steps to Recover SafelyIf Excel says Not Responding, stop clicking and give it a little time: it may be calculating, opening…
- Convert to Dropdown in Google Sheets: Setup and TipsTo convert cells to a dropdown in Google Sheets, select the cells, choose Insert > Dropdown, add the…
- How to Add a New Section to a Word Table of ContentsTo add a new section to a table of contents in Microsoft Word, format the section title with…
- How to Keep the Ribbon Open in Excel on Windows and MacTo keep Excel’s Ribbon open on Windows, select Ribbon Display Options near the upper-right corner of the window,…
- Outlook Web Rules: How to Create and Manage ThemYes. You can create inbox rules in Outlook on the web to automatically sort, categorize, forward, mark, or…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.