Formatting Issues

Fix Alignment Problems with Wrapped Text in Merged Excel Cells

Amos GikundaAmos Gikunda Oct 26, 2026 870 views

Question details

The user needs to fix inconsistent text alignment issues that occur when Wrap Text and Merge & Center are applied simultaneously to cells.

How to Fix Alignment Problems with Wrapped Text in Merged Excel Cells
Product
Excel
Device & OS
not provided
Scenario
Formatting a spreadsheet where text (especially text copied from web pages) needs to span across multiple columns while wrapping properly.
Observed behavior
Text inside merged and wrapped cells appears unevenly aligned due to extra spaces, nonprinting characters, or conflicts between text wrapping and cell merging.
Before you start

Click into the formula bar of the affected cell to verify if there are trailing spaces or hidden paragraph breaks causing the alignment to display incorrectly.

Solution 1Recommended

Clean Text and Use Center Across Selection

Removing invisible characters and switching from 'Merge & Center' to 'Center Across Selection' offers a more stable formatting solution for wrapped text.

When text is copied from external sources like websites, it often carries over nonprinting characters and extra spaces. Combined with Excel's Merge & Center feature, this can break AutoFit and standard alignment rules.

1
Unmerge the cell

Select the problem cell, navigate to the Home tab, and click 'Merge & Center' to unmerge the cells. Click 'Wrap Text' to turn off wrapping temporarily.

2
Clean up the text

Click inside the Formula Bar. Manually delete any extra spaces at the beginning or end of your text, and remove any unrecognized characters.

3
Select the cell range

Highlight the original cell containing the text and the adjacent empty cells across which you want the text to be centered.

4
Apply Center Across Selection

Right-click the highlighted range and choose 'Format Cells'. Go to the Alignment tab, open the Horizontal dropdown menu, select 'Center Across Selection', and click OK.

Clean Text and Use Center Across Selection
Best Practice: Using 'Center Across Selection' instead of merging cells prevents common spreadsheet issues, such as errors when sorting data, selecting columns, or applying filters.
Efficient Spreadsheet Formatting

Format Cells Smoothly with WPS Spreadsheet

WPS Spreadsheet provides a highly intuitive interface for cleaning up messy data and applying advanced alignment settings like 'Center Across Selection' without the usual formatting glitches.

  1. 1. Open your file in WPS Spreadsheet: Launch WPS Office and open your workbook. Select the misaligned merged cell.
  2. 2. Disable merging: On the Home tab, click the 'Merge and Center' button to unmerge the cells.
  3. 3. Format alignment: Select the range of cells, right-click and choose 'Format Cells'. Under the Alignment tab, set Horizontal to 'Center Across Selection' and click OK.
Easily format cells and manage text wrapping without breaking grid layouts.100% compatibility with Microsoft Excel formats (.xls, .xlsx, .csv).Built-in tools to quickly clear web formatting and non-printable characters.Free, lightweight, and features a familiar tabbed interface.
QA img-9

Frequently Asked Questions

Why does wrapped text get cut off in merged Excel cells?

Excel's AutoFit Row Height feature does not automatically work on merged cells. If the wrapped text requires more space, you must manually click and drag the bottom border of the row header to adjust the height.

How can I automatically remove hidden web characters from my text?

You can use the CLEAN function to strip out non-printable characters and the TRIM function to remove extra spaces. For example, typing =TRIM(CLEAN(A1)) in an adjacent cell will output a clean version of the text from cell A1.

Does 'Center Across Selection' work vertically?

No, 'Center Across Selection' is exclusively a horizontal alignment feature in Excel. If you need text to span across multiple rows vertically, you will still need to use the Merge Cells feature.