Skip to content

Insert, delete and hide rows and columns by keyboard

Shortcut drills8 min

Builds on Add it up with SUM and Rows, columns and widths.

An HR assistant in Dublin keeps the team's leave tracker. A new starter needs a row, a leaver's row has to go, and the salary column must be out of sight before a screen share with the managers.

How it works

ShiftSpace selects the row of the active cell, and CtrlSpace selects its column. With whole rows or columns selected, CtrlShift= (the plus key) inserts as many as you selected, above the rows or to the left of the columns, and Ctrl- deletes them. With only part of a row selected, the same keys ask which way to move the cells around it.

Ctrl9 hides the selected rows and Ctrl0 the columns. To show them again, select the rows or columns on both sides, right-click and choose Unhide. ShiftF11 adds a new sheet.

RowAB
1ToPress
2Select the row, or the columnShiftSpace, or CtrlSpace, the same on a Mac
3InsertCtrlShift= (on a Mac, also CmdShift=)
4DeleteCtrl- (on a Mac, Cmd-)
5Hide rows, or columnsCtrl9, or Ctrl0, the same on a Mac
6Repeat the last actionF4 (on a Mac, CmdY)

Example

A total keeps up with an inserted row only when the row lands inside its range:

A range grows when a row goes in between its first and last rows. A row added between the last row and the total lands outside the range, so the total leaves it out. Inserted inside the range: in B7, =SUM(B2:B6) returns 182.5. Inserted below the last row: in B7, =SUM(B2:B5) returns 147.5.

Common mistakes

  • A row inserted between the last row and its total isn't in the total. Check the total's range after every insert near the bottom of a list.
  • Delete empties the cells and leaves a blank row in the list. To take the row out, select it with ShiftSpace and press Ctrl-.
  • On a Mac with more than one keyboard language, CtrlSpace may switch languages instead of selecting the column.
  • Hiding protects nothing: anyone can unhide a column. Take sensitive data out of a file before you send it.

In short

  • ShiftSpace selects the row and CtrlSpace the column. Then CtrlShift= inserts and Ctrl- deletes.
  • After inserting near the bottom of a list, check that the total's range reaches the new row.
  • Ctrl0 hides columns and Ctrl9 rows. Unhide from the right-click menu.

Practice

4 exercises · free, no account needed

Start practicing
  1. Not started

    1. Insert a row from the keyboard

    Shortcut · medium

  2. Not started

    2. Hide the salary column

    Shortcut · easy

  3. Not started

    3. Add the new starter's row

    Editing · medium

  4. Not started

    4. Delete with one cell selected

    Quiz · easy