Excel Practice Test

โ–ถ

Columns in Excel start at a fixed width of about 8.43 characters. That looks fine for short numbers. It falls apart the moment you paste in a long header, a phone number, or any text bigger than the cell can fit. Then you get cut-off labels or a row of ######## warning marks that scream "this number won't fit."

Fixing it takes seconds once you know the moves. This guide walks through every method, plus the shortcut, the VBA snippet, and the small differences on Mac.

Pick whichever fits your task โ€” drag for one column, AutoFit when you've got mixed content, the Format menu when you need exact numbers, and the default-width setting when you want every new column in the workbook to start wider. None of it is hard.

Most users just never learned the keyboard shortcut, and they end up dragging borders all afternoon. That's the real time sink. Five seconds here, ten seconds there โ€” by Friday you've burned an hour on something a four-key combo solves instantly.

You'll also pick up some Excel quirks along the way. How the program actually measures "width." Why a column looks one size on your screen and another on your colleague's. What to do when pasted data refuses to keep its formatting. Small details, but they save real time once you stop fighting them.

By the end of this you'll have a complete mental toolbox for column width. You'll know which method fits which situation, when to AutoFit and when to set manual values, and how to keep widths consistent across sheets, machines, and printed pages. The same patterns apply to row height too โ€” but more on that later.

There are roughly seven ways to change column width in Excel, and each one has a moment when it's the best tool.

Drag the border between two column headers โ€” that's the fastest method when you're eyeballing things. Right-click any column letter and pick Column Width to type an exact number.

Go to the Home tab, click Format in the Cells group, and you'll see the same option from the ribbon. Double-click the right-hand border of a column header and Excel snaps the column to the longest cell content โ€” that's AutoFit, and it's a lifesaver for messy imported data.

Need to change several columns at once? Select them first. Click the letter of the first column, then Shift+click the last to grab a range, or Ctrl+click to pick non-adjacent ones. Now drag any one border and they all resize together.

Same with right-click โ†’ Column Width โ€” your number applies to every selected column. When you want the default for new columns to be wider across the whole worksheet, go to Home โ†’ Format โ†’ Default Width and type the new value.

From that point, any column you haven't manually resized takes the new default. Existing custom widths stay put. That's important โ€” Excel respects your manual settings even when you change the default.

One trap worth knowing about. If you've already set a custom width on a column and then change the default, that column doesn't budge. Excel treats your manual width as an override. To get everything back to a clean baseline, select all columns (Ctrl+A), right-click, pick Column Width, and type your number. Now every column matches.

There's also the often-forgotten right-click-on-cell route. Select any cell in the column you want to resize, right-click, and pick Column Width. Excel applies the value to the entire column the cell belongs to. Handy when you're already deep in a worksheet and don't want to scroll back to the header row.

Column Width Quick Reference

8.43
default column width (character units)
255
maximum column width Excel allows
0
minimum width โ€” column becomes hidden
Alt+H+O+W
keyboard shortcut for Column Width dialog

The keyboard shortcut deserves its own moment. Press Alt, then H, then O, then W โ€” that's Home, fOrmat, Width. The Column Width dialog pops up. Type your number. Hit Enter. Done.

It looks awkward written out but it takes about a second once your fingers learn it. Far faster than reaching for the mouse, hunting for the column border, and dragging.

Microsoft uses this same Alt-key pattern across the whole ribbon, so once you get the rhythm you'll start spotting shortcuts everywhere. The Alt key shows you the access letters on every visible button โ€” try pressing just Alt by itself once and you'll see them light up across the ribbon.

For AutoFit there's Alt + H + O + I (the I stands for "autofIt column width"). Select the columns you want sized to content, hit those four keys, and Excel measures the longest entry and matches the width to it.

Pair it with Ctrl+A first if you want to AutoFit every column in the sheet in one motion. Two shortcuts, twelve seconds, a whole spreadsheet cleaned up. Beats opening every dialog one column at a time.

For row height the parallel shortcuts work the same way: Alt + H + O + H opens row Height, Alt + H + O + A triggers AutoFit row height. Once you have the column ones in muscle memory, the row versions are just one letter different.

Method Selection

Need exact width? Right-click โ†’ Column Width or use Alt + H + O + W. Need to match content? Double-click the column border for AutoFit. Resizing many columns at once? Select them first, then drag any one border โ€” they all move together. Setting the standard for the whole sheet? Home โ†’ Format โ†’ Default Width applies to every column you haven't manually resized.

Here's a quirk that confuses people. Excel measures column width in character units, not pixels or inches. One unit equals the width of one zero character in the default font (Calibri 11 in modern Excel). So a column set to "10" fits roughly ten zeros side by side.

When you drag a border, Excel shows both the character width and the pixel width in a tooltip โ€” useful when you're matching multiple sheets or trying to fit a printable area exactly. Switch fonts and the visible width changes even though the number stays the same. That's why a workbook designed in Arial can look squashed when opened in Calibri.

The pixel count depends on your screen resolution and DPI settings, which is why your column looks one width on your laptop and another on a coworker's monitor. The character value is the only number that stays consistent across machines. If you're sharing templates with a team, lock the column widths using the character number, not by visual eyeballing. And if you really need exact print measurements in inches or centimeters, switch to Page Layout view (View tab โ†’ Page Layout). There Excel shows ruler measurements you can drag with normal real-world units.

Every Way to Change Column Width

๐Ÿ”ด Drag the Border

Hover between two column header letters until the cursor turns into a double-arrow. Click and drag left or right. Fastest visual method, but imprecise.

๐ŸŸ  Right-Click โ†’ Column Width

Right-click any column letter. Pick Column Width. Type the number you want. Hit Enter. Most precise method for a single column.

๐ŸŸก Home Tab โ†’ Format

Home โ†’ Cells group โ†’ Format dropdown โ†’ Column Width. Same dialog as right-click, just from the ribbon. Helpful when you're already on the Home tab.

๐ŸŸข AutoFit (Double-Click)

Double-click the right edge of any column header. Excel measures the longest cell and resizes to match. Perfect for cleaning up imported data.

๐Ÿ”ต Default Width

Home โ†’ Format โ†’ Default Width. Sets the baseline for every column you haven't manually resized. Custom widths stay untouched.

๐ŸŸฃ Keyboard Shortcut

Alt + H + O + W opens Column Width instantly. Alt + H + O + I triggers AutoFit. Both work without touching the mouse.

Those ######## symbols aren't an error. Excel uses them as a polite warning that a numeric value won't fit in the cell at the current width. The number is still there โ€” just hidden until you make room. Double-click the right edge of the column header to AutoFit, or drag the border wider until the digits appear. The hashes will vanish instantly. Dates and times do the same thing when their column gets too narrow.

Text doesn't get the hash treatment. Instead, it spills into the next cell โ€” but only if the neighboring cell is empty. The moment you type anything next door, the overflow disappears (the text is still in the original cell, just hidden). If you'd rather have the text wrap inside the cell instead of spilling, hit Wrap Text on the Home tab. Now the row height grows to fit the content and the column width can stay narrower. Mixing wrap text with AutoFit Row Height keeps things tidy when you've got long labels and limited horizontal room.

Setting Width for Multiple Columns

๐Ÿ“‹ Adjacent Columns

Click the letter of the first column. Hold Shift and click the letter of the last column in the range. Every column in between is now selected. Right-click any selected header, pick Column Width, type your number โ€” all columns get that exact width at once.

๐Ÿ“‹ Non-Adjacent Columns

Hold Ctrl while clicking each column letter you want to resize. The selections accumulate (skipping the ones you don't click). Right-click any selected column header and set the width. Only your chosen columns change โ€” the unselected ones stay as they were.

๐Ÿ“‹ Every Column on the Sheet

Click the Select All button (the empty triangle in the top-left corner where row numbers meet column letters), or press Ctrl + A. Now any column width change โ€” drag, AutoFit, or numeric โ€” applies to every column. Useful for resetting a worksheet to a clean baseline.

๐Ÿ“‹ Across Sheets

Right-click a sheet tab and choose Select All Sheets. Now whatever column width changes you make apply to the same columns on every selected sheet. Remember to right-click and Ungroup Sheets when you're done โ€” otherwise every edit propagates everywhere.

Pasting data into Excel almost always loses column widths. The default Paste copies values and formatting, but not column dimensions โ€” so freshly pasted data ends up squashed into whatever widths the destination sheet had. Annoying when you've spent time formatting a source workbook nicely.

The fix is Paste Special. After pasting normally, click the small paste options icon that appears in the bottom-right corner of the pasted area, then choose Keep Source Column Widths. Excel reapplies the original widths to match the source. Or skip the regular paste and go straight to Home โ†’ Paste โ†’ Keep Source Column Widths. Same result, one step shorter. Either way the destination columns now mirror the original.

When you're copying entire sheets between workbooks, right-click the sheet tab and pick Move or Copy instead. That carries every column width, row height, named range, and formula across in one motion. Cleaner than copy-paste for anything bigger than a small block.

Take a Free Excel Practice Test

Automating column widths with VBA is straightforward. Open the VBA editor with Alt+F11, insert a new module, and type a line like Columns("A").ColumnWidth = 15 to set column A to 15 character units. Want multiple columns? Columns("A:D").ColumnWidth = 12 handles a range in one shot. Or use the Range syntax: Range("A1:D1").EntireColumn.ColumnWidth = 20 when you're working from a specific cell reference.

AutoFit by code is just as simple: Columns("A:Z").AutoFit sizes every column from A to Z based on content. Run that as the last line of an import macro and your data lands clean every time. If you need different widths per column, a small loop does the trick: For i = 1 To 5: Columns(i).ColumnWidth = 10 + i: Next i. Save your widths to a variable before any operation that might disturb them, and you can always restore them later. Useful when you're inserting rows, sorting, or doing anything that touches column structure.

Quick Column Width Checklist

Seeing ########? Double-click the column's right border to AutoFit
Need an exact number? Right-click the column letter โ†’ Column Width
Resizing several at once? Select the columns first, then change any one
Want the same width sheet-wide? Use Home โ†’ Format โ†’ Default Width
Pasting from another workbook? Use Paste Special โ†’ Keep Source Column Widths
Working keyboard-only? Press Alt + H + O + W for Column Width, Alt + H + O + I for AutoFit
Automating with VBA? Use Columns("A:D").ColumnWidth = 15
On Mac? Try Control + Option + R for the row & column menu
Sharing across screens? Lock widths by character number, not visual size
Need exact print measurements? Switch to Page Layout view for real-world units

Mac Excel handles column width with mostly the same logic but a few different menu paths. The drag, right-click โ†’ Column Width, and double-click AutoFit moves all work identically. The Home tab โ†’ Format dropdown is in the same place. Where it diverges is the keyboard shortcut.

Mac doesn't use the Alt key the same way Windows does, so the Alt + H + O + W sequence won't work. On Mac, press Control + Option + R to open the row & column menu, then pick Column Width. Or assign your own shortcut through Tools โ†’ Customize Keyboard if you use it constantly.

Default Width on Mac sits under Format โ†’ Column โ†’ Standard Width from the menu bar (not the ribbon). Same dialog, just different route. VBA exists on Mac Excel but with some caveats โ€” ActiveX controls and a few automation features are stripped out, though basic Columns().ColumnWidth commands work everywhere. If you're sharing a workbook between Windows and Mac users, stick to the cross-platform features and test on both before locking anything down.

AutoFit vs Manual Width

Pros

  • AutoFit handles messy imports in one double-click
  • Manual width gives consistent dimensions across sheets
  • Keyboard shortcut Alt + H + O + W is faster than dragging
  • Default Width sets a baseline without touching custom-sized columns
  • VBA lets you bake exact widths into automated workbooks
  • Paste Special preserves source widths during copy operations

Cons

  • AutoFit can leave columns wider than they need to be if one cell has long text
  • Manual width misses content that grows after you set the value
  • Pasting without Paste Special loses every source-column dimension
  • Mac shortcuts differ from Windows โ€” muscle memory doesn't transfer cleanly
  • Pixel width varies by screen โ€” only character units stay consistent across machines
  • Hidden columns (width 0) can be missed when you Select All for resize

Things still going wrong? A few troubleshooting moves cover most of the weird cases. If a column refuses to resize at all, check whether the worksheet is protected. Go to Review โ†’ Protect Sheet โ€” if it's on, you'll need the password (or to unprotect) before formatting changes. Same goes for shared workbooks in older Excel versions, where some structural edits get locked while sharing is active.

If AutoFit keeps making columns way too wide, look for hidden long content. A pasted-in cell with hundreds of characters can stretch a column past 100 units even when the rest of the data is short. Either trim that one cell or set a manual width afterward โ€” manual always wins over AutoFit. When dragging doesn't seem to do anything visible, you're probably hovering between the wrong borders. The cursor must be exactly between two column letters in the header row, not between row numbers and not inside the data. Look for the double-arrow icon before you click.

Frozen panes can also mess with how column resizing looks. If you've frozen the top row or a left column for scrolling, resizing a column on one side of the freeze affects only that side visually until you scroll. The width itself is consistent โ€” the display just doesn't update both panes until you unfreeze (View โ†’ Freeze Panes โ†’ Unfreeze) or scroll. Worth checking before you assume the resize failed.

Printing brings its own column width considerations. What looks fine on screen can spill onto a second page when you hit print. Open File โ†’ Print and check the preview before sending anything to paper. If columns are getting cut off, you have three options: shrink the columns, fit to one page wide, or switch to landscape orientation.

Fit-to-page sits under Page Layout โ†’ Scale to Fit. Set Width to 1 page and Height to Automatic โ€” Excel will shrink everything proportionally to fit one page across. It's a quick fix, but very wide sheets end up tiny and unreadable. Better to manually narrow columns where you can and use landscape for the rest. Page breaks show up as dotted lines on the worksheet after you've previewed once. Drag those manually in View โ†’ Page Break Preview mode if you want to control exactly which columns land on which page.

For consistent printed output across a workbook, use View โ†’ Page Layout to design with real measurements in inches or centimeters. The ruler at the top shows actual print width. Set your columns there and you'll know exactly how the printout will look โ€” no surprises in the preview.

Column width is one of those tiny mechanics that pays you back forever once you have it down. Drag for speed, AutoFit when you need precision, the Format menu for exact numbers, Alt + H + O + W when your hands are already on the keyboard. Mix them based on the moment. You'll start saving real minutes per workbook โ€” minutes that add up across a workweek of spreadsheets.

Combine column width control with row height adjustments and you've got the basics of layout in Excel locked down. Row height works almost identically โ€” drag the bottom border of a row number, right-click for an exact value, or double-click to AutoFit. The same Alt-key sequence opens the row dialog: Alt + H + O + H for row Height, Alt + H + O + A for AutoFit row height. Worth committing to memory alongside the column ones.

If you're brushing up on Excel basics for a certification or a job interview, knowing these formatting moves cold is table stakes. Test yourself with a practice run before you sit down for the real thing. The questions are quick, the feedback is immediate, and you'll spot the gaps in your knowledge before they cost you points. Better to find out you're rusty on the basics now than mid-interview.

Excel Questions and Answers

How do I change column width in Excel?

Right-click the column letter and pick Column Width, then type the number you want. Or drag the right edge of the column header to resize visually. For exact width, the right-click method is fastest.

How do I increase the width of a column in Excel?

Drag the right border of the column header to the right, or right-click the column letter and enter a larger number under Column Width. Maximum width is 255 character units.

How do you change the column width in Excel for multiple columns at once?

Select the columns first by clicking the first column letter and Shift+clicking the last, or Ctrl+click to pick non-adjacent ones. Then right-click any selected header and set the width โ€” every selected column resizes together.

How do I AutoFit column width in Excel?

Double-click the right edge of the column header. Excel measures the longest cell content and resizes to match. For multiple columns, select them first and double-click any one of their borders, or use the shortcut Alt + H + O + I.

What is the keyboard shortcut for column width in Excel?

Press Alt, then H, then O, then W โ€” that's Home โ†’ Format โ†’ Width. The Column Width dialog opens. Type your value and hit Enter. For AutoFit, use Alt + H + O + I instead.

How does Excel measure column width?

In character units based on the default font's zero character. The default is 8.43 units (about the width of eight zeros). Excel also shows a pixel value while you drag, but pixels vary by screen โ€” character units stay consistent across machines.

Why does my column show ######## symbols?

The cell contains a number, date, or time that won't fit at the current width. Excel hides the value rather than truncate it. Double-click the column's right border to AutoFit, or drag it wider until the numbers appear.

How do I set a default column width for the whole worksheet?

Go to Home โ†’ Format โ†’ Default Width and type your value. Every column you haven't manually resized will use that width. Columns with custom widths keep their existing setting โ€” use Ctrl+A first to reset everything to the new default.
Try More Excel Practice Questions
โ–ถ Start Quiz