In Excel for Microsoft 365 on Windows, select a cell in the column and press Alt, H, O, I in sequence to AutoFit the column to its contents. To choose an exact width instead, press Alt, H, O, W, enter a width, and press Enter.
The shortcut to expand a column automatically
The Windows shortcut most people want is the AutoFit Column Width command. It resizes the selected column or columns so that the longest displayed cell value in each one can fit. The keys are ribbon key tips, so press and release each key rather than holding them all down together:
- Select a cell in the column, or select several columns you want to resize.
- Press and release Alt, then H, then O, then I.
- Check the result. If the column is still too narrow for a particular reason, use the manual width command or troubleshoot the content and formatting.
On a standard keyboard, the sequence is often written as Alt+H, O, I, but that notation can be misleading: it is a sequence, not one four-key chord. The letters activate Home, Format, and AutoFit Column Width through Excel’s ribbon key tips. The command is useful when a heading, long name, date, or displayed number is clipped or spills into an adjacent cell.
What AutoFit changes—and what it does not
AutoFit changes the width of a column, not the font size, cell contents, or row height. Excel looks at the displayed contents in the cells it considers for that column and makes the width large enough for the widest item. For example, if a column contains the entries North, West, and International Sales, the last entry will usually determine the fitted width.
That distinction matters because Excel fits what is displayed, not the formula text. If a cell contains a formula that returns a long label, AutoFit responds to the returned label. Likewise, a number formatted as a date or currency is sized according to its displayed format. Bold text, a different font, or a larger font size can affect the width needed to show the value.
AutoFit does not automatically make a worksheet easier to read in every situation. A column containing a long paragraph can become extremely wide. It also does not make text wrap; it simply changes the width. For a narrow report layout, wrapping the text and adjusting row height may be better than letting one long entry dictate the width of the entire column.
How to expand a column to a specific width
If you need consistent dimensions—for example, when preparing a printable table or matching several sheets—set a numeric width rather than relying on AutoFit. Select a cell or column and press Alt, H, O, W. In the Column Width box, type a value and choose OK or press Enter. You can also use the ribbon path Home > Format > Column Width.
Column Width is not measured in inches. Excel expresses it using a character-based unit related to the width of a digit in the workbook’s standard font; the same numeric setting can therefore look somewhat different if the font or display changes. A value such as 12 is a practical starting point for a moderately wider text column, not a promise of a particular physical measurement. Adjust the value and inspect the sheet, especially if it will be printed or viewed on another device.
Excel limits a column width to 255 characters in its width scale. If a value is rejected or a column seems to reach a limit, check whether the requested width is within that range. For normal tables, smaller widths combined with Wrap Text, sensible abbreviations, or a wider page layout are usually more usable than pushing a single column to the maximum.
Selecting the right columns before resizing
The command acts on the selected area, so selecting carefully prevents accidental changes elsewhere. To select an entire column, click its letter heading, such as B, or place the active cell in it and press Ctrl+Space. To select adjacent columns, drag across their letter headings or click the first heading and Shift-click the last. Then run Alt, H, O, I to AutoFit each selected column separately.
To choose nonadjacent columns, select one column heading, then hold Ctrl while selecting other headings. The same AutoFit command can size the selected columns without changing the columns between them. This is handy in a wide worksheet where only a few fields need adjustment. If selecting a range of cells rather than full columns, Excel sizes the relevant columns based on the selected cells; selecting full columns is a straightforward way to make sure the whole column is considered.
There is also a mouse method: move the pointer to the right edge of a column letter heading, then double-click when the pointer changes to the column-resize cursor. Excel AutoFits that column. To resize several adjacent columns, select their headings first and double-click a boundary between two of the selected headings. Dragging a boundary instead changes the width manually, without trying to fit the contents.
Using Excel on Mac or in a browser
On Excel for Mac, the menu route is a reliable alternative: select the relevant column or columns, then choose Format > Column > AutoFit Selection. Excel for Mac also provides the keyboard shortcut Option+Command+0 for AutoFit column width on supported keyboard setups. If that key combination is intercepted by macOS, a keyboard layout, or another utility, use the menu instead. To enter a specific width, use Format > Column > Width.
In Excel for the web, select the column and use Home > Format > AutoFit Column Width. Browser and operating-system shortcut handling can make desktop key sequences less predictable in a browser, so the ribbon command is a useful fallback. The mouse boundary method is also available: double-click the right edge of the column heading to fit its contents.
These routes make the same basic distinction on each platform: AutoFit chooses a width from the data, while Column Width lets you specify one. If you are following instructions written for Windows on a Mac or in a browser, look for the named ribbon or menu command rather than assuming every keyboard sequence is identical.
Common problems and practical fixes
- A cell shows ####. The column may be too narrow for a number, date, or time, so try AutoFit. If the hashes remain, the cause may not be width: for example, Excel cannot display some negative date or time results in its standard date systems. Check the underlying value and number format.
- Text appears cut off. If the cell to the right contains data, text cannot spill into it. AutoFit the column, turn on Wrap Text, or use a shorter label. If the neighboring cell is empty, ordinary text may visually overflow without the column actually being wider.
- A column becomes far too wide. One unusually long entry may be controlling AutoFit. Consider wrapping that entry, shortening it, or setting a fixed width that suits the majority of rows. You can also put lengthy notes in a separate column.
- Wrapped text still looks clipped vertically. AutoFit Column Width does not adjust row height. Select the affected rows and choose Home > Format > AutoFit Row Height; on Windows the key-tip sequence is Alt, H, O, A.
- Merged cells do not fit as expected. AutoFit does not reliably calculate the required width for merged cells. Set the relevant column widths manually, or consider an unmerged layout with text wrapping if the sheet design allows it.
When a result seems wrong, inspect the cell’s displayed value, number format, font, wrapping, and neighboring cells before repeatedly running AutoFit. The command can only resize the column; it cannot resolve a value or formatting issue that is causing the display problem.
AutoFit, dragging, and fixed widths compared
Choose AutoFit when the main goal is to reveal existing contents quickly. It is especially effective for compact data tables with short headings and relatively consistent entries. Choose a fixed width when columns need to line up across multiple sheets, when a report has a deliberate page layout, or when one exceptional value would otherwise make a column unwieldy.
Dragging a boundary is useful for visual tuning: you can widen a column until a heading looks balanced without committing to the exact character-based value in the dialog. The tradeoff is that dragging is less repeatable. AutoFit is data-driven, while dragging and the Column Width dialog give you more control over the final layout.
Wrap Text offers another option for long labels. Select the cells and choose Home > Wrap Text; Excel displays the contents on multiple lines within the column. Adjust the column width to set the line length, then AutoFit Row Height if necessary. This often preserves a readable table shape better than fitting a very long sentence on a single line.
A quick workflow for a readable worksheet
For a table with headings in row 1 and records below, select the columns that hold the table, run AutoFit, then review the result rather than assuming every column should stay that wide. A date column might need only enough room for its chosen date format, while a notes column may be better wrapped at a fixed width. If only the headers are too long, consider shorter headings instead of expanding every data column.
For a one-off cleanup, select the entire worksheet using the triangle at the top-left corner between the row numbers and column letters, then use AutoFit Column Width. This can make all populated columns visible, but it may also make the sheet excessively wide because of a long note or outlier value anywhere in the worksheet. Applying AutoFit only to the relevant table columns usually gives a more intentional result.
Resizing a column changes its display, not the data stored in its cells, and it does not change the width of a column on another worksheet. If the workbook is shared or printed, review the sheet at its intended zoom and print settings: a width that looks comfortable on screen may still produce extra pages or small print. For repeatable reports, use a consistent fixed width and wrapping where practical.
Frequently Asked Questions
What is the shortcut to AutoFit a column in Excel?
In Excel for Microsoft 365 on Windows, select the column and press Alt, H, O, I in sequence. This runs AutoFit Column Width. On Mac, use Option+Command+0 where available, or choose Format > Column > AutoFit Selection.
How do I widen an Excel column without AutoFit?
Select the column and press Alt, H, O, W on Windows, enter a width, and press Enter. You can also drag the right edge of the column heading to the desired size or use Home > Format > Column Width.
Can I AutoFit every column at once?
Yes. Select the whole worksheet with the top-left corner button, then run Alt, H, O, I on Windows. Review the result afterward, because a single long cell can make one column much wider than the rest.
Why does AutoFit make my column too wide?
AutoFit is responding to the widest displayed value it considers, which may be an unusually long heading, note, or entry. Wrap that text, shorten it, or set a fixed width with Alt, H, O, W rather than letting the outlier determine the layout.
Why does Excel still show #### after I AutoFit?
AutoFit usually resolves hashes caused by a narrow column, but hashes can also reflect an unsupported displayed value, such as a negative date or time result. Check the cell’s underlying value and number format as well as its width.
Related
- Excel Paste and Remove Duplicates: Steps and Safety
- Excel Text to Columns: Split Pasted Data Into Fields
- Excel Text to Columns: Can You Make It Automatic?
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Create One Named Range from Multiple Cell Ranges in ExcelYes. In Excel for Microsoft 365 on Windows, you can create one defined name that refers to several…
- Create a Brochure in Microsoft Word: Layout, Steps and TipsTo create a brochure in Microsoft Word, start with a brochure template or set up a blank document…
- How to Add a Hanging Indent in Word (Step by Step)To add a hanging indent in Word, select the paragraph or paragraphs, open the Paragraph settings, and choose…
- How to Create CD Labels in WordTo create CD labels in Word, download the template for your exact label sheet, open it in desktop…
- How to Find a P-Value in ExcelTo find a p-value in Excel, use T.TEST for a two-sample or paired t-test, or use a distribution…
- XLOOKUP in Google Sheets: Search Across Two SheetsTo look up a value on another Google Sheets tab, put the value to find in A2 and…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.