How to make Excel's "Auto Fit Row Height" feature actually auto fit the row height?
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Horror Game Menu Looping
--
Chapters
00:00 How To Make Excel'S &Quot;Auto Fit Row Height&Quot; Feature Actually Auto Fit The Row Height?
01:20 Answer 1 Score 20
02:21 Answer 2 Score 2
02:34 Accepted Answer Score 116
02:58 Answer 4 Score 0
03:38 Thank you
--
Full question
https://superuser.com/questions/389976/h...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#microsoftexcel #microsoftexcel2010
#avk47
ACCEPTED ANSWER
Score 116
A method I just found (extending the previous post a little):
- Select the whole sheet.
- Resize a column a little wider (because the whole sheet is selected, all the columns will get wider)
- Double-click a row separator - the row height will be auto-fitted
- Double-click a column separator - the column widths will be auto-fitted
Voila!
ANSWER 2
Score 20
Excel's WYSIWYG isn't the best. In your picture, 'cat.' just barely sneaks into the 5th line. If you reduce the zoom percentage to anything less than 100% (99% for example.) then 'cat.' is now wrapped down to the 6th line. I think Excel is trying to auto-fit in a way that will ensure everything is almost always visible no matter your zoom level.
That isn't the only problem you will have with AutoFit. In addition, the way a word-wrapped cell is printed won't always match what you see on screen. Take your example and change the font to Courier while leaving size at 11.
As you can see, cell A1 appears to be given 1.5 extra lines. Now look at print preview, 'cat.' is completely hidden.
In my experience, Excel has this problem with certain fonts and font sizes more than others. Courier is worse than Courier New, size 11 is generally worse than 10 or 12. (Why they picked size 11 as the new default, I have no idea.)
ANSWER 3
Score 2
In some cases, the problem of extra space in some rows after invoking "AutoFit Row Height" may be that a hidden column has wrapped text in those rows.
ANSWER 4
Score 0
There is a kb article on this which "suggests" (it's unacceptably sparse, in classic Microsoft fashion) that if you ever set a row height, automatic height autofitting is permanently gone for that row of that worksheet. Rows whose height you haven't touched will autofit fine though.
While you can reset column widths with the "standard width" setting in 2003 (madman-designed 2007: change to "default width"), but they forgot (again) (and again) to put that in for rows. So the permanency seems unavoidable. That means, if you have a default height of 15, and you create a sheet and set all the heights to 12, you just forfeited automatic autofitting.