How to Expand All Rows in Excel: AutoFit and Manual Guides
In this article
To expand all rows in Excel so that all content is visible, the fastest method is to select the entire worksheet (Ctrl + A) and double-click the boundary line between any two row headers. This triggers the AutoFit feature, which instantly adjusts every row height to fit the tallest piece of data in each respective row. This process ensures that no text is cut off and no empty space is wasted, providing a clean, professional look to your dataset regardless of how many thousands of rows you are managing.
What You'll Need
- A computer with Microsoft Excel installed (Windows or macOS).
- An open Excel workbook containing the data you wish to expand.
- A mouse or trackpad for precise clicking and dragging.
Step-by-Step
Depending on your specific goal—whether you want Excel to decide the height automatically or you want every row to be exactly the same size—you should choose one of the following three methods. Note that menu labels may differ slightly depending on your version of Excel or your operating system.
Method 1: Using AutoFit (The Fastest Way)
- Select All Cells: Click the "Select All" button, which is the small gray triangle located at the top-left corner of the grid, where the row numbers and column letters meet. Alternatively, press
Ctrl + Aon Windows orCommand + Aon Mac. - Locate the Row Boundary: Move your cursor to the left-hand side of the screen where the row numbers (1, 2, 3, etc.) are listed. Hover your mouse over the line that separates any two row numbers. Your cursor will change from a thick white cross to a double-sided black arrow.
- Double-Click: Once the double-sided arrow appears, double-click your left mouse button. Excel will immediately scan every row in the selected area and expand them to the minimum height required to show all text.
Method 2: Setting a Uniform Row Height
- Select All Rows: Click the "Select All" triangle in the top-left corner or press
Ctrl + A. - Open the Row Height Menu: Right-click on any of the row number headers on the left side of the screen. A context menu will appear.
- Select Row Height: Click on the option labeled "Row Height..." from the list.
- Enter a Value: A small dialog box will pop up. Type in a specific numerical value (for example, 25 or 30) and click "OK". Every row in your sheet will now be expanded to that exact height, regardless of the content.
Method 3: Using the Ribbon Menu
- Select Your Data: Highlight the specific rows you want to expand, or select the entire sheet using the top-left corner button.
- Navigate to the Home Tab: Ensure you are on the "Home" tab of the top ribbon.
- Open the Format Menu: In the "Cells" group on the right side of the ribbon, click the "Format" button.
- Choose AutoFit Row Height: From the dropdown menu, select "AutoFit Row Height". This achieves the same result as the double-click method but is useful if you prefer using the menu system.
Common Mistakes
One of the most frequent errors users make is attempting to AutoFit rows while a "Merge and Center" cell is active. Excel's AutoFit feature generally does not work on merged cells. If you have a large block of merged cells across several rows, double-clicking the row boundary will often fail to expand the row to fit the text, leaving your data cut off. To fix this, you must either unmerge the cells or manually drag the row height to the desired size.
Another common mistake is selecting only a single column before trying to expand rows. While selecting a column allows you to AutoFit the column width, expanding rows requires you to select the row headers or the entire sheet. If you only have one cell selected and double-click the row boundary, Excel will only expand that one specific row, leaving the rest of your data compressed.
Users also often confuse "Wrap Text" with row expansion. Simply turning on Wrap Text will not always automatically expand the row height if the row height was previously set manually. If you enable Wrap Text and the row doesn't grow, you must follow the AutoFit steps mentioned above to force the row to acknowledge the new line breaks.
Tips
For those working with massive datasets, using keyboard shortcuts is significantly faster than navigating menus. To select the entire sheet, use Ctrl + A. To access the Format menu via the keyboard (on Windows), you can press Alt, then H, then O, then A in sequence. This sequence triggers the Home > Format > AutoFit Row Height command without needing a mouse.
If you find yourself constantly resizing rows because you enter long strings of text, consider using the "Wrap Text" feature in conjunction with AutoFit. By selecting your data and clicking "Wrap Text" in the Home tab, Excel will allow the text to flow onto multiple lines. Once Wrap Text is on, the AutoFit double-click method becomes much more powerful, as it will expand the row to fit the multiple lines of wrapped text rather than just the tallest single character.
To maintain a professional look, avoid making rows excessively tall. If AutoFit creates a row that is too large because of one single cell with an enormous amount of text, it may be better to set a manual maximum row height and use a "Note" or "Comment" for the oversized text, keeping the rest of the spreadsheet compact and readable.
Troubleshooting
The rows won't expand even after double-clicking: First, check if your cells are merged. As mentioned, merged cells break the AutoFit functionality. Try unmerging the cells in that row and then double-clicking again. If that isn't the issue, check if the worksheet is protected. If the sheet is locked or protected, you may be unable to change row heights until you go to the "Review" tab and select "Unprotect Sheet".
The row height is too small for the text: This usually happens when "Wrap Text" is disabled. If the text is one long string, Excel will try to keep it on one line. If the column width is narrow, the text is simply hidden. Go to the Home tab, click "Wrap Text", and then perform the AutoFit double-click again.
Only some rows expanded: This occurs when you haven't selected the entire worksheet. Ensure that the row numbers on the left are highlighted in blue. If only a few are blue, only those will change. Click the top-left triangle to ensure every single row is included in the operation.
Excel is freezing when I try to expand all rows: If you have hundreds of thousands of rows with complex formulas, AutoFit can be resource-intensive because Excel must calculate the height for every single cell. To resolve this, try selecting smaller chunks of rows (e.g., 10,000 at a time) rather than the entire sheet at once.
Frequently Asked Questions
Can I expand all rows to a specific height at once?
Yes. Select the entire sheet by clicking the top-left corner triangle, right-click any row number, select "Row Height," enter your desired value, and click OK.
Does AutoFit work for columns as well as rows?
Yes. The process is identical: select the entire sheet and double-click the boundary line between any two column letters (e.g., between A and B) to AutoFit all column widths.
Will expanding rows change my print settings?
Yes, expanding rows increases the vertical space the data occupies. This may push your data onto additional pages when printing. You may need to adjust your "Scaling" settings in the Page Layout tab to "Fit All Rows on One Page" if necessary.
Why does AutoFit make some rows look uneven?
AutoFit adjusts each row based on the content within that specific row. If Row 2 has three lines of text and Row 3 has only one, Row 2 will be taller. To make them even, use the "Row Height" manual entry method instead.
Is there a way to undo a bulk row expansion?
You can press Ctrl + Z immediately after the action to undo it. Otherwise, you will need to select the rows again and either use AutoFit to reset them or manually enter a standard row height (usually 15 for default Calibri 11 font).