Country or region and language

    Choose your country or region and your language.

    Suggested for you

      All countries and regions

        Choose your character

        It shows in the top bar and on your profile. Change it any time.

        How to merge cells in Excel

        Learn how to merge cells in Excel, check which value survives, unmerge a heading, and combine text without losing source values using a simple worked example.

        A person practicing on a laptop in a quiet workspace

        Practice what this post teaches

        To merge cells in Excel, select adjacent cells, then choose Home > Alignment > Merge & Center. Excel turns the selection into one centered cell but keeps only the upper-left cell's content, so make sure the other selected cells are empty. If you want to keep text from multiple populated cells, combine the text with a formula instead.

        A safe cell merge

        A safe merge puts one heading across neighboring cells without discarding any values. The worked example uses Excel for Microsoft 365 on Windows with an English interface; menu placement can differ on other platforms.

        Merging changes the worksheet layout. It doesn't add numbers, join records, or combine every selected value. Think of the command as making a larger display area for one value, not as collecting the contents of several cells.

        The upper-left cell is the cell at the top-left corner of your selection. For a horizontal heading, the upper-left cell is the leftmost selected cell. Keep your title there and leave the rest of the heading range empty.

        A heading across three columns

        To create a heading across three columns, enter the title in A1, leave B1 and C1 empty, and merge only A1:C1. The fictional expense sheet below keeps the heading above the records, so the item, amount, and status stay in separate cells.

        Start with a blank worksheet. Enter each value in its specified cell, then use the Name Box, the box to the left of the formula bar, to select the heading range by typing its address and pressing Enter. You can also drag across the three heading cells.

        If selecting and editing cells is unfamiliar, try Cells, data types and editing before building the heading.

        Fictional exercise: an expense-sheet heading
        Tool: Excel for Microsoft 365 on Windows
        Target: center one title across A1:C1 without changing the records.
        
        Starting state: a blank worksheet
        Enter these values:
        A1: Office expenses
        B1: leave empty
        C1: leave empty
        A3: Item
        B3: Amount (INR)
        C3: Status
        A4: Stationery
        B4: 800
        C4: Approved
        
        Exact changes:
        1. Select A1:C1.
        2. Confirm that B1 and C1 are empty.
        3. Choose Home > Alignment > Merge & Center.
        
        Expected output:
        A1:C1 is one merged cell displaying Office expenses, centered.
        A3:C4 is unchanged.
        No calculation is performed; B4 is still 800.
        
        Recovery check:
        4. Select the merged heading.
        5. Open the Merge & Center drop-down and choose Unmerge Cells.
        
        Expected output after unmerging:
        A1: Office expenses
        B1: empty
        C1: empty
        A3:C4: unchanged
        
        Restore the heading:
        6. Select A1:C1 and choose Merge & Center again.
        Expected output: Office expenses centered across merged A1:C1.

        After the first merge, check both the heading and the records. The title should be centered across the selected width, while the expense row still has three independently selectable cells. A title that merely overflows into empty neighboring cells isn't the same as a merged heading.

        The amount check matters because a layout change shouldn't alter your data. In the example, the amount stays in B4, and the status stays in C4. If either value moves or disappears, stop and use Undo before making further changes.

        Unmerging and value recovery

        Unmerge Cells restores separate worksheet cells, but it doesn't restore content discarded during a merge. Follow the recovery check in the exercise before restoring the heading: the title belongs in A1, and B1 and C1 should be empty.

        To find the command, select the merged heading and open the arrow next to Merge & Center in the Home tab's Alignment group. Choose Unmerge Cells rather than deleting the heading. Deleting content and separating merged cells are different actions.

        Undo reverses a recent action; Unmerge Cells changes the current layout. If you accidentally merged populated cells, use Undo immediately, before further edits make recovery more complicated. Don't rely on Unmerge Cells as a backup for lost values.

        Once you've confirmed the separate cells, restore the heading using the last step in the exercise. Repeating the merge and unmerge cycle with empty neighboring cells makes the surviving-value rule visible without risking expense records.

        Text from two populated cells

        To combine text from two populated cells without losing either source value, enter a text formula in a separate cell. The ampersand text operator joins values into one result; it doesn't merge the worksheet cells.

        Use a separate blank worksheet for the variation below, so you don't overwrite the expense heading. Enter the location in A1 and the label in B1, then enter the formula in C1. Check the first result before replacing the label in B1.

        For another attempt at building a formula from cell addresses, use Formulas and cell references.

        Fictional variation: combine two labels without merging
        Tool: Excel for Microsoft 365 on Windows
        Target: show both labels in C1 while preserving A1 and B1.
        
        Starting state: a separate blank worksheet
        Enter these values:
        A1: Pune
        B1: Office
        
        Exact change:
        Enter in C1:
        =A1&" "&B1
        
        Expected output:
        C1: Pune Office
        A1: Pune
        B1: Office
        All three cells remain separate.
        
        Changed-input check:
        Replace B1 with Branch.
        Leave the formula in C1 unchanged.
        
        Expected output:
        C1: Pune Branch
        A1: Pune
        B1: Branch

        The quoted space supplies the gap between the labels. Without that space, the words run together. The references to A1 and B1 tell Excel to use the current contents of those cells, which is why replacing Office with Branch updates the result.

        Keep the formula outside the source cells. Entering the formula in A1 or B1 would overwrite an input and could create a circular reference, meaning a formula depends on its own result. C1 is the output cell in this exercise.

        Merge choices and common mistakes

        Choose a merge for presentation, a text formula for combining labels, and separate cells for records you'll sort or filter. Sorting rearranges records; filtering shows only records that meet your conditions.

        • Standalone heading: use Merge & Center when only the upper-left cell contains a value.
        • Two existing labels: use a text formula in a separate output cell to preserve both inputs.
        • Working data: leave each field in its own cell so records keep a consistent structure.
        • Layout reversal: use Unmerge Cells to restore separate cells, not to recover discarded values.

        The main limitation of merged cells is that they can obstruct sorting and make selecting, copying, and editing records awkward. Keep decorative headings outside the data range, as the expense example does. A merged title doesn't improve the underlying data structure.

        If Merge & Center is unavailable, first finish or cancel any active cell edit. Also check whether the selection is inside an Excel table, a structured range with features such as header filters. Excel doesn't allow merged cells inside a table; put the decorative heading outside the table rather than changing the table just for appearance.

        For a final independent retry, return to the expense worksheet and repeat the exercise's recovery check and restoration steps. Confirm that the title returns to A1 after unmerging, then recreate the merged heading without touching the records.

        Common questions

        How do I unmerge cells in Excel? Select the merged cell, open the Merge & Center drop-down under Home > Alignment, and choose Unmerge Cells. The surviving content stays in the upper-left cell; unmerging doesn't restore values discarded during the merge.

        How do I merge two cells without losing their text? Merge & Center can't preserve separate text values from both populated cells. Use a text formula in a third cell, as in the two-label example, to combine the text while keeping both source cells.

        How do I merge three columns for a heading without changing the rows below? Select only the heading cells, such as A1:C1, rather than the entire columns, then choose Merge & Center. Keep the title in A1 and the other selected cells empty; rows outside the selection won't be merged.

        Does merging cells join two rows of data? No, merging changes the selected cells' layout and keeps only the upper-left cell's content. It doesn't combine records or preserve every value from two rows.

        Why is Merge & Center unavailable in an Excel table? Excel tables don't support merged cells within the table range. Keep the table's fields separate and place a merged display heading outside the table.

        Practice what this post teaches

        Your Work Gym account

        Save your progress and pick up on another device. Your browser's progress comes with you.

        New accounts get 12 hours of full access: every course, unit, project and exam. The clock starts when you open your first lesson.

        Plan your practice from a job ad or syllabus

        Have a referral code?

        or

        You can keep practicing without an account.

        Help and feedback

        Ask a question, tell us what is not working, or share an idea. We reply by email.

        What is it about?

        We use it only to reply to you.