Skip to content
Home » Guides » Computers » How to Make Excel Cells Fit Text: A Complete Guide

How to Make Excel Cells Fit Text: A Complete Guide

how to make excel cells fit text

Ever typed text into an Excel cell only to watch it get cut off? You’re not alone. This guide shows you exactly how to make excel cells fit text automatically, ensuring your data is always clean, professional, and easy to read. Let’s get started!

3 Easy Ways to AutoFit Cells in Excel

The fastest way to solve overflowing text is with Excel’s AutoFit feature. This powerful tool automatically adjusts the column width or row height to match the longest entry.

- Advertisement -


Pro Tip: To apply these methods to the entire worksheet at once, first click the triangle icon in the top-left corner of the sheet (between the ‘A’ column and ‘1’ row) or press Ctrl + A.

Method 1: The Mouse Double-Click Trick

This is by far the most popular and quickest method.

  1. Position your mouse cursor on the right border of the column header you want to resize. For rows, place it on the bottom border of the row header.
  2. The cursor will change into a double-sided arrow.
  3. Double-click your mouse.

That’s it! The column or row will instantly resize to perfectly fit the content.

- Advertisement -


You can apply this to multiple columns or rows by selecting them all first and then double-clicking the border of any one of the selected headers.

Method 2: Using the Excel Ribbon

If you prefer using the on-screen menu, the Excel Ribbon provides a straightforward alternative.

  1. Select the cell, column(s), or row(s) you want to adjust.
  2. Navigate to the Home tab.
  3. In the “Cells” group, click on Format.
  4. Choose either AutoFit Column Width or AutoFit Row Height from the dropdown menu.

Actionable Tip: To make this even faster, add this feature to your Quick Access Toolbar. Right-click on AutoFit Column Width or AutoFit Row Height and select “Add to Quick Access Toolbar.” Now you have a one-click button for resizing.

Method 3: A Handy Keyboard Shortcut

For those who love to keep their hands on the keyboard, Excel has shortcuts for AutoFit.

- Advertisement -


  1. First, select the target column(s) or row(s).
  2. For column width, press ALT + H + O + I in sequence.
  3. For row height, press ALT + H + O + A in sequence.

For more keyboard shortcuts, you can check out Microsoft’s official guide on Excel keyboard shortcuts.

Troubleshooting: Why Isn’t AutoFit Working?

Sometimes AutoFit doesn’t behave as expected. Here are the two most common culprits and how to fix them.

The Merged Cells Problem

AutoFit is not designed to work on merged cells. Because a merged cell spans multiple columns or rows, Excel doesn’t know which one to resize. To fix this, you must unmerge the cells before using AutoFit. You can find the “Merge & Center” button on the Home tab; click it to unmerge the selected cells.

Conflicts with Wrap Text

If you have applied “Wrap Text” and then manually adjusted the row height, Excel will remember your manual adjustment and AutoFit for row height may not work. To fix this, simply re-apply AutoFit Row Height using the ribbon or a shortcut to force Excel to recalculate the necessary height.

- Advertisement -


Alternative Methods for Fitting Text

Sometimes, AutoFit isn’t the perfect solution, especially if it makes a column excessively wide. In these cases, you have other options for how to make excel cells fit text.

When to Use Wrap Text

If you have a long sentence or paragraph in a single cell, using AutoFit might make the column too wide for your report. The “Wrap Text” feature solves this by breaking the text into multiple lines within the same cell.

  1. Select the cell(s).
  2. Go to the Home tab and click the Wrap Text button in the “Alignment” group.
  3. Afterward, use the AutoFit Row Height feature to ensure the row expands to show all the wrapped lines.

Read more: How to wrap text in Excel (5 Easy Ways)


Using ‘Shrink to Fit’ to Resize Text, Not Cells

What if you cannot change the cell’s size? The “Shrink to Fit” option reduces the font size of the text until it fits within the current cell dimensions.

- Advertisement -


  1. Select the cell(s) and press Ctrl + 1 to open the Format Cells dialog box.
  2. Go to the Alignment tab.
  3. Under “Text control,” check the Shrink to fit box and click OK.

Be careful, as this can make very long text unreadable, but it’s perfect for minor adjustments.

Advanced Tip: How to Make Excel Cells Fit Text Automatically with VBA

For those who want cells to resize automatically as they type, a simple VBA (Visual Basic for Applications) script is the ultimate solution.

  1. Right-click on the sheet tab you want to apply this to and select View Code.
  2. In the new window that opens, select Worksheet from the dropdown menu on the left.
  3. Paste the following code into the code window:
  1. Close the VBA editor.

Now, whenever you change a cell’s content in that specific sheet, the column width will adjust instantly.

- Advertisement -


Frequently Asked Questions (FAQs)

Q1: How do I apply AutoFit to just one cell instead of the whole column?

Excel’s AutoFit feature is column- or row-based. It resizes the entire column to fit the widest cell in that column. To adjust for a single cell, you are better off using “Wrap Text” or manually resizing the column.

Q2: Can I set a minimum or maximum width for AutoFit?

No, AutoFit does not have a built-in min/max setting. It resizes to the exact width needed. If you need specific widths, you’ll have to set them manually.

Q3: Does resizing cells affect how my sheet prints?

Absolutely. Wider columns or taller rows can change the page layout. Always use Print Preview to check how your spreadsheet will look on paper before printing. For advanced printing options, consider looking into a guide like the one from the Excel Campus.

Conclusion

Now you have a complete toolkit for how to make excel cells fit text. From the quick double-click AutoFit to the finesse of Wrap Text and the power of VBA, you can ensure your data is always presented clearly and professionally. Stop letting runaway text ruin your spreadsheets.

Take a moment to try these methods in your own work. You’ll find it makes a huge difference in readability and presentation. If you found this guide helpful, please share it with your colleagues and leave a comment below with your favorite tip