How to Set Cell Height in Excel
In this article
You can set cell height in Excel by dragging the bottom border of the cell header row, double-clicking between row numbers to auto-fit content, or entering a specific row height value in the Format Cells dialog box. This adjusts the vertical spacing of rows to display text, numbers, or merged cells more clearly, or to match a specific document layout.
What You'll Need
- A computer with Microsoft Excel installed (Windows, macOS, or the web version).
- A spreadsheet with data in the rows you wish to resize.
- A mouse or trackpad for dragging, or a keyboard for precise input.
Step-by-Step
- Open your workbook. Launch Excel and load the specific spreadsheet containing the rows you intend to modify. Ensure the worksheet is in "Normal" view, not "Page Layout" view, as row height behaves differently in print preview.
- Select the target rows. Click on the row number header on the far left side of the screen. To select multiple consecutive rows, click the first row number, hold down the Shift key, and click the last row number. To select non-consecutive rows, click the first row, hold Ctrl, and click the subsequent row numbers. You can also click and drag across multiple row headers to highlight them all at once.
- Use the mouse to adjust height. Hover your mouse cursor over the bottom edge of the selected row header. The cursor will change from a pointer to a double-headed arrow pointing up and down. Click and drag the mouse downwards to increase the row height. Dragging upwards will decrease the height. Release the mouse button to set the new size. This method provides a visual, intuitive way to resize rows to a generic height.
- Use the double-click shortcut (AutoFit). If you want Excel to automatically determine the best height for a row based on the size of its content, hover your mouse over the bottom border of the specific row header. When the double-headed arrow appears, double-click the mouse left button. Excel will instantly resize the row to fit the tallest piece of content in that row. This is the fastest way to ensure text is fully visible without manual adjustment. To auto-fit multiple rows, select them first, then double-click the border of any one of the selected row headers.
- Use the Format Cell dialog for precise control. For exact measurements, use the menu options. Right-click on the selected row number headers. From the context menu, choose Format Cells... (or simply Row Height... on some versions). This opens a dialog box where you can type a specific value into the "Row height" field. This is useful when you need rows to be a specific number of points tall, such as 30 points or 72 points.
- Apply the changes. Click the OK button in the dialog box to apply your chosen height to the selected rows.
- Adjust height for merged cells. When merging cells vertically, Excel often displays "# VALUE!" or an error if the merged area is too small for its content. To fix this, select the merged cell and use the double-click shortcut or the Format Cells dialog to increase the row height to accommodate the text.
Common Mistakes
One of the most common errors users make is attempting to change the height of a single cell within a selected row. In Excel, row height is a property of the entire row, not individual cells. If you click on a single cell inside a row and try to change its height, nothing will happen. You must select the entire row header to change the height for every cell in that row.
Another mistake is ignoring the difference between row height and column width. Column width is measured in characters (roughly the width of the character '0'), whereas row height is measured in points (1/72nd of an inch). While they both control the layout of data, their units of measurement are different, and you cannot directly convert between them using a simple formula.
Users also frequently forget that changing the height of one row does not automatically change the height of all rows. If you have a single row of text that needs to be taller to prevent text from wrapping, you must adjust that specific row. If you try to adjust the height of a row that contains merged cells and multiple lines of text, the merged cell may still appear cut off if the row height is not sufficient.
Tips
Use the Page Layout view to get a better sense of how your rows will look on a printed page. In this view, Excel displays a ruler and gridlines, making it easier to visualize the physical space your data occupies. You can resize rows in this view, but remember that the measurements are still in points, not inches or centimeters.
If you have a large dataset with many rows, manually adjusting the height of every row can be time-consuming. Instead, use the AutoFit feature on a selection of rows to quickly standardize their height. This ensures that all rows in that selection have enough space for their content without being excessively tall.
To quickly reset a row to its default height (usually 15 points), right-click on the row header and choose Reset Row Height from the context menu. This is helpful if you have manually resized a row and then want to return it to the standard, compact size.
Troubleshooting
If you double-click the border of a row and nothing happens, it may be because the row is already set to the Default Row Height. Excel calculates the minimum height required to display the content. If your content is already visible and not wrapping to a new line, the row will not resize itself. You can check the current row height by right-clicking on the row header and selecting Row Height.... If the value is set to the default, you may need to manually increase the number to force a resize.
If you resize a row and the text inside it disappears or is cut off, the row height is likely too small to display the content. The text is there, but it is being hidden below the bottom edge of the cell. Increase the row height using the mouse drag method or the Format Cells dialog to make the content visible again.
If you are using a Mac, the context menu options for row height may vary slightly in naming. Look for Format Cells... or Row Height... in the right-click menu. On Windows, the option is almost always explicitly labeled Row Height....
Frequently Asked Questions
Can I set a different height for the first row than the rest?
Yes, you can. Row height is a per-row setting. You can select just the first row header and adjust its height independently of the other rows in the spreadsheet.
Does changing row height affect the print size?
Yes, row height is directly related to print size. Increasing the point value of a row height will increase the vertical space it occupies on the printed page. If you need rows to be a specific size on paper, use the Format Cells dialog to enter the exact point value.
How do I change the height of multiple rows at once?
Simply select the row headers of the multiple rows you want to change. You can click and drag across several row numbers to select them all. Then, follow any of the resizing methods (drag, double-click, or Format Cells) to apply the change to all selected rows simultaneously.
Why does my text wrap to a new line automatically?
Text wraps when the column width is too narrow for the text to fit horizontally. If the text is wrapping to a new line, the row height will automatically increase to accommodate the new line. To stop the wrapping and force the row to stay small, you must first increase the column width.
What is the default row height in Excel?
The default row height in Excel is typically set to 15 points. This is the standard height for rows when a new workbook is created. You can reset the height of any row to this default value by right-clicking on the row header and selecting Reset Row Height.
Can I change the height of a merged cell?
Yes, you can change the height of a merged cell by selecting the row that contains the merged cell and adjusting its height. However, if the merged cell contains more text than can fit in the current row height, the text may be cut off. You must increase the row height to ensure the entire content of the merged cell is visible.