Link to home
Start Free TrialLog in
Avatar of Cody Vance
Cody VanceFlag for United States of America

asked on

Excel Row Autofit Not Working Properly

Whenever I set a Row to Autofit, it leaves a additional height (extra space) at the top portion of the row that does  not go away.  I have gone into the cells and checked for returns or extra spaces, no dice.  Anyone know how to fix this problem?  Some of the Columns are also set to Wrap Text.  It works on some rows, but not on others, and there is no consistency or pattern.

Thanks,
Cody-
ASKER CERTIFIED SOLUTION
Avatar of Ingeborg Hawighorst (Microsoft MVP / EE MVE)
Ingeborg Hawighorst (Microsoft MVP / EE MVE)
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Try dragging the rows smaller (less than you need), then doing autofit by double clicking between rows. You can do both of these to all rows by doing ctrl-a first
etech, what are the chances that we post in exactly the same minute, hours after the question has been asked. LOL.

I find your suggestion does not work, though. In the example of the above screenshot, the autofit will bounce back to the too high rows.

cheers, teylyn
Really? It worked for me. I guess we have to see what Cody says...
:)

Several variables go into this, including the "active" printer driver, so it is certainly possible that behavior seen by one user will differ from behavior seen by another...
etech,

the point is that with a situation like I posted above, the autofit will add empty spaces, even though the text seems to fit in the cell. Changing the row height manually and then using autofit again does not resolve the problem.  Excel will put in an extra blank row if the text is too close to the right hand border of the cell.

Patrick, I find this has nothing to do with the printer driver. The example above has been created on just one machine.

The text fits in the cell, but autofit row height will add a blank line, if the text is too close to the right hand cell border.

The crucial issue really is: What is "too close"?  Have a play with some sample text, like I did in the sample above, and see. Move the cell border to the right or left just a  pixel or so and see that the autofit will insert an empty line in the cell, even if the text does not require a line break.

As far as I'm concerned, this is an Excel bug. WYSIWYG is not working.

cheers, teylyn
Avatar of Cody Vance

ASKER

Anyone know if there is a way to adjust the Excel cell margins maybe?  Not sure if this would fix it or not..
Hi Cody,

as far as I know, you can only increase the cell margins with the indent settings of the formatting dialog, but you can't reduce them.

You could try out a slightly smaller font size. For example, if you're using Arial 10, try Arial 9.5 instead. You won't be able to select that font size from the drop-down, but you can enter it manually in the font size box. Excel accepts font size increments of 0.5.

cheers, teylyn