Lesson 13 of 104 3 min Updated Completed

How to AutoFit Columns and Rows in Excel

AutoFit resizes a column or row to fit its contents exactly, so nothing is cut off and there’s no wasted space. You can do it with a double-click or from the Ribbon.

AutoFit column width

  1. To set a column’s width by hand, drag the right border of its column heading.

    Dragging the right border of a column heading to resize it

  2. To fit the column to its contents, double-click that right border instead.

    Double-clicking a column border to AutoFit its width

  3. To fit several columns at once, first select them by their column headings.

    Selecting several columns by their headings

  4. Then double-click the right border of any one of the selected headings.

    All selected columns AutoFit with one double-click

AutoFit row height

Rows work the same way.

  1. Select the rows by their row headings. To fit every row, select them all.

    Selecting all rows by their row headings

  2. Double-click the bottom border of any one of the row headings.

    Double-clicking a row border to AutoFit the row height

AutoFit from the Ribbon

  1. Select the rows or columns. On the Home tab, in the Cells group, click Format.

    The Format button in the Cells group of the Home tab

  2. Click AutoFit Row Height (or AutoFit Column Width for columns).

    Choosing AutoFit Row Height from the Format menu

Result: the rows fit their contents.

Rows resized to fit their contents

Tip: Keyboard fans can press Alt, H, O, I (one after another) to AutoFit column width, or Alt, H, O, A for row height.