Auto-fit all column widths at once in Excel (double-click or keyboard)

Quickly resize every column in a worksheet to fit its longest entry, fix ##### display errors, and keep your sheet readable without dragging each column border.

What the video covers

Applies to resizing columns in a single worksheet so each column width matches its longest visible entry. Works on standard worksheets and generally on Excel tables; results may vary with extreme outlier cells.

Watch the video on YouTube

Step-by-step instructions

  1. Select the whole worksheet
    Click the Select All control at the top-left corner of the grid (where row numbers and column letters meet) or press Ctrl + A until the entire sheet is highlighted.
  2. Position the cursor on any column divider
    Move your mouse to the header area and hover over the vertical line between any two column letters (for example, between A and B) until the cursor becomes a double-headed horizontal arrow.
  3. Double-click to auto-fit every column
    With the entire sheet selected, double-click the column divider. Excel will resize every column to fit the longest visible entry in each column.
  4. Optional: use the keyboard shortcut
    After selecting the sheet (Ctrl + A), press the sequence Alt → H → O → I to auto-fit column widths without the mouse.
  5. Handle excessively wide columns
    If a column becomes too wide because of an outlier entry, hover its right border and drag to a preferred width, or adjust/remove the long content that caused the expansion.
  6. Note on Excel Tables
    When working inside an Excel Table (created with Ctrl + T), auto-fit done while the table is selected may prioritize table data. Select the entire sheet first if you need every worksheet column adjusted.

Watch the video

Video thumbnail for Auto-fit all column widths at once in Excel (double-click or keyboard) Play tutorial

Watch on YouTube

Why it matters

Auto-fitting saves time and corrects truncated entries or ##### errors by making columns wide enough to display their contents cleanly, improving readability and presentation.

Check your result

All columns should resize so cell contents no longer appear truncated or as #####; narrow columns should expand to show full text or numbers without overflow.

Troubleshooting

If one column becomes excessively wide because of a very long title or formula, manually drag that column's border to a reasonable width. If working inside an Excel Table, auto-fit may target table data first—select the entire sheet if you want every column resized. If values still show ##### after auto-fit, check cell formatting (dates/times or negative date results) or column protection.