Skip to content

Rows, columns and widths

Enter and organize data8 min

Builds on Select ranges, rows and columns.

A finance assistant in Hamburg keeps the half-year expense summary. April was left out, a cancelled project still has its row, and since the totals grew, one column shows ##### where the figures should be.

How it works

You work on rows and columns from their headers, the numbers down the left and the letters along the top. Right-click one (Control and a click on a Mac) for the commands. Insert adds a row above the one you clicked, or a column to its left. Everything below or to the right moves along, and formulas follow the cells they pointed at, so a total over B2:B7 becomes B2:B8 when a row goes in between its first and last rows.

Delete removes the row or column and closes the gap, where the Delete key only empties the cells and leaves a blank row in your list. Hide puts a row or column out of sight with everything in it, and formulas still use it. To bring it back, select the headers on both sides, right-click and choose Unhide. Select several headers first to work on several at once; Insert and Delete on the Home tab do the same jobs.

When a number or a date doesn't fit its column, Excel shows ##### instead of a wrong value. Double-click the border to the right of the column letter to fit the column to its widest entry, or drag the border to the width you want. Format > Column Width on the Home tab sets an exact width.

Example

Project Delta, on row 4, was cancelled:

The Delete key empties the cells and leaves the row. Delete on the row's menu removes it, and the total's range shrinks to match. Delete key on row 4: in B7, =SUM(B2:B6) returns €36,925. Row 4 deleted: in B6, =SUM(B2:B5) returns €36,925.

Common mistakes

  • A row added just below a list, between the last row and the total, falls outside the total's range. Check the total after you insert near the bottom.
  • Pressing Delete to remove a row leaves a gap, which stops sorting and CtrlDown partway down the list. Delete the row from its header instead.
  • Hiding protects nothing. Anyone can unhide a column, so take private figures out of a file before you send it.

In short

  • Insert goes above a row or left of a column, and Delete closes the gap.
  • Hide keeps the data, and Unhide needs the rows or columns on both sides selected.
  • ##### means too narrow: double-click the border right of the column letter.
  • To insert, delete and hide from the keyboard, see Insert, delete and hide rows and columns by keyboard.

Practice

4 exercises · free, no account needed

Start practicing
  1. Not started

    1. Insert a row for April

    Editing · medium

  2. Not started

    2. Take out a cancelled project

    Editing · medium

  3. Not started

    3. What ##### is telling you

    Quiz · easy

  4. Not started

    4. Set an exact column width

    Find it · easy