Automatically Fit Column Width in Excel: Easy Methods
In this article
To automatically fit column width in Excel, double-click the right boundary of the column header (the lettered area at the top). This "AutoFit" feature instantly expands or shrinks the column to match the length of the longest piece of data in that specific column. This ensures all your text is visible without leaving excessive empty space.
When you enter data into a cell that is longer than the current column width, Excel does one of three things: it lets the text overflow into the next empty cell, it cuts the text off if the next cell is occupied, or it displays a series of pound signs (#######) if the cell contains a number or date that is too wide to be displayed. Automatically fitting the columns solves all three of these issues instantly.
What You'll Need
- A computer with Microsoft Excel installed (works on Windows and macOS).
- An open Excel workbook containing data that needs resizing.
Step-by-Step
Depending on whether you need to fix one column, multiple columns, or your entire spreadsheet, use one of the following methods. Note that menu labels may differ slightly depending on your version of Excel or region.
Method 1: The Double-Click Shortcut (Fastest)
- Open your Excel sheet and locate the column header (the letters A, B, C, etc., at the top).
- Move your mouse cursor to the right-side border of the column letter you want to resize. The cursor will change from a white cross to a black double-sided arrow.
- Double-click the left mouse button.
- The column will automatically snap to the width of the longest entry in that column.
Method 2: AutoFit Multiple Columns at Once
- Click and drag across the column headers (the letters) to highlight all the columns you wish to adjust. Alternatively, hold the Ctrl key (Cmd on Mac) and click individual column letters.
- Move your cursor to the right boundary of any of the selected column headers until the double-sided arrow appears.
- Double-click the boundary.
- Excel will apply the AutoFit command to every selected column individually, adjusting each one to its own specific longest piece of data.
Method 3: AutoFit the Entire Worksheet
- Click the "Select All" button, which is the small triangle located in the top-left corner of the grid, where the row numbers and column letters meet. You can also press Ctrl + A (Cmd + A on Mac).
- Double-click the boundary between any two column headers.
- Every column in the entire sheet will be resized to fit its contents perfectly.
Method 4: Using the Ribbon Menu
- Select the cell, column, or range of columns you want to resize.
- Go to the Home tab on the top ribbon.
- In the Cells group, click the Format button.
- From the dropdown menu, select AutoFit Column Width.
Common Mistakes
- Double-clicking the cell instead of the header: If you double-click inside a cell, you are entering "Edit Mode" to change the text. You must double-click the boundary line between the column letters at the very top of the screen.
- Over-reliance on AutoFit for Headers: If your column header is very long but your data is very short (e.g., a header called "Annual Quarterly Revenue Report" but the data is just "100"), AutoFit will make the column extremely wide. In these cases, manual resizing or "Wrap Text" is a better choice.
- Ignoring Merged Cells: AutoFit does not work effectively on columns that contain merged cells. If you have merged cells across columns A and B, double-clicking the boundary of A will not accurately account for the merged content.
Tips
- Keyboard Shortcut: For those who prefer the keyboard, you can use the sequence Alt → H → O → I (pressed one after another, not all at once) on Windows to trigger AutoFit for the selected area.
- Combine with Wrap Text: If a column is becoming too wide for your screen, select the cells and click Wrap Text in the Home tab. This keeps the column width fixed and expands the row height instead.
- Uniform Widths: If you want multiple columns to be the exact same width (rather than fitting their individual content), select the columns and drag the boundary of one. All selected columns will resize to that exact measurement.
Troubleshooting
If the column width does not change or doesn't seem to fit correctly, try these steps:
- Check for Protected Sheets: If the worksheet is protected, you cannot change column widths. Go to the Review tab and check if it says "Unprotect Sheet." If it does, you must unprotect it (and enter the password if required) before resizing.
- Verify Selection: Ensure you have actually selected the column header. If you only have a single cell selected and use the Ribbon menu, it will only AutoFit that specific column.
- Check for Hidden Columns: If you select the whole sheet and AutoFit, but some columns remain narrow, check if there are hidden columns in the range that are interfering with your view.
- Look for "#####" Errors: If you see pound signs, it means the column is too narrow for a number or date. Double-clicking the header is the primary fix for this.
Frequently Asked Questions
Why is my column showing ####### instead of a number?
This happens when a cell contains a number, date, or time that is wider than the current column width. Excel displays these symbols to prevent you from misreading a truncated number. Use the AutoFit method to reveal the full value.
Can I make columns AutoFit automatically as I type?
Standard Excel does not have a built-in "live" AutoFit setting that adjusts as you type. You must trigger the AutoFit manually using the methods above, or use a VBA macro (script) to automate the process.
Does AutoFit change the actual data in the cell?
No. AutoFit only changes the visual width of the column. It does not delete, truncate, or modify the text or numbers stored within the cells.
How do I reset the column width to default?
Select the columns, go to Home > Format > Column Width, and enter the default value (which is typically 8.43 for standard Calibri 11 font).
Will AutoFit work on a table formatted as an "Official Table"?
Yes. AutoFit works exactly the same way on standard ranges and official Excel Tables (inserted via Ctrl + T). You still double-click the boundary in the column header area.