Column widths, row heights and freezing panes: practice exercises
Freeze Panes, Freeze Top Row, AutoFit, Column Width, Row Height, Hide and Unhide, ####. 8 exercises on real-looking data, each checked as you go. The full lesson is part of Pro.
This lesson has Excel's Freeze Panes and Format buttons above a practice sheet, with column borders you can drag and double-click: set up the sheet as you would in Excel, and each task is checked as you go.
Open the Column widths, row heights and freezing panes lesson
How it works
A long list is hard to read when the headings scroll out of sight, names are cut off and numbers show ####. Freeze Panes keeps the headings in view, and the column widths and row heights make everything fit.
On this sheet, as in Excel, drag the line on the right of a column letter to change its width, and double-click it to AutoFit. The Format button (Home tab) has Column Width, Row Height, and Hide & Unhide; Freeze Panes is on the View tab.
Keep the headings in view
A staff list has 40 people. Scroll down to row 30 and the headings in row 1 have gone, so you can't tell the Team column from the Site. Scroll right and the names in column A go too.
Freeze Panes keeps rows and columns in view as you scroll. Click the cell just below and to the right of what should stay put, then freeze. Click B2 and freeze, and row 1 and column A stay where they are. Click B4 and rows 1 to 3 stay, with column A.
- Freeze Top Row keeps row 1 only, wherever you've clicked.
- Freeze First Column keeps column A only.
- Unfreeze Panes takes it off. To move a freeze, unfreeze first (the menu shows Unfreeze Panes in place of Freeze Panes while something's frozen).
Excel freezes what's on screen above and to the left of the cell, so scroll back to the top first (Ctrl+Home).
Windows: View tab, Freeze Panes ▾, then pick one.
Mac: View tab, Freeze Panes, Freeze Top Row or Freeze First Column (they're buttons side by side).
Column widths and ####
A column of names shows Rachel Johns and stops, and a column of salaries shows ####. Nothing's wrong with the data: the column is too narrow. Text runs into the next cell only while that cell is empty; a number that doesn't fit shows ####.
Widths are measured in characters of the normal font: a new column is 8.43 wide, so it fits about 8 digits.
- AutoFit: double-click the line on the right of the column letter, and the column becomes just wide enough for its longest entry. Select several columns first to AutoFit them all.
- An exact width: select the column (click its letter), then Home, Format ▾, Column Width…, and type it, such as 12. Or right-click the letter.
- By eye: drag the line on the right of the letter. Excel shows the width as you drag.
Careful: AutoFit Column Width on the Format menu fits the selected cells. With only the heading selected, it fits the heading. Select the whole column first, or double-click the line.
Windows: Home tab, Format ▾, then Column Width or AutoFit Column Width.
Mac: the same on the Home tab, or the Format menu at the top of the screen, then Column.
Row heights
Rows are measured in points, like font sizes: a new row is 15 high. A row gets taller by itself for bigger text or wrapped text. To set one, click the row number, then Home, Format ▾, Row Height…, and type it, such as 30. Drag the line under a row number to do it by eye, and double-click it to AutoFit.
Windows: Home tab, Format ▾, Row Height… or AutoFit Row Height.
Mac: the same on the Home tab, or Format menu, Row.
Hide and unhide
Hiding a column keeps it in the workbook, and formulas still use it, but it doesn't show or print. Good for working columns, or emails on a sheet shown in a meeting. The column letters skip it (A, B, D…), and a thicker line marks where it is.
- Hide: select the column, then Home, Format ▾, Hide & Unhide, Hide Columns. Or right-click its letter, Hide. Ctrl+0 is the key.
- Unhide: select the columns either side (drag from C to E to get D back), then Unhide Columns, or right-click, Unhide.
- Rows work the same way: Hide Rows (Ctrl+9) and Unhide Rows.
Windows: Home, Format ▾, Hide & Unhide.
Mac: Home, Format, Hide & Unhide; or right-click (Control-click) the letter.
What you'll practise
- This staff list is long, so the headings in row 1 scroll out of sight. Keep row 1 in view as you scroll: View, Freeze Panes ▾, Freeze Top Row. Then scroll down the sheet to see it.
- Keep both the headings in row 1 and the names in column A in view. Click B2, the cell just below and to the right of them, then View, Freeze Panes ▾, Freeze Panes.
- The names in column A are cut off, because the column is too narrow. AutoFit column A: double-click the line on the right of the A at the top of the column.
- The salaries in column E show ####: the numbers are fine, but the column is too narrow to show them. Set column E to exactly 12 wide: click the E at the top, then Home, Format ▾, Column Width…, and type 12.
- Make the headings row stand out with more space: set the height of row 1 to 30 points. Click the 1 at the left, then Home, Format ▾, Row Height….
- The list is going on a screen in a meeting, so the email addresses and hours shouldn't show. Hide columns C and F, without deleting anything: click the C at the top, then Home, Format ▾, Hide Columns (or Ctrl+0). Then do the same for F.
- Column D of the staff list has been hidden. Display it again, and ensure that every entry in the Email column is fully visible.
- Configure the worksheet so that rows 1 to 3 and column A remain visible when you scroll down or to the right.