Excel Practice Test

โ–ถ

Excel merge cells is one of the most widely used and most misused features in spreadsheet history. The Merge & Center button on the Home ribbon makes it easy to combine multiple cells into a single cell โ€” convenient for visual layout but problematic for many spreadsheet operations. Sorting, filtering, copying, pasting, and applying formulas all interact poorly with merged cells. Many spreadsheet problems trace back to merged cells in data ranges. Understanding how merging works, when it's appropriate, and when alternatives like Center Across Selection work better helps you create cleaner, more maintainable spreadsheets.

The fundamental issue with merged cells is that they violate the rectangular grid structure that Excel's data operations assume. When cells are merged, Excel treats them as a single combined cell with content only in the upper-left position of the merge. The other positions in the merged area are technically empty cells.

This causes problems whenever Excel needs to operate on individual cells โ€” sorting tries to sort cells but encounters merged groups, filtering tries to filter rows but merged cells create ambiguity, formulas referencing cells in the merged area find empty values. The visual benefit of merged cells comes at substantial cost to functionality.

Excel Merge Quick Facts

How to merge: Select cells, click Merge & Center on Home ribbon (or Format Cells โ†’ Alignment tab โ†’ Merge cells checkbox). Merge options: Merge & Center, Merge Across, Merge Cells (without centering), Unmerge Cells. Common problems: Sorting, filtering, copy/paste, formula references all break with merged cells. Better alternative: Center Across Selection (Format Cells โ†’ Alignment โ†’ Horizontal: Center Across Selection) provides visual centering without merging.

Center Across Selection is the underutilized alternative to merging that provides similar visual results without the data-handling problems. Select the cells you want to visually combine, open Format Cells (Ctrl+1), go to Alignment tab, and choose "Center Across Selection" from the Horizontal dropdown. The text appears centered across the selected cells just like with merging, but the cells remain individually addressable. Sorting, filtering, formulas, and other operations work normally. The visual result is essentially identical to merging, but functionality is preserved. Most spreadsheet users would benefit from using Center Across Selection rather than merge for visual purposes.

Excel Merge Options

๐Ÿ”ด Merge & Center

Combines selected cells and centers content. The most common option used. Default click on the merge button.

๐ŸŸ  Merge Across

Merges cells in each row separately rather than combining all selected cells into one. Useful for similar formatting across multiple rows.

๐ŸŸก Merge Cells

Combines selected cells without applying centering. Content stays in original position (typically upper-left).

๐ŸŸข Unmerge Cells

Reverses merging, returning cells to individual cells. Content remains in upper-left position; other cells become empty.

๐Ÿ”ต Center Across Selection

Format Cells alternative that centers content visually without actual merging. Preserves cell functionality.

๐ŸŸฃ Cross Cells (CSS)

In web exports or reports generated from Excel, CSS styling can produce merged-look results without actual cell merging in source spreadsheet.

Common situations where people use merging include creating titles spanning multiple columns, formatting headers across grouped columns, creating section labels in formal reports, designing dashboard layouts with combined cell areas, and producing visual hierarchy in printed reports. Most of these use cases work better with Center Across Selection or alternative formatting approaches. The merge approach is most appropriate for purely cosmetic cells that won't be involved in data operations โ€” title cells at the very top of a printed report, for example, where no sorting or formulas will reference those cells.

Sorting problems with merged cells produce some of the most frustrating user experiences. Excel allows you to sort ranges containing merged cells but the results are often unexpected. Sometimes sorting fails entirely with error messages requiring you to unmerge cells before sorting. Sometimes sorting succeeds but produces visually broken output where merged headers no longer align with the data they're supposed to label. Sometimes data within merged areas appears to disappear during sort operations. The only reliable solution is to avoid merged cells in data ranges. Use merging only in non-data areas, or avoid it entirely.

Filtering interacts poorly with merged cells in similar ways. AutoFilter doesn't work well across merged cells in column headers โ€” the filter dropdowns may not appear in expected locations or may produce unexpected filtering behavior. Advanced filtering through criteria ranges similarly breaks with merged cells. The general rule is that any data range you intend to sort or filter should have no merged cells anywhere in it. If you've inherited a spreadsheet with merged cells in data ranges, unmerging those cells is typically the first step before working with the data productively.

๐Ÿ“‹ How to merge

Step-by-step merge: Select the cells you want to merge by clicking and dragging or using shift+click. Click Merge & Center on the Home ribbon (or use Format Cells dialog: right-click โ†’ Format Cells โ†’ Alignment tab โ†’ Merge cells checkbox). The cells combine into one with content from upper-left position retained. Other cell content is lost when merging if multiple cells contained data โ€” Excel may warn you about this. To merge without centering, click the dropdown arrow next to Merge & Center and choose "Merge Cells" instead.

๐Ÿ“‹ How to unmerge

Step-by-step unmerge: Select the merged cell. Click Merge & Center on the Home ribbon (the button toggles between merge and unmerge). Or use Format Cells dialog and uncheck the Merge cells checkbox. Cells return to individual cells with content in the original upper-left position; other previously-merged cells become empty. To unmerge multiple merged areas at once, select a range covering all merged cells, then click Merge & Center. Find merged cells using Find & Replace with Format option set to merged cells.

๐Ÿ“‹ Center Across

Center Across Selection alternative: Select the cells where you want centered text. Press Ctrl+1 to open Format Cells dialog. Go to Alignment tab. In the Horizontal dropdown, choose "Center Across Selection" instead of "Center". Click OK. Visual result looks identical to Merge & Center but cells remain individually addressable. Sorting, filtering, formulas all work normally. Most spreadsheet users should use Center Across Selection rather than merging for visual centering purposes.

๐Ÿ“‹ Find merged

Finding merged cells: Excel doesn't make finding merged cells obvious, but you can use Find & Replace creatively. Press Ctrl+F to open Find. Click Options to expand the dialog. Click Format โ†’ choose Format from Cell. Click on a known merged cell. The format includes merged cell attribute. Click Find All to identify all merged cells. This technique helps inherited spreadsheets where merged cells cause problems but locations aren't obvious. Alternative: VBA macros can identify all merged cells programmatically.

Copy and paste operations with merged cells produce inconsistent results that depend on whether source and destination both contain merged cells, whether merge structures match, and whether you're using regular paste or paste special. Sometimes paste preserves merging; sometimes it breaks merging; sometimes it produces strange combinations. The unpredictability makes copy/paste with merged cells unreliable for serious data work. Whenever possible, work with unmerged cell structures and apply merging (or Center Across Selection) only to final formatted output that won't be edited further.

Formula references to merged cells are confusing because Excel allows references to all cells within a merged area but only the upper-left cell actually contains data. References to other cells in the merged area return zero or empty values, which can produce unexpected formula results. The behavior is technically consistent (cells without content return empty) but counter-intuitive when looking at what appears to be a single cell containing data. Avoid using merged cells anywhere formulas reference cell contents. If you must include merged cells, ensure formulas reference only the upper-left cell that actually contains the data.

Print formatting is sometimes cited as legitimate use case for merged cells. When generating printed reports with formal headers, title cells, and section labels, merging produces clean visual results that print well. This use case has merit, but Center Across Selection produces equivalent visual results in most cases.

The exception is when you need exactly the same formatting (borders, fills, colors) applied to all cells in the visual block โ€” merging applies formatting to the entire merged area as one unit, while Center Across Selection requires applying formatting to individual cells separately. For complex formatted blocks, merging may produce easier formatting workflow despite the data-handling problems.

Power Query and merged cells interact poorly. When importing data from Excel files into Power Query, merged cells often produce inconsistent column structures with data only in upper-left cells of merge areas and nulls elsewhere. The result is messy data that requires substantial cleanup in Power Query before it's usable.

Spreadsheets intended as data sources for Power Query workflows should avoid merged cells entirely. If you receive data from sources with merged cells, plan transformation steps to fill empty cells with appropriate values before the data becomes useful. Sometimes the easiest fix is opening the source spreadsheet, unmerging all cells, filling empty cells, and saving โ€” then importing the cleaned version.

VBA macros can interact with merged cells programmatically through specific properties and methods. The MergeCells property indicates whether a cell is part of a merge. The MergeArea property returns the range of cells in the merge. The Merge and Unmerge methods programmatically merge or unmerge cells. Macros that need to handle data with merged cells typically check for merging, capture content, unmerge for processing, and re-merge after if needed. The complexity is one more reason merged cells create problems beyond simple visual formatting.

Excel tables (formal Excel Tables created through Insert โ†’ Table or Ctrl+T) have specific incompatibility with merged cells. Tables don't allow merged cells within them, and applying Table formatting to ranges with merged cells produces errors or unexpected results. This is actually a feature rather than a limitation โ€” Tables enforce the structured data discipline that makes spreadsheets reliable, and merged cells violate that discipline. If you're using Excel Tables (which you should for any data work), you can't accidentally merge cells within them, preventing the typical merge-related problems from creeping into your data ranges.

Best Practices for Merging

Use Center Across Selection for visual centering when possible
Avoid merging in any data ranges that will be sorted or filtered
Avoid merging in any cells that will be referenced by formulas
Use Excel Tables to enforce no-merge discipline in data ranges
Apply merging only to final formatting layer, not data structure
Document merge usage in shared workbooks for future maintenance
Consider unmerging inherited spreadsheets before working with data
Use formal print headers and footers instead of merged cells for print formatting

Inherited spreadsheets with extensive merged cells are common challenges for Excel users. Cleaning up such spreadsheets typically involves identifying all merged areas (using Find with merged cell format or VBA macro), unmerging cells, filling empty cells with appropriate values from the original merged content, and reorganizing data into properly structured tables. The cleanup is tedious but produces dramatically more useful spreadsheets afterward. For frequently-used spreadsheets with merged cell problems, the cleanup investment typically pays back through easier data manipulation across many subsequent uses.

Modern Excel features that reduce need for merging include conditional formatting (visual emphasis without structural changes), formal Excel Tables (built-in formatting and totals), PivotTables (sophisticated reporting without manual merging), and dynamic arrays (advanced functions producing structured output). These features provide substantially more powerful visual organization than merging while preserving full data functionality. Spreadsheet users investing time in mastering these features benefit through reduced reliance on merging and resulting cleaner data structures throughout their work.

For organizations with shared spreadsheets used by multiple users, establishing merging conventions reduces problems. Some teams adopt no-merge policies, requiring Center Across Selection or alternative formatting instead. Others limit merging to specific identified areas (title cells, certain header rows) with documentation. Without consistent conventions, inherited workbooks accumulate merged cell problems over time as different users add formatting using their personal preferences. Periodic spreadsheet cleanup including merge cell removal becomes necessary to maintain functionality.

Take an Excel Practice Quiz

Cell merging in spreadsheet alternatives like Google Sheets, LibreOffice Calc, and Apple Numbers works similarly to Excel with similar problems. The interoperability between these systems is generally good for basic merge operations, but complex merging may produce slight differences when files transfer between systems. International users encountering spreadsheets created in different regional Excel versions occasionally find merge behavior differs slightly due to localization differences. The general principle of avoiding merged cells in data ranges applies across all spreadsheet platforms regardless of specific implementation details.

The history of merged cells in spreadsheets traces back to the desire to recreate paper report formatting in digital spreadsheets. Early spreadsheet users wanted spreadsheets to produce reports indistinguishable from typewriter-formatted paper documents, including titles centered across columns and section headers spanning multiple cells.

Merging provided this capability but at the cost of breaking the rectangular grid structure that makes spreadsheets useful for data work. Modern spreadsheet practice generally favors data-first design with formatting applied secondarily, reducing emphasis on merging that comes from print-document mindset. Reports requiring specific print formatting often work better when generated from spreadsheets through other tools rather than direct printing.

For Excel certification candidates (MOS Excel, MOS Excel Expert), merge cell topics appear regularly in exams. Questions test ability to merge and unmerge cells using ribbon and dialog options, identify merged cells in given worksheets, troubleshoot problems caused by merging, and apply alternative formatting like Center Across Selection. Beyond certification testing, real-world Excel proficiency depends on understanding when merging is appropriate versus when alternatives work better. Junior Excel users often default to merging because the button is prominent on the ribbon; experienced users typically use merging sparingly because they've encountered the problems firsthand.

Excel Merge Quick Stats

4
Distinct merge options in Excel
Ctrl+1
Shortcut to Format Cells dialog
1
Cell that retains content after merging
Ctrl+T
Shortcut to create Excel Table (which prevents merging)

Common Merging Mistakes

๐Ÿ”ด Merging in Data Tables

Breaks sorting, filtering, formulas. Use Tables (Ctrl+T) which prevent merging within them.

๐ŸŸ  Losing Data When Merging

Merging multiple non-empty cells loses all but upper-left content. Always check for important data before merging.

๐ŸŸก Inconsistent Formatting

Merging interacts unpredictably with copy/paste. Apply final formatting layer including any merging last.

๐ŸŸข Hidden Merges in Inherited Files

Inherited spreadsheets often have merge cells in unexpected places. Use Find with format to locate.

๐Ÿ”ต Print Formatting Confusion

Merging for print formatting often works less well than proper page setup with headers and footers.

๐ŸŸฃ Power Query Issues

Merged cells in source spreadsheets create messy Power Query imports requiring substantial cleanup.

For data analysts and spreadsheet professionals, the no-merging discipline is essentially universal best practice. Data ranges should never contain merged cells. Reports generated from data should use formatting alternatives that preserve cell structure. Inherited spreadsheets should be cleaned before serious analysis. The discipline takes time to internalize for users coming from less data-focused backgrounds, but the productivity benefits across thousands of subsequent spreadsheets justify the initial habit changes. Resistance from non-technical colleagues who expect merged cells in their reports typically diminishes once they see the alternatives work equally well visually.

For casual spreadsheet users creating simple personal documents, merged cells may be perfectly acceptable. A simple budget tracker, household inventory, or personal scheduling spreadsheet doesn't need the rigid discipline that data analysis work requires. If your spreadsheets work for your purposes, the merging dogma doesn't necessarily apply. The advice against merging matters most when your spreadsheets do data work, when others might inherit your spreadsheets, when integration with other tools matters, or when long-term maintenance over years is expected. For one-time personal uses, do whatever produces the visual result you want.

Specific scenarios where merged cells cause unexpected problems include exporting to other systems (databases, web applications, BI tools), where the structural irregularity confuses systems expecting clean rectangular data. Email distribution of spreadsheets to recipients using different software versions sometimes produces unexpected merge behavior.

Long-term archival of important spreadsheets is more reliable when avoiding merged cells because future software changes might handle merging differently than current versions. Audit and review processes work better with unmerged cells where formulas and data references are unambiguous. Each of these scenarios reinforces the general principle that merged cells trade short-term visual appeal for long-term functional problems.

Conditional formatting interacts with merged cells in ways that often produce unexpected results. Conditional formatting rules apply to cells based on their content or position, but merged cells contain content only in the upper-left position. Rules that should highlight specific values may apply only to the upper-left cell of a merge while leaving other positions unformatted. Color scales, data bars, and icon sets all suffer from the merge irregularity. Cleaner visual presentation through conditional formatting requires unmerged cells where each cell can be individually evaluated and formatted based on its actual content.

Financial models and complex spreadsheets used for business analysis universally benefit from no-merge discipline. The complexity of financial models depends on cell-level precision in formulas and calculations. Merged cells introduce ambiguity that becomes catastrophic in models depending on hundreds of interrelated formulas. Professional financial analysts learn early in their careers to avoid merged cells in any model components, reserving merging only for purely cosmetic title cells in presentation layers above the actual model. The discipline becomes second nature after experiencing serious problems caused by inappropriate merging in critical models.

For Excel users coming from accounting or finance backgrounds, the no-merge habit may already be established through professional training. For users coming from administrative or general office backgrounds, learning to avoid merging may require deliberate effort. The transition pays off through fewer spreadsheet problems over time and easier collaboration with users who follow data-first practices. Investing time in mastering Center Across Selection, conditional formatting, Excel Tables, and other alternatives to merging produces substantially more capable spreadsheet skills than mastering merged cell formatting tricks.

Excel Merge Cells: Pros and Cons

Pros

  • Quick visual centering across multiple cells
  • Familiar feature recognized by all Excel users
  • Useful for non-data formatting (titles, labels)
  • Easier to apply borders and fills to merged area
  • Reasonable for simple personal spreadsheets
  • Available in all spreadsheet platforms

Cons

  • Breaks sorting and filtering in data ranges
  • Causes formula reference problems
  • Interacts poorly with copy/paste operations
  • Loses data when merging multiple non-empty cells
  • Excel Tables don't allow merging (preventing data work)
  • Center Across Selection often better alternative
Practice Excel Skills

Excel Questions and Answers

How do I merge cells in Excel?

Select the cells you want to merge by clicking and dragging. Click the Merge & Center button on the Home ribbon. The cells combine into one with content from the upper-left cell retained. Other cell content is lost when merging multiple non-empty cells. To merge without centering, click the dropdown arrow next to Merge & Center and choose "Merge Cells" or "Merge Across". To unmerge, click Merge & Center again โ€” the button toggles between merge and unmerge states for selected cells.

Why shouldn't I merge cells in Excel?

Merged cells break many Excel operations: sorting fails or produces unexpected results, filtering doesn't work properly, formulas referencing cells in merged areas return empty values for non-upper-left cells, copy/paste produces inconsistent results, Power Query imports become messy, and Excel Tables can't contain merged cells. The visual benefit of merging comes at substantial functional cost. For most visual centering needs, Center Across Selection (Format Cells โ†’ Alignment โ†’ Horizontal: Center Across Selection) provides similar visual results without the data-handling problems.

What's the difference between Merge & Center and Center Across Selection?

Merge & Center physically combines multiple cells into one cell, breaking the cell grid structure. Center Across Selection visually centers text across multiple cells while keeping each cell individually addressable. The visual result looks essentially identical, but Center Across Selection preserves all Excel functionality (sorting, filtering, formulas, copy/paste). Most spreadsheet professionals recommend Center Across Selection over merging for almost all visual centering purposes. Apply through Format Cells dialog (Ctrl+1) โ†’ Alignment tab โ†’ Horizontal dropdown.

How do I find all merged cells in Excel?

Press Ctrl+F to open Find. Click Options to expand the dialog. Click Format โ†’ Choose Format from Cell. Click on a known merged cell to capture its formatting. The format captured includes the merged cell attribute. Click Find All to identify all cells matching that format including merging. The list shows all merged cells in the worksheet. Alternative: VBA macros can identify merged cells programmatically with simple loops checking the MergeCells property of each cell in a range. Useful for large worksheets with many potential merge locations.

Can I sort data with merged cells?

Excel allows sorting ranges containing merged cells but results are often problematic. Sometimes sorting fails entirely with error messages requiring you to unmerge first. Sometimes sorting succeeds but produces visually broken output where merged headers no longer align with their data. Sometimes data appears to disappear during sorting. The reliable solution is to unmerge cells before sorting and re-apply formatting after if needed. Better practice: don't merge cells in any data range you intend to sort. Use Excel Tables to enforce the no-merge discipline within your data ranges.

Do merged cells work in Excel formulas?

Partially. Formula references to merged cells work, but only the upper-left cell of the merged area actually contains data. References to other positions in the merged area return zero or empty values. The behavior is technically consistent but often counter-intuitive when looking at what appears to be a single cell containing data. Avoid using merged cells in any data your formulas reference. If you must include merged cells in formula contexts, ensure formulas reference only the upper-left cell that contains the actual data, not other positions in the merged area.

โ–ถ Start Quiz