142

I have a spreadsheet with many columns. The columns are all a small standard width. Double-clicking the partition line between columns will expand the column width to encompass the longest string in that column.

Is there a shortcut to perform this operation on every column in the spreadsheet?

Brian Agnew
  • 1,125
MattUebel
  • 1,803

6 Answers6

234

Click where the row and column headers meet, this will select the entire sheet, like so:

alt text

Then double-click any one of the column partition lines.

I do this all the time, and it's as quick as you can get.

Gareth
  • 19,080
26

I don't know about shortcut. I use menu.
1) Select The Full Spreadsheet
2) Select Format
3) Column
4) Autofit Selection

Dave
  • 614
15

Ctrl+A to select all cells, then press Alt+H, O, I.

Jawa
  • 3,679
6

Try selecting everything (CTRL + A twice rapidly, or just select the columns you want), and then double-click a partition line. In Excel 2007, that solution seems to work just fine; in other words, it automatically sizes each column to its own longest string.

jrc03c
  • 10,542
1

enter image description herein Excel 2016 you can select all with Ctrl + A then on Home tab look for Format menu. Click and select Autofit Column Width

ihor.eth
  • 111
-1

Select All - "Control" A

Expand all column width and heights "Alt" H-O-I

Will
  • 1