Excel Practice Test

โ–ถ

To adjust column width in Excel, select the column, go to Home > Cells > Format > Column Width, and type a value from 0 to 255 characters; or double-click the right edge of the column header to AutoFit it to its contents. The default width is 8.43 characters, and a column too narrow for a number shows #### instead of the value.

A column that is too narrow hides numbers behind #### symbols. A column that is too wide pushes data off the screen. Both problems are everyday annoyances, and both have the same fix: adjust the column width. Excel gives you several ways to do it: dragging, AutoFit, the ribbon, keyboard access keys, and VBA.

This guide walks through every method that actually works, from the obvious drag-and-drop to the AutoFit double-click trick, ribbon menus, keyboard shortcuts, and a VBA snippet for power users. You will also find fixes for the common gotchas โ€” columns that refuse to resize, hidden columns that look stuck at zero, and how column width and row height use different units.

Column Width by the Numbers

8.43
Default column width (characters)
255
Maximum width in characters
15
Default row height (points)
409
Maximum row height (points)

Why column width matters more than you think

When you type a number that does not fit, Excel shows #### instead of the value. The number is still there โ€” Excel just refuses to truncate it, because that could mislead you about the actual figure. Text, on the other hand, spills into the next column if that cell is empty, then gets cut off the moment a neighbor has content. So a quick width adjustment is the difference between a spreadsheet that reads cleanly and one that hides half its data.

Column width in Excel is measured in characters of the default font, not pixels or inches. A width of 8.43 means the cell fits about 8.43 characters of the default font. Because the unit is tied to the default font, changing that font changes how wide a given number looks.

Excel column width and row height: reference values

SettingValueWhere to find it
Default column width8.43 charactersHome > Cells > Format > Default Width
Maximum column width255 charactersExcel specifications and limits
Minimum column width (hidden)0Column Width dialog
Default row height15 pointsHome > Cells > Format > Row Height
Maximum row height409 pointsExcel specifications and limits
Set exact column width (Windows)Home > Cells > Format > Column WidthCell Size section
Set exact column width (Mac)Format > Column > WidthMenu bar
Hide selected columnsCtrl+0Keyboard shortcut

Source: Microsoft Support, "Change the column width or row height in Excel" and "Excel specifications and limits".

Ways to Resize Columns

๐Ÿ”ด Drag the border

Hover the right edge of the column header until the cursor turns into a double arrow, then drag left or right.

๐ŸŸ  Double-click for AutoFit

Double-clicking that same border snaps the column to the widest cell in it โ€” fastest method by far.

๐ŸŸก Ribbon menu

Home > Format > Column Width opens a dialog where you type an exact number.

๐ŸŸข Keyboard shortcut

Press Alt to show ribbon Key Tips, then H for the Home tab and follow the on-screen letters to Format > Column Width (commonly Alt, H, O, W).

๐Ÿ”ต VBA macro

Columns("A:D").ColumnWidth = 15 resizes whole ranges in one line โ€” great for templates.

Method 1: drag the column border

This is the method everyone learns first, and it is fine for one-off tweaks. Move your cursor to the right border of the column header โ€” the gray strip with the letters A, B, C. The cursor changes into a vertical line with arrows on both sides. Hold the left mouse button and drag right to make the column wider, left to make it narrower. As you drag, Excel shows a tooltip with the current width, so you can stop at a precise value.

Drag does not give you a way to be exact, though. If you need column B to be exactly 20 characters wide because that matches a template, you are guessing. For one column it might not matter; for a 50-column report it will. That is where the ribbon dialog and the keyboard shortcut come in.

Method 2: double-click for AutoFit

Hover the same right border, but instead of dragging, double-click. Excel snaps the column to the width of the longest visible cell. This is AutoFit, and it is the single fastest way to make a messy spreadsheet readable. To AutoFit several columns at once, select them first by clicking and dragging across the column letters, then double-click any selected border.

AutoFit looks at the data that is actually in the column at that moment. Add a longer entry later and the column stays the same โ€” you would need to AutoFit again. The full method, is covered in the dedicated AutoFit Excel guide.

Resize Columns by Platform

๐Ÿ“‹ Windows

Select the columns you want to change, press Alt to show the ribbon Key Tips, then H for Home and follow the on-screen letters to Format > Column Width (commonly Alt, H, O, W), or Format > AutoFit Column Width (commonly Alt, H, O, I). Type a number between 0 and 255 and press Enter. To change every column, click Select All (the triangle at the top-left of the grid) first.

๐Ÿ“‹ Mac

On Excel for Mac, select your columns and use the menu path Format > Column > Width to type an exact value. Double-clicking the separator between column headings changes the width to fit the contents. Microsoft's Mac article lists no dedicated keyboard shortcut for these actions, so use the menu or the mouse.

๐Ÿ“‹ Excel for the web

Excel for the web offers fewer features than the desktop app. For exact widths and full formatting control, open the workbook in Excel for Windows or Mac; VBA macros also require the desktop app.

Method 3: set an exact width through the ribbon

When you need columns to be exactly the same width โ€” for a printable report, a dashboard, or a shared template โ€” the ribbon dialog is the right tool. Select the columns, click the Home tab, find the Cells group, click Format, then click Column Width under Cell Size. A small dialog appears asking for a number. Type the value, click OK, and Excel applies it to every column in the selection.

The number you type is in characters of the default font, not pixels or inches. To set the width for the whole sheet at once, click Select All (the triangle at the top-left corner of the worksheet, between the column A header and the row 1 header), then run the same Format > Column Width command.

Excel exposes two related settings. Column Width changes the selected columns only. Default Width sets the standard width for the active sheet (Microsoft describes it as changing the default width of columns). Find both under Home > Format. Default Width is useful when you want a new sheet to start with wider columns without touching every column individually.

Method 4: keyboard shortcuts that save real time

If you spend hours in spreadsheets, keyboard shortcuts are the single biggest win. On Windows, press Alt to show ribbon Key Tips, then H for the Home tab, and follow the on-screen letters for Format; the sequence is commonly Alt, H, O, W for Column Width and Alt, H, O, I for AutoFit Column Width. Press the keys in sequence, not together. Excel highlights the available keys as you go. Microsoft lists Ctrl+0 to hide the selected columns; to unhide, select the columns on either side, right-click, and choose Unhide.

None of those involve the mouse at all. Combined with arrow-key navigation and Ctrl+Space (select the active column), you can resize, reformat, and rearrange a whole report without lifting your hands. For a complete reference, the Excel Shortcuts roundup covers more keys for Windows and Mac.

Method 5: VBA for templates and automation

If you build the same report every month, manual resizing wastes time. A short VBA macro fixes the widths in one line. Open the Visual Basic Editor with Alt+F11, insert a module, and paste a snippet like Columns("A:E").ColumnWidth = 15. Run it and columns A through E all become 15 characters wide. To AutoFit instead, use Columns("A:E").AutoFit.

Macros live with the workbook (save as .xlsm) or in your Personal Macro Workbook for use across every file. Before VBA will run, you usually need to enable macros โ€” see the Enable Macros in Excel guide for the security settings.

Before You Finish: Quality Checks

No cells show #### where a number should be
Headers are fully visible, not truncated
Columns that print to one page fit within page-break preview
Frozen header columns are wide enough to read while scrolling
Hidden columns are intentional, not just collapsed to width 0
Default Width is reasonable for new columns you add later

Common problems when columns refuse to resize

Sometimes a column ignores every method above. A common cause is a protected worksheet. Go to Review > Unprotect Sheet, enter the password if there is one, and try again.

Another sneaky cause: hidden columns. A column with width 0 still occupies a letter, so you might think the column you want is C when it is actually D and C is hidden flush. Select the columns around it, right-click, and choose Unhide. The full procedure is in How to Unhide All Rows in Excel โ€” the same idea applies to columns.

Width versus row height โ€” they work differently

Row height behaves almost identically: drag a row border, double-click for AutoFit, or use Home > Format > Row Height. But the numbers are different. Row height is measured in points (default 15, maximum 409), while column width is measured in characters (default 8.43, maximum 255). Do not assume the same number gives you a square cell.

If you need cells to look genuinely square โ€” for grid layouts, calendars, or pixel-style art โ€” pick a column width, switch to View > Page Layout, where Microsoft notes that sizes are shown in inches, centimeters, or millimeters rather than characters and points.

Mass-resizing a whole worksheet

For a full sheet reset, click the gray triangle in the top-left corner โ€” the spot where row numbers and column letters meet. That selects every cell. Then double-click any boundary between two column headings to AutoFit them all (Microsoft's documented quick method), or run Home > Format > Column Width and type your number. Every column on the sheet changes in one move.

This same trick is useful when you import data from a CSV or paste from another app and the columns come in all over the place. AutoFit the entire sheet first, then narrow specific columns as needed. It is much faster than starting from one column at a time. If your data needs cleanup too, the CSV to Excel walkthrough covers the import side so the data lands cleanly.

Setting a default width that sticks

New sheets start at Excel's default width of 8.43 characters. You can change the standard width for the active sheet through Home > Format > Default Width. To change it for every new workbook you create, save a blank file as a template named Book.xltx in your Excel start-up folder. From then on, every fresh workbook inherits whatever widths and formatting you set in that template.

Take the FREE Excel Practice Test

Practical examples by use case

For a financial report, set every column to the same explicit width so totals align cleanly under their headers. Use the ribbon dialog, not AutoFit, because AutoFit will widen the column the moment one cell holds a longer label, and that breaks alignment across sheets.

For a data table feeding a pivot or chart, AutoFit every column. The data does not need to print, so optimal readability beats consistency. Add a row, AutoFit again. The double-click is so fast it becomes muscle memory after a week.

For a dashboard, mix the two. Number columns get explicit widths so they line up grid-style. Label columns get AutoFit so long category names show in full. Print preview is your friend โ€” what looks fine on screen often breaks across page boundaries, and the only fix is narrowing a few columns by one or two characters.

Width tricks for printing and exporting

Print preview will quickly show whether your widths play well with paper. Go to File > Print and watch where Excel breaks pages. If a single column is hanging onto the next sheet, narrowing it by even one character can pull it back. Alternatively, scale the sheet to fit one page wide in the Page Layout settings โ€” but very small scaling makes the print hard to read.

When you save to PDF, widths travel with the workbook. The same goes for sharing on OneDrive or SharePoint. If somebody opens your file and complains the layout is off, the most likely cause is a different default font on their machine โ€” covered in Excel Cheat Sheet under the font notes.

Working with frozen panes and wide columns

If you have frozen the first column for navigation, its width matters more than the others โ€” readers see it on every scroll. Make sure that frozen column is wide enough for the longest label, and consider word-wrap (Home > Wrap Text) instead of an extremely wide single line. Combine a fixed width with wrapped text and your headers stay readable without dominating the screen.

AutoFit vs. Fixed Column Width

Pros

  • AutoFit adapts instantly to new data
  • AutoFit is one double-click โ€” almost no effort
  • AutoFit prevents hidden #### errors in number columns
  • AutoFit handles uneven column content gracefully

Cons

  • AutoFit breaks visual alignment across reports
  • AutoFit can produce extremely wide columns for one outlier value
  • Fixed widths look more professional in printed output
  • Fixed widths protect against unexpected layout shifts on shared files

Putting it all together

If you only remember one thing from this guide, make it the double-click. Hover the right border of any column header, double-click, done โ€” the column AutoFits. That single trick handles most everyday resizing. For the rest, the ribbon dialog gives you exact numbers and VBA lets you script the whole thing for templates. The drag method is fine for casual work but loses to the keyboard for anything serious.

And if columns simply refuse to budge, check whether the sheet is protected, then check for hidden neighbors. With AutoFit, exact widths, and the keyboard shortcuts in your toolkit, no spreadsheet should ever leave you staring at a column full of #### again.

Tips from real spreadsheet workflows

Power users tend to keep two layouts side by side: a clean, fixed-width presentation sheet for stakeholders, and a working sheet where AutoFit reigns. The presentation sheet stays consistent week over week, while the working sheet flexes to whatever data lands. Linking the two with simple formulas means you do not have to keep formatting two views โ€” only the working sheet changes, and the formatted sheet inherits values cleanly.

Another habit worth picking up: name the columns. Excel does not let you rename letters A, B, C, but you can turn a row of headings into a named range so formulas reference text like Revenue or Quantity instead of cryptic cell addresses. Named ranges have nothing to do with widths technically, but readable formulas remove the temptation to widen columns just to see what they contain. The shorter your formulas read, the less your widths need to compensate.

Finally, do not be afraid to reset. If a sheet looks broken โ€” columns at odd widths, hidden columns scattered through the layout โ€” select all, hit AutoFit, then explicit-set just the columns that need fixed sizes. It is quick and usually produces a cleaner result than trying to fix each column individually. The five methods in this guide combine into something more than the sum of their parts once you stop treating them as separate features.

Practice More with the Excel Quiz

Excel Questions and Answers

What is the default column width in Excel?

The default column width in Excel is 8.43 characters, measured in units of the default font, according to Microsoft Support. The default row height is 15 points. You can change the standard width for a sheet through Home > Cells > Format > Default Width, which is useful when new columns should start wider without resizing each one individually.

How do I AutoFit a column in Excel?

Double-click the boundary on the right side of the column heading, and Excel resizes the column to fit its contents. You can also select the column, go to Home > Cells > Format, and choose AutoFit Column Width. To AutoFit every column at once, click Select All first, then double-click any boundary between two column headings.

Why does my Excel column show #### instead of numbers?

A column shows #### when it is too narrow to display the whole number, so Excel hides the value rather than cutting it off. The number itself is unchanged. Widen the column by dragging its right edge, double-clicking the boundary to AutoFit, or setting an exact value through Home > Cells > Format > Column Width.

Can I set the same width for all columns at once?

Yes. Click Select All, the triangle where the row headings and column headings meet, then go to Home > Cells > Format > Column Width, type a number, and click OK. Every column on the sheet takes that width. Column widths accept values from 0 to 255 characters, and a width of 0 hides the column entirely.

What is the maximum column width in Excel?

The maximum column width in Excel is 255 characters, and the maximum row height is 409 points, per Microsoft's Excel specifications and limits. The minimum for both is 0, which hides the column or row. Column width is measured in characters of the default font, while row height is measured in points.

How do I set an exact column width in Excel?

Select the column or columns, go to Home > Cells > Format, and under Cell Size choose Column Width. Type the value you want, measured in characters of the default font, and click OK. On Excel for Mac, use Format > Column > Width from the menu bar instead. Dragging the column boundary works for approximate widths only.

Does AutoFit work with merged cells?

No. Microsoft Support documents that the AutoFit feature cannot be used on rows or columns that contain merged cells. If a heading needs to span several columns, consider Format Cells > Alignment > Center Across Selection instead of merging. That keeps the look of a centered heading while leaving the columns free to AutoFit normally.

How do I resize columns with VBA in Excel?

Use the ColumnWidth property of a Columns range. For example, Columns("A:D").ColumnWidth = 15 sets columns A through D to 15 characters wide, and Columns("A:D").AutoFit fits them to their contents. Open the Visual Basic Editor with Alt+F11, insert a module, paste the line, and run it. Save the file as .xlsm to keep the macro.
โ–ถ Start Quiz