How to AutoFit Columns and Rows in Excel (Plus Shortcuts)

The quickest way to AutoFit a column in Excel is to double-click the right edge of its column header. To AutoFit from the keyboard, select the column and press Alt, then H, O, I. For rows, press Alt, H, O, A. Both shortcuts walk through the Home > Format menu.

In this article:

How to AutoFit Columns in Excel

  1. Select the column or columns you want to resize. To pick every column, click the Select All button in the top-left corner of the sheet.
  2. Double-click the boundary on the right side of any selected column header.
Steps to AutoFit column width in Excel

Excel widens or narrows the columns to fit the longest entry. You can also go to Home > Format and choose AutoFit Column Width.

Card showing how to AutoFit columns in Excel with the mouse, ribbon or keyboard
Three ways to AutoFit, including the KeyTip shortcut.

Result: Each selected column becomes just wide enough for its longest entry, so nothing is cut off or shown as #####.

Keyboard Shortcuts to AutoFit Columns and Rows

  • AutoFit column width: Alt, H, O, I
  • AutoFit row height: Alt, H, O, A
  • Set an exact column width: Alt, H, O, W

Press the keys one after another, not at the same time. These are KeyTips, the letters Excel shows on the ribbon when you press Alt. If your version shows different letters, follow the ones on screen. See Microsoft’s Excel keyboard shortcuts for how KeyTips work.

Three Ways to Change Column Width

  1. Drag: drag the right edge of the column header until the column is the width you want.
  2. Type a number: right-click the column header, choose Column Width, type a value, and click OK.
  3. AutoFit: double-click the right edge of the column header.

Column width is measured in characters of the default font. The default is 8.43 and the maximum is 255. Row height is measured in points, up to 409. These sizes apply to whole columns and rows; to make one cell look bigger, see whether you can resize a single cell in Excel.

Result: The column width changes to your exact value, which helps when several columns need to match.

How to Set Column Width in Inches

  1. Go to View > Page Layout.
  2. Right-click the column header and choose Column Width.
  3. Type the width in inches and click OK.

In Page Layout view, Excel uses inches by default. To use centimeters or millimeters, go to File > Options > Advanced and change Ruler Units under Display.

Result: The columns print and display at the width you entered in inches.

How to Copy One Column’s Width to Another

Microsoft’s Change the column width and row height article explains how to match widths without measuring:

  1. Select a cell in the column that has the width you want.
  2. Press Ctrl + C, or go to Home > Clipboard > Copy.
  3. Right-click a cell in the target column, point to Paste Special, and select Keep Source Column Widths.
Card showing how to copy a column width with Paste Special in Excel
Paste Special can copy just the column width.

Result: The target column takes on the same width as the source column.

Why Is Excel Showing ##### Instead of a Number?

Excel shows ##### when a column is too narrow to show the whole value. Widen the column or AutoFit it and the number appears. Microsoft lists a few other fixes:

  • Check Shrink to fit in the Alignment settings on the Home tab to make the text smaller.
  • Use Decrease Decimal on the Home tab if the number has too many decimal places.
  • Change a long date to Short Date in the Number Format list.
  • If a date or time formula returns a negative value, Excel also shows #####. Fix the formula or change the cell to a number format.

Sources: Microsoft’s Change the column width and row height and How to correct a ##### error articles.

Frequently Asked Questions

What is the default column width in Excel?

Microsoft lists 8.43 characters as the default column width, with a maximum of 255. Rows default to 15 points and can go up to 409.

Why doesn’t double-clicking the column edge work?

Make sure you double-click the boundary on the right side of the column header, not inside the column.

Can I AutoFit every column at once?

Yes. Click the Select All button in the top-left corner, then double-click any column boundary.

More Excel Guides

Join Our Free Newsletter

Featured guides and deals

You may opt out at any time.
Read our Privacy Policy