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
Select the column letters or row numbers you want to size.
Double-click a header boundary for AutoFit.
Use Home ▸ Format ▸ Column Width or Row Height for exact matching sizes.
Turn on Wrap Text before AutoFit row height when cells contain multi-line text.
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. Most people learn this as a sequence of clicks and forget it by next week; learning it as a pattern instead is what lets you apply it to the next, slightly different version of the problem without starting from scratch. That is the difference this page is trying to make. Treat “autofit column width excel” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected columns shows up while it is still harmless. 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. That turns a layout choice that keeps the sheet readable and sortable into a method you can reuse, explain, and defend when the workbook leaves your screen.
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. The aim was to get you unstuck fast and leave you a little more capable than a copy-paste would. The answer is at the top and the detail above shows why it holds — so the next time a colleague asks, you can answer without reaching for search. Treat “autofit column width excel” as a routine rather than a one-off. Once you know which setting or command controls it, the same few steps handle every workbook where it comes up in Excel, and you can explain them to a colleague in a sentence.
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
This is also commonly searched as “column width excel autofit”, “how to autofit column width in excel” and “excel autofit cell width”. They describe the identical operation, so you are in the right place no matter how you phrased it.
Why do people search for this in so many different ways?
Because the same task has many names. “column width excel autofit”, “how to autofit column width in excel”, “excel autofit cell width” all point at the one operation explained on this page, which is why they all lead here.