Wrap Text and Fit Font Size in Merged Excel Cells
Question details
The user wants wrapped text and an automatically fitted font size in a merged Excel cell.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Formatting text to fit within a large merged range while keeping it wrapped.
- Observed behavior
- Excel does not reliably support Wrap Text and Shrink to Fit together, particularly in merged cells.
Select the merged cell and check its dimensions and text on the Home tab. Decide whether the layout requires merged cells or whether you can use a wider unmerged cell instead.
Unmerge the cells and adjust the wrapped text layout
Use an unmerged cell when readable wrapped text is more important than automatically shrinking the font.
Select the merged cell, then choose Home > Merge & Center > Unmerge Cells.
Select the cell containing the text and choose Home > Wrap Text.
Drag the column boundary to set a suitable width, then select the row and choose Home > Format > AutoFit Row Height.
Select the text cell and use the Font Size box on the Home tab to increase or decrease the size as needed.

Center a heading across cells without merging
Use Center Across Selection for a centered, single-line heading when a merged range is not essential.
Edit Spreadsheet Layouts with WPS Office
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and support for Microsoft Excel formats, making it easy to move existing workbooks and adjust their layouts.

Frequently Asked Questions
Can I use Wrap Text and Shrink to Fit together in Excel?
Excel does not reliably support both settings at once; Shrink to Fit may be unavailable when Wrap Text is enabled. For wrapped text, adjust the cell dimensions and font size instead.
Why doesn't AutoFit adjust the height of my merged cell?
Excel's AutoFit Row Height does not reliably adjust rows containing merged cells. Unmerge the range, enable Home > Wrap Text, and then use Home > Format > AutoFit Row Height.
How do I center a heading without merging cells?
Put the heading in the leftmost cell, select the cells across the heading, and open Format Cells > Alignment. Choose Center Across Selection under Horizontal.
Can VBA automatically resize the font for wrapped text?
A custom VBA macro can calculate and change the font size based on the text and available space. The code must account for the cell dimensions, wrapping, and merged range used in the workbook.




