To fix Excel wrap text not expanding the box, you must enable AutoFit Row Height by selecting the affected rows, going to the Home tab, clicking Format, and selecting AutoFit Row Height. This happens because manual row height adjustments override the automatic expansion that usually accompanies the Wrap Text feature.

When you apply Wrap Text to a cell, Excel is designed to increase the height of the row to accommodate the multiple lines of text. However, if you have ever manually dragged the boundary of that row to change its height, Excel marks that row as having a "fixed height." Once a row is fixed, the Wrap Text tool will still wrap the words within the cell, but it will no longer automatically push the bottom of the cell down to show the hidden content. This creates a frustrating situation where the text is wrapped, but the box remains too small to see everything.

What You'll Need

  • A computer with Microsoft Excel installed (Windows or macOS).
  • An existing spreadsheet where text is being cut off despite Wrap Text being active.

Step-by-Step

  1. Select the Problematic Cells: Click on the specific cell that is not expanding. If you have an entire column or multiple rows with this issue, click and drag to highlight them. To apply the fix to the entire worksheet, press Ctrl + A (Windows) or Cmd + A (Mac).
  2. Navigate to the Home Tab: Ensure you are on the Home tab of the top ribbon menu. Labels may differ slightly depending on your version of Excel or your region, but the Home tab is the default view.
  3. Locate the Cells Group: Look toward the right side of the Home ribbon for the section labeled "Cells." This group contains tools for inserting, deleting, and formatting cells.
  4. Open the Format Menu: Click the "Format" button. This will open a dropdown menu containing various sizing and visibility options for your rows and columns.
  5. Select AutoFit Row Height: From the dropdown list, click on "AutoFit Row Height." This command tells Excel to ignore any previous manual height settings and automatically calculate the height needed to display all wrapped text.
  6. Verify the Result: Look at your cells. The row boundaries should immediately jump downward to fit the longest string of wrapped text in that row.
  7. Alternative Mouse Shortcut: If you prefer not to use the ribbon, you can hover your mouse over the boundary line between two row numbers on the far left of the screen. When the cursor turns into a double-sided arrow, double-click the bottom boundary of the row you want to expand. This performs the same AutoFit action as the menu command.

Common Mistakes

One of the most frequent mistakes users make is attempting to fix the issue by clicking the "Wrap Text" button repeatedly. Toggling Wrap Text on and off does not reset a manual row height. If the row height was manually set to 15 pixels, it will stay at 15 pixels regardless of whether Wrap Text is active or inactive.

Another common error is confusing Column Width with Row Height. Users often try to widen the column to make the text fit, but if the goal is to keep the column narrow and have the text stack vertically, widening the column only delays the problem. The core issue is the vertical dimension (the row), not the horizontal dimension (the column).

Some users also attempt to use "Merge and Center" in combination with Wrap Text. Merged cells are notorious for breaking the AutoFit Row Height functionality. In many versions of Excel, AutoFit simply will not work on a merged cell, leaving the user to manually drag the row height to fit the content. If you have merged cells, this is likely why the automatic expansion is failing.

Tips

To avoid this problem in the future, try to avoid manually dragging row heights unless absolutely necessary. If you need a specific look, consider using a Table format (Insert > Table), which often handles data layout more predictably than a raw grid of cells.

If you are dealing with a massive dataset, avoid selecting the entire sheet if you only need a few rows fixed. Applying AutoFit to 100,000 rows can cause Excel to lag or freeze momentarily as it calculates the height for every single entry. Instead, select only the specific range of data you are currently editing.

For a more professional look, after using AutoFit, you can apply a small amount of "Center Across Selection" instead of merging cells. This gives the visual appearance of a merged cell but maintains the individual cell structure, which allows AutoFit Row Height to continue working correctly.

Consider using Alt + Enter while typing in a cell. This creates a manual line break. While this also requires Wrap Text to be on, it gives you precise control over where the text breaks, making the AutoFit process more predictable across different screen resolutions or printer settings.

Troubleshooting

If the AutoFit Row Height command did not work, the first thing to check is whether your cells are merged. As mentioned previously, merged cells do not support automatic row height expansion. To fix this, unmerge the cells (Home > Merge & Center > Unmerge Cells), apply AutoFit, and then use "Center Across Selection" in the Format Cells alignment settings if you need the text centered across multiple columns.

Next, check if the worksheet is protected. If the sheet is locked, certain formatting options, including the ability to change row heights, may be disabled. Go to the Review tab and check if it says "Unprotect Sheet." If it does, click it and enter the password if required.

If the text still looks cut off even after AutoFit, check the vertical alignment of the cell. Right-click the cell, select "Format Cells," go to the "Alignment" tab, and ensure the Vertical alignment is set to "Top," "Center," or "Bottom" rather than "Justify." Sometimes "Justify" can create odd spacing that makes the text appear cut off at the bottom.

In rare cases, a very large amount of text in a single cell (thousands of characters) may hit the maximum row height limit of Excel. Excel has a hard limit of 409 points for row height. If your wrapped text exceeds this limit, AutoFit will only expand the row to 409 points, and the remaining text will remain hidden. The only solution for this is to widen the column or split the text into multiple cells.

Frequently Asked Questions

Why does Wrap Text work sometimes but not other times?

It usually depends on whether the row height was ever manually adjusted. If you leave the row height on "Automatic," Wrap Text expands the box instantly. If you drag the row line even a tiny bit, Excel switches to "Manual" height, and AutoFit stops working until you reset it.

Can I make all rows AutoFit at once?

Yes. Click the triangle in the top-left corner of the spreadsheet (between column A and row 1) to select every cell. Then, go to Home > Format > AutoFit Row Height. This will reset every row in the entire workbook to fit its content.

Does AutoFit Row Height affect my printing?

Yes, it ensures that all text is visible on the printed page. However, be careful: if one cell has a huge amount of text, AutoFit may make that row so tall that it pushes other data onto a second page. Always check the Print Preview after using AutoFit.

Will AutoFit work if I have hidden rows?

AutoFit will only apply to the rows you have selected. If you select the entire sheet, it will apply to hidden rows as well, but you won't see the change until you unhide them. It is generally safer to unhide rows first before applying formatting changes.

Is there a keyboard shortcut for AutoFit Row Height?

While there isn't a single-key shortcut, you can use the Alt sequence on Windows: Alt, H, O, A. This navigates the Home tab (H), Format menu (O), and AutoFit Row Height (A) in succession.