Autofit cell width in Excel automatically adjusts column width to display the longest content in that column without truncation. This is done using built-in Excel features and requires no add-ins or external tools—just open your spreadsheet and use the mouse, keyboard, or ribbon commands. Below are precise, tested steps to make it work reliably across Windows, Mac, and Excel Online versions.

What You'll Need

  • Microsoft Excel (any recent version: Excel 2016, 2019, 2021, Microsoft 365, or Excel for the web)
  • A spreadsheet with data in columns that appear too narrow or cut off
  • No special permissions or installation required

Step-by-Step

  1. Select the column(s) you want to autofit. To adjust one column, click its column header (e.g., "A", "B"). To adjust multiple columns, click and drag across headers (e.g., select A through C), or hold Ctrl (Windows) / Command (Mac) while clicking non-contiguous headers.
  2. Locate the autofit option:
    • Using the mouse: Hover your cursor over the right border of the selected column’s header (the border between two headers, like between "A" and "B"). The cursor will change to a left-right arrow with a small vertical line and double-pointed arrows. Double-click that border—the column will resize automatically to fit the widest content.
    • Using the ribbon (Windows): With columns selected, go to the Home tab > in the Cells group, click Format > choose Autofit Column Width from the dropdown menu.
    • Using the ribbon (Mac): With columns selected, go to the Home tab > in the Cells group, click Format > Autofit Column Width.
    • Using Excel for the web: Select the column(s), then click Home > Format > Autofit Column Width.
  3. Verify the result: Check that the full text is now visible, including any trailing spaces or special characters. If content still appears cut off, ensure the cell isn’t formatted as hidden or with a custom number format hiding digits.

Common Mistakes

  • Clicking once instead of double-clicking when using the mouse method: A single click only selects the border; double-clicking triggers the autofit command.
  • Forgetting to select the correct column(s): If you click inside a cell instead of the column header, the autofit command may not work as expected or may apply to the wrong column.
  • Overlooking merged cells: Merged cells can prevent autofit from working correctly. If a column contains merged cells, Excel may not resize properly—unmerge cells first (select > Home > Merge & Center > Unmerge Cells), then autofit.
  • Confusing autofit with auto-fit row height: Autofit Column Width adjusts horizontal width, not vertical height. To adjust row height, use Format > Autofit Row Height instead.
  • Ignoring wrapped text**: If text is set to wrap within the cell, autofit may not expand width sufficiently—ensure Wrap Text is turned off (under Home > Alignment group) if you prefer columns to expand to show full text on one line.

Tips

  • Use keyboard shortcuts for speed: Select the column(s), then press Alt + H + O + I (Windows) or Command + Option + \ (Mac, depends on keyboard layout—verify in Excel’s Help menu).
  • Autofit multiple columns at once: Select all desired columns before double-clicking a border or running the command—this saves time vs. adjusting each column individually.
  • Prevent overflow into adjacent columns: After autofitting, check if data spills into the next column. If so, increase spacing slightly by dragging the column border manually (click and drag the right edge of the header).
  • Combine with row height adjustment: Use Autofit Row Height after autofitting columns to ensure multi-line text displays fully.
  • Reset columns first if needed: If columns are unusually narrow or wide, select them all, go to Home > Cells > Format > Column Width, enter a standard value like 8.5, then autofit.

Troubleshooting

When autofit doesn’t resize columns as expected, try these checks in order:

  1. Restart Excel: Occasionally, Excel’s UI state becomes unresponsive. Close and reopen the file—this resolves temporary glitches.
  2. Check for protected sheets: If the worksheet is protected, autofit may be disabled. Go to Review > Unprotect Sheet (you’ll need the password if one was set).
  3. Inspect hidden characters: Press Ctrl + ` (grave accent) to toggle formula view. If cells show formulas, the column may appear narrow due to long formulas even if values look short—autofit will still respect the formula length.
  4. Examine font settings: If cells use a non-standard font size or style, Excel may miscalculate width. Ensure consistent formatting: select cells > Home > Font > confirm size (e.g., 11 pt) and font type.
  5. Disable add-ins temporarily: Some third-party add-ins interfere with Excel’s formatting. Go to File > Options > Add-ins > manage Excel Add-ins > uncheck all > OK, then restart and test.
  6. Try autofit on a fresh copy: Copy the problematic sheet into a new workbook. If it works there, the original file may be corrupted—save as .xlsx and avoid .xls if possible.

Frequently Asked Questions

Does autofit work with formulas?

Yes—Excel autofits based on the displayed result, not the underlying formula. For example, if a cell contains =A1 & " " & B1 and shows "John Smith", it will autofit to fit "John Smith", not the full formula text.

Why does my column still get cut off after autofitting?

Common causes include: (1) text is wrapped and you didn’t adjust row height; (2) merged cells are present; (3) custom number formats hide digits (e.g., phone numbers formatted as (###) ###-#### may appear truncated); (4) the column contains very long text exceeding Excel’s 255-character display limit per cell. For long text, consider wrapping or shortening the content.

Can I autofit all columns at once?

Yes. Click the triangle at the top-left corner (above row 1, left of column A) to select the entire sheet, then use any autofit method. Alternatively, select all columns by clicking column A, holding Shift, and clicking the last column header (e.g., XFD), then autofit.

Does autofit work on Mac and Windows the same way?

The logic is identical, but menu paths differ slightly. On Mac, Format appears under the Home tab; on Windows, it’s the same. The mouse double-click method works identically on both platforms.

What if I want to autofit only specific rows, not columns?

Use Autofit Row Height instead. Select the row(s), go to Home > Format > Autofit Row Height. This adjusts vertical height to show all wrapped or multi-line content.

Is there a way to set autofit as default for new workbooks?

No—Excel does not offer a built-in default autofit setting. However, you can create a template: set up your preferred column widths using autofit, then save as an Excel Template (.xltx) under File > Save As > This PC > choose Excel Template as the type.