Fix Alignment Problems with Wrapped Text in Merged Excel Cells
Question details
The user needs to fix inconsistent text alignment issues that occur when Wrap Text and Merge & Center are applied simultaneously to 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.
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.
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.
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.
Click inside the Formula Bar. Manually delete any extra spaces at the beginning or end of your text, and remove any unrecognized characters.
Highlight the original cell containing the text and the adjacent empty cells across which you want the text to be centered.
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.

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. Open your file in WPS Spreadsheet: Launch WPS Office and open your workbook. Select the misaligned merged cell.
- 2. Disable merging: On the Home tab, click the 'Merge and Center' button to unmerge the cells.
- 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.

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.




