How to Autofit in Excel: A Step-by-Step Guide for Perfect Spreadsheets

how to autofit in excel

Autofitting in Excel helps to automatically adjust the width of columns and the height of rows to fit the data they contain. This ensures that your data is easily readable and well-organized. To autofit columns or rows, simply select the desired columns or rows, and use the AutoFit feature. It’s quick, easy, and ensures that every piece of data is perfectly visible.

How to Autofit in Excel

Autofitting in Excel will adjust your columns and rows to ensure that all your data is visible. Follow these steps to make sure your spreadsheet looks clean and professional.

Step 1: Select the Columns or Rows

Click and drag to select the columns or rows you want to autofit.

Whether you want to autofit a single column or multiple columns, you can easily select them by clicking the column letters or row numbers. For multiple columns or rows, click and drag across the headers.

Step 2: Go to the "Home" Tab

Navigate to the "Home" tab on the Excel ribbon.

The Home tab contains most of the basic formatting options you will use frequently. It’s where you’ll find the AutoFit option nestled among other tools.

Step 3: Click "Format" in the Cells Group

In the "Cells" group, click on "Format."

The Cells group includes various options for formatting cells, including adjusting cell size, protecting cells, and organizing sheets.

Step 4: Select "AutoFit Column Width" or "AutoFit Row Height"

Choose either "AutoFit Column Width" or "AutoFit Row Height" from the dropdown menu.

Depending on whether you’re adjusting columns or rows, select the appropriate AutoFit option to automatically resize them to fit the data contained within.

Step 5: Check Your Adjustments

Review the adjustments made to ensure all data is visible and the layout is clean.

Taking a moment to check the result ensures that no data is cut off and that the spreadsheet is visually appealing.

After completing these steps, you’ll notice that Excel has resized your selected columns or rows to perfectly fit the data they contain. Your spreadsheet will look much neater and be easier to navigate.

Tips for Autofitting in Excel

  • Use shortcuts: Double-click the right edge of a column header or the bottom edge of a row header to autofit quickly.
  • Select entire sheet: Press Ctrl + A to select the whole sheet, then autofit columns or rows to adjust everything at once.
  • Check for hidden data: Autofitting helps to reveal any hidden data that might be cut off in a cell.
  • Customize after autofitting: You can still manually adjust the sizes after autofitting if needed.
  • Consistency: Apply autofit consistently for a polished and professional look.

Frequently Asked Questions

What is autofit in Excel?

Autofit is a feature in Excel that adjusts the width of columns and the height of rows to fit the data contained within them.

Can I autofit multiple columns or rows at once?

Yes, you can select multiple columns or rows by clicking and dragging across their headers and then use the autofit feature.

How do I quickly autofit a single column or row?

Double-click the right edge of the column header or the bottom edge of the row header to quickly autofit that column or row.

Does autofit work with merged cells?

Autofit does not automatically adjust merged cells. You may need to manually adjust merged cells’ sizes to fit the data.

Is there a keyboard shortcut for autofit?

While there’s no direct shortcut for autofit, you can use the sequence Alt, H, O, I for columns or Alt, H, O, A for rows to navigate through the menu quickly.


  1. Select the Columns or Rows
  2. Go to the "Home" Tab
  3. Click "Format" in the Cells Group
  4. Select "AutoFit Column Width" or "AutoFit Row Height"
  5. Check Your Adjustments


Autofitting in Excel is a powerful, yet simple tool that can greatly enhance the readability and organization of your spreadsheets. By following a few straightforward steps, you can ensure that your data is always visible and your sheets look professional. This is especially useful in large datasets or reports where data presentation is critical.

Whether you’re a student trying to organize homework, a professional preparing a report, or just someone who loves a well-organized spreadsheet, mastering the autofit function in Excel will save you a lot of time and effort. So, next time you’re working on an Excel sheet, give autofit a try and see how it can make your life easier and your data clearer.

Want to learn more about Excel? Consider exploring features like conditional formatting or pivot tables to further enhance your skills. Happy Excel-ing!