theweaselking: (Work now)
[personal profile] theweaselking
There's a thing, in Excel, where sometimes you'll want to merge cells. Instant problem: As soon as you merge cells, you can't get them to auto-adjust row height when wrapping any more.

This is a known thing about Excel. OpenOffice Calc doesn't have a problem with it, but Excel has never been able to auto-adjust row height for merged cells. And the standard workaround is "give the merged cell a name, and have a macro resize it". This is, to put it bluntly, annoying.

I've found a less annoying workaround.

Step 1: Pick a column WAAAAY off to the right. Like, "AA" or something. Something off where you're not using it and never going to look at it.
Step 2: Set the width of that column to the width of the whole merged cell range - so if you merged C3-K3, set column AA to be as wide as the whole C-K distance.
Step 3: Set the content of AA3 to be "=C3" so anything you put in C3 is duplicated far off in the vast yonder.
Step 4: Turn on text wrapping in both AA3 and the C3-K3 merge. Ta-da! Text will now wrap and row heights will autoadjust in your merged cell - because they're autoadjusting the non-merged cell in the same row, but who cares?
Step 5: Set your print area to exclude your far off column of dumb.

This, of course, IS annoying and stupid, compared to simply "making row height work right for merged cells" - but MS has claimed this is a feature, not a bug, for more than a decade now, so they obviously have no intention of fixing it. And by doing this you can get the result you actually wanted, which is nice.
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

theweaselking: (Default)theweaselking
Page generated Jun. 24th, 2025 01:24 am