How to Autofit Columns in Excel

There are two ways to “autofit columns in excel”: the quick way you copy and the durable way you understand. This page gives you both. The exact Excel answer is above; below, we build the small mental model that makes the fix stick, so the next variation of the same problem solves itself.

Exact answer

In Excel: select the rows or columns, then use Home ▸ Format ▸ AutoFit Column Width, AutoFit Row Height, or set exact Width and Height values for matching sizes.

On this page7
Annotated stepsExcel
1

Select the column letters or row numbers you want to size.

2

Double-click a header boundary for AutoFit.

3

Use Home ▸ Format ▸ Column Width or Row Height for exact matching sizes.

4

Turn on Wrap Text before AutoFit row height when cells contain multi-line text.

Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

What this does

Excel cell size is controlled by column width and row height. AutoFit resizes a row or column to fit its largest visible content, while exact width and height settings make multiple rows or columns match. Cells themselves do not have independent sizes; the whole column or row changes. Before you run it on a workbook other people depend on, try it on a copy or a few rows first. Undo only reaches back through the current session, so a quick trial run is the cheapest way to see exactly what will change before the file is saved and shared. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “autofit columns in excel”. Start on a copy or a tiny sample, keep the affected columns visible, and compare the result with the tool above before you touch the real workbook. When this is a ribbon command, the selection matters more than the button: confirm the range, apply the command, then spot-check the output before saving. The point is a layout choice that keeps the sheet readable and sortable, but the practical win is that someone else can open the file and understand what happened without asking you.

A worked example

To make columns A:D the same width, select A:D, open Home ▸ Format ▸ Column Width and enter 14. To fit the data instead, double-click the right edge of a selected column header or choose AutoFit Column Width. Sizing is a layout task, but it affects readability, printing and whether users trust the sheet. Consistent sizes also make templates feel intentional. A practical tip: try it on a copy of the sheet or a handful of sample rows first and check the result before you apply it to the real data. That one habit catches almost every surprise while it is still cheap to reverse.

In Google Sheets

This is a command rather than a formula, so there is no syntax to carry over. Google Sheets arranges its commands in menus across the top instead of a ribbon, names some of them differently and does not have every Excel command — look for the equivalent in the Sheets menus or its help before assuming the steps match. Keep this page bookmarked for the next time the same question comes up. Better still, repeat the steps once in your own workbook — doing it yourself is what turns a copied answer into something you remember. Here is the takeaway for “autofit columns in excel”: follow the steps at the top, check the result on the sheet itself, and keep undo in mind while you experiment. Done once deliberately, it becomes something you do from memory in Excel rather than something you search for again.

Common mistakes

  • Trying to resize a single cell without changing the whole row or column.
  • AutoFitting while important content is hidden by filters or merged cells.
  • Using very wide columns instead of Wrap Text for long notes.
  • Expecting printed output to match until page scaling and margins are checked.

Frequently asked questions

How do I make all cells the same size?

Select all, then set a common column width and row height from Home ▸ Format.

What is AutoFit?

AutoFit sizes rows or columns to the largest visible content.

Can one cell have a different width?

No. Width belongs to the entire column; height belongs to the entire row.

Other ways people ask this

People reach this page typing “how to autofit a column in excel”, “autofit columns excel”, “autofit column in excel” and “how do you autofit a column in excel”, among other phrasings; whichever wording you used, the fix above is the one you want.

Platform & version notes

  • If you are on a Mac, nothing here changes except the modifier key: swap Ctrl for ⌘ in every shortcut, and use the Windows/Mac toggle at the top of the page so the keystrokes shown match the keyboard in front of you.

How is it different on a Mac?

Only the keys. Press ⌘ where Windows uses Ctrl; the menus, formulas and result for "autofit columns in excel" are the same on macOS as on Windows.

Why do people search for this in so many different ways?

Because the same task has many names. “how to autofit a column in excel”, “autofit columns excel”, “autofit column in excel” all point at the one operation explained on this page, which is why they all lead here.