Excel Practice Test

โ–ถ

To change row height in Excel, select the row or rows, go to Home > Format > Row Height, type a value in points, and select OK; to fit the contents instead, choose Home > Format > AutoFit Row Height or double-click the boundary below the row heading. Row height is measured in points: the default is 15, the maximum is 409, and a height of 0 hides the row.

Row height in Excel sounds trivial until a long string of text gets clipped or a row stubbornly refuses to grow. The default of 15 points suits a single line of normal text, but wrapped text, bigger fonts, and merged cells can outgrow it. This guide walks through the ways to adjust row height: dragging, double-click AutoFit, ribbon dialog entry, Key Tips, and VBA.

Row height is measured in points, the same unit used for fonts. Column width, by contrast, is measured in characters of the default font, which is why row and column sizing feel a little inconsistent. Excel's limit for row height is 409 points, so a value above that will not work. For more on resizing both axes together, see our guide to resizing cells in Excel.

Excel Row Height: Key Numbers

15 pt
Default row height
409 pt
Maximum row height
0 pt
Minimum (row hidden)
1,048,576
Rows per worksheet
Quick Answer
To change row height in Excel: select the row, then either drag the boundary below the row heading, double-click that boundary for AutoFit, or use Home โ†’ Format โ†’ Row Height to type a value in points. Maximum height is 409 points and the minimum is 0, which hides the row.

Method 1: Drag the Row Border With Your Mouse

This is the fastest way to change a single row. Hover over the boundary below the row heading you want to resize, then click and drag down to make the row taller or up to make it shorter. To resize several rows at once, select their row headings first, then drag the boundary below any one of the selected headings and every selected row takes the new height.

Method 2: Set an Exact Height From the Ribbon

When you need a precise value rather than an eyeballed drag, use the ribbon dialog. Select the row or rows you want to change, go to Home > Cells > Format, and under Cell Size select Row Height. Type the value in the Row height box and select OK. Microsoft lists 15.00 points as the default, 0 as the minimum, and 409 as the maximum.

Method 3: Keyboard Access on Windows

Microsoft's shortcut list does not include a dedicated one-key command for row height, but Key Tips give keyboard access to the same commands. Press Alt to display the Key Tips, press the letter shown for the Home tab, and follow the on-screen letters through Format to Row Height or AutoFit Row Height. The letters on your own screen are the reliable guide. Many readers pair this with the essential Excel keyboard shortcuts for navigation and formatting.

Method 4: Row Height on Mac

In Excel for Mac, select the row, then choose Format from the menu bar, point to Row, and click Height. You can also drag the separator beneath a row heading, or double-click it to fit the row to its contents. Microsoft's Mac instructions cover Excel for Microsoft 365 for Mac, Excel 2024, and Excel 2021 for Mac.

Ways to Change Row Height

๐Ÿ”ด Drag the Border

Hover the boundary below a row heading, click, and drag. Select several rows first to resize them all at once.

๐ŸŸ  Ribbon Dialog

Home, then Format, then Row Height under Cell Size. Type an exact value in points, from 0 to 409.

๐ŸŸก AutoFit Double-Click

Double-click the boundary below the row heading. The row snaps to fit its contents.

๐ŸŸข Select All and Double-Click

Click Select All, then double-click the boundary below any row heading to autofit every row on the worksheet.

๐Ÿ”ต Key Tips (Windows)

Press Alt to show Key Tips, then follow the on-screen letters through Home and Format to Row Height or AutoFit Row Height.

๐ŸŸฃ VBA Macro

Set Rows.RowHeight = 25 (points) or call Rows.AutoFit on a row or range of rows for bulk changes.

Method by Platform

๐Ÿ“‹ Windows

Use Home โ†’ Cells โ†’ Format โ†’ Row Height under Cell Size to type an exact value, or AutoFit Row Height to fit the contents. Drag the boundary below a row heading for visual sizing, or double-click it to autofit. Microsoft documents these steps for Excel for Microsoft 365, 2024, 2021, 2019, and 2016. Press Alt to see Key Tips for keyboard access.

๐Ÿ“‹ Mac

Use Format menu โ†’ Row โ†’ Height from the menu bar to type an exact value. Double-click the separator beneath a row heading to fit the row to its contents, or drag it to size by hand. Select all cells with the Select All triangle to resize every row at once.

Method 5: AutoFit Row Height

AutoFit sizes a row to its contents instead of a value you guess. To trigger it, double-click the boundary below the row heading, or select the rows and choose Home โ†’ Format โ†’ AutoFit Row Height. Microsoft's quick tip for the whole sheet is to click Select All and double-click the boundary below one of the row headings.

AutoFit is also the fix for wrapped text. Microsoft advises that when wrapped text is not fully visible, you use Home โ†’ Format โ†’ AutoFit Row Height or adjust the height manually. Our deep dive on AutoFit in Excel covers the edge cases.

Method 6: Set Every Row at Once

To give every row on the worksheet the same height, click Select All, then drag the boundary below any row heading, or open Home โ†’ Format โ†’ Row Height and type a value. Microsoft documents both approaches for changing all rows on the worksheet.

Method 7: VBA Macro for Bulk Row Height

For hundreds of rows or a repeatable workflow, use VBA. Open the Visual Basic Editor with Alt+F11, insert a module, and paste a short routine. The RowHeight property sets the height, in points, for all rows in a range: Rows.RowHeight = 25 for the whole sheet or Range("A1:A100").RowHeight = 30 for a range.

To fit rows to their contents, use the Range.AutoFit method on a row or range of rows, for example Rows("1:100").AutoFit. Microsoft notes that RowHeight can return Null when the rows in a range differ, which includes ranges containing merged cells. Save the workbook as .xlsm to keep the macro.

Row Height Quick Reference

These are the row-height facts documented by Microsoft Support.

ItemVerified detailWhere it applies
Default row height15 pointsExcel for Microsoft 365, 2024, 2021, 2019, 2016
Maximum row height409 pointsAll worksheets
Minimum row height0 (the row is hidden)All worksheets
Set an exact heightHome > Cells > Format > Cell Size > Row Height, type value, OKWindows
AutoFit one or more rowsHome > Cells > Format > Cell Size > AutoFit Row HeightWindows
Quick AutoFitDouble-click the boundary below the row headingWindows and Mac
AutoFit every rowSelect All, then double-click the boundary below any row headingWindows
Mac exact heightFormat menu > Row > HeightExcel for Mac
Merged cellsAutoFit cannot be used; set the height manuallyAll platforms
Rows per worksheet1,048,576Excel specifications and limits
VBARange.RowHeight (points); Range.AutoFit on rowsDesktop VBA

Sources: Change the column width or row height, Excel specifications and limits, and Excel for Mac row height.

Practice Excel Skills Now

When Row Height Will Not Change

Sometimes a row will not fit its text or a height will not stick. A few causes are worth checking first.

Merged cells. Microsoft states that you cannot use AutoFit on rows or columns that contain merged cells. For those rows, set the height manually through Home โ†’ Format โ†’ Row Height. Our guide to Excel merge cells explains the alternatives.

Protected sheet. A worksheet protected with Review โ†’ Protect Sheet only allows the actions its author ticked, so formatting commands may be unavailable. Unprotect the sheet (Review โ†’ Unprotect Sheet, entering the password if one was set), resize, then reapply protection.

Wrapped text. If wrapped text is cut off, apply AutoFit Row Height or type a taller value. Microsoft's wrap-text article describes both options.

Row Height vs Column Width

Row height is in points, from 0 to 409. Column width is measured in characters of the default font, with a limit of 255 characters. The two units do not convert directly, so set each in its own dialog. Our guide to adjusting column width covers the column side in depth.

Hidden Rows and Zero-Height Rows

A row with a height of 0 is hidden. To bring it back, select the rows on both sides, right-click the selection, and choose Unhide, or double-click the double line between the two row headings. When consecutive rows are hidden, Microsoft notes you cannot unhide only some of them: unhide all, then hide the ones you want out of view.

Row Height Checklist

Turn on Wrap Text for long-text columns so the text has room to wrap
Apply AutoFit Row Height so wrapped text is fully visible
Set merged-cell rows manually, since AutoFit cannot be used on them
Type an exact value in Home โ†’ Format โ†’ Row Height when you need consistent heights
Keep heights between 0 and 409 points
Check Review โ†’ Unprotect Sheet if formatting commands are unavailable
Select Select All, then double-click a row boundary to autofit the whole sheet

AutoFit vs Manual Height

Pros

  • AutoFit handles wrapped text automatically
  • Double-click on the row boundary is the fastest single action
  • Works on multiple selected rows or the whole sheet
  • Manual entry allows exact heights in points

Cons

  • Cannot be used on rows that contain merged cells
  • Sizes each row separately, so uniform heights need a typed value
  • Rows cannot exceed the 409-point maximum

Common Mistakes to Avoid

The biggest trap is relying on AutoFit for merged cells. Microsoft states AutoFit cannot be used there, so wrapped text inside a merge can print clipped unless you set the height by hand. The second trap is dragging when you need consistency: type the exact value into the Row Height dialog instead.

Power-User Tips

Use AutoFit as a final pass after you have entered all your data and applied wrap text. Pair row height with Wrap Text for long-form text columns such as notes and descriptions. Remember that row height changes only how a row is displayed, not the values in its cells, so formulas and sort order are unaffected.

Putting It All Together

For one row, drag the boundary or double-click it for AutoFit. For many rows, select first, then drag once or AutoFit once. For an exact value, use Home โ†’ Format โ†’ Row Height. For bulk changes across hundreds of rows, use VBA. When something will not resize, check for merged cells or sheet protection first. If you are getting deeper into Excel formatting, our Excel Practice Test page brings together the guides on the site with practice questions for certification prep.

Row Height Guide by Situation

๐Ÿ”ด Default Rows

Leave rows at the 15-point default unless the content needs more room.

๐ŸŸ  Wrapped Text Rows

Turn on Wrap Text, then apply AutoFit Row Height so every line is visible.

๐ŸŸก Merged Cell Rows

AutoFit cannot be used on merged cells, so type an exact height in Home, Format, Row Height.

๐ŸŸข Fixed-Format Rows

For consistent spacing, select the rows and enter one value in points in the Row Height dialog.

๐Ÿ”ต Hidden Rows

A height of 0 points hides a row. Select rows on both sides and choose Unhide to show it again.

๐ŸŸฃ Tallest Possible Row

Excel allows a maximum row height of 409 points, so very tall content must be split or reformatted.

Take the Excel Practice Test

Excel Questions and Answers

What is the default row height in Excel?

Microsoft lists the default row height as 15 points. Row height is measured in points, the minimum is 0, and a row set to 0 is hidden. The maximum is 409 points, so any value you type must fall between 0 and 409. The default applies across Excel for Microsoft 365, 2024, 2021, 2019, and 2016, according to Microsoft's row height instructions.

What is the maximum row height in Excel?

The maximum row height is 409 points, according to Microsoft's Excel specifications and limits page. The minimum is 0, which hides the row. If wrapped text needs more than 409 points, the row cannot grow further, so widen the column, shorten the text, or reduce the font size. A single cell can hold up to 32,767 characters, far more than one row can display.

How do I set an exact row height in Excel?

Select the row or rows, go to Home, Cells, Format, and under Cell Size choose Row Height. Type the value in points, then select OK. On Excel for Mac, choose Row and then Height from the Format menu instead. To resize by hand, drag the boundary below a row heading, and drag from a selected heading to change several selected rows at once.

Is there a keyboard shortcut for row height in Excel?

Microsoft's Excel shortcut list has no dedicated row-height key, but Key Tips give keyboard access to the same command. Press Alt to display the Key Tips, press the letter shown for the Home tab, then follow the on-screen letters through Format to Row Height or AutoFit Row Height. The letters shown on your screen are the reliable guide for your version.

How do I AutoFit all rows in Excel at once?

Click Select All, the triangle above the row numbers and left of the column letters, then double-click the boundary below any row heading. Microsoft describes this as the quick way to autofit every row on the worksheet. You can also select rows and choose Home, Format, AutoFit Row Height, which sizes the selected rows to fit their contents.

Why will my row height not change or AutoFit in Excel?

The usual cause is merged cells: Microsoft states you cannot use AutoFit on rows or columns that contain merged cells, so set those heights manually through Format, Row Height. For ordinary wrapped text, turn on Wrap Text first, then apply AutoFit Row Height. Sheet protection can also restrict formatting changes, so check Review, Unprotect Sheet if the command is unavailable.

How do I change row height in Excel using VBA?

Set the RowHeight property of a range, for example Rows(1).RowHeight = 25, and Excel applies the value in points to every row in the range. Use the Range.AutoFit method on a row or range of rows, such as Rows("1:10").AutoFit, to size rows to their contents. Microsoft notes RowHeight can return Null when rows differ, for example with merged cells.

How do I unhide a row with zero height in Excel?

A row set to a height of 0 is hidden. Select the rows on both sides of it, right-click the selection, and choose Unhide, or double-click the double line between the two row headings. Microsoft notes that when consecutive rows are hidden you cannot unhide only some of them; unhide all, then hide again the rows you want out of view.
โ–ถ Start Quiz