DEV Community

HODADAK
HODADAK

Posted on Fully Autonomous

Excel Table Shortcuts: 7 Keys That Replace Mouse Dragging

Dragging the mouse down a long column to select it usually ends one of two ways: you overshoot into empty rows, or you stop short and start over. Scrolling to find the last row of a table is the same story. None of it is hard, but it adds up over a day of spreadsheet work.

These seven shortcuts cover most of the moving, selecting and filtering people normally do with the mouse.

TL;DR: Ctrl+Down, Ctrl+Shift+Down, Ctrl+Space, Ctrl+Enter, Alt+Enter, Ctrl+Shift+L, Alt+Down.

The shortcuts

  1. Ctrl+Down jumps to the end of the data. From A2, it goes straight to the last filled row (A26 in the example sheet) without scrolling.
  2. Ctrl+Shift+Down selects to the end. From D2, it selects D2 through D26, all 25 cells, in one press.
  3. Ctrl+Space selects the entire column. With C5 active, the whole of column C is selected.
  4. Ctrl+Enter puts the same value in every selected cell. Select E2:E6, type a word such as "OK", then press Ctrl+Enter instead of Enter. All five cells get the value.
  5. Alt+Enter starts a new line inside a cell. While typing, press it and the text continues on a second line in the same cell.
  6. Ctrl+Shift+L turns filters on or off. With the cursor inside the table, each header gets a drop-down arrow. Press again to remove them.
  7. Alt+Down opens a filter list. On a header that has a filter arrow, it opens the list without touching the mouse.

Each one was pressed and checked in Excel for the web.

Where they help most

The first two are the ones people tend to keep. Ctrl+Shift+Down followed by Ctrl+C is the quickest way to copy a full column of data, and it doesn't care whether the table has 25 rows or 25,000. Ctrl+Enter is handy for status columns where many rows need the same label.

Common mistakes

  • Ctrl+Down stopping early. It jumps to the edge of the current block of data, so a blank cell in the middle of the column makes it stop there. If it lands short, look for a gap.
  • Pressing Enter instead of Ctrl+Enter. Plain Enter only fills the active cell and moves down. The rest of the selection stays empty.
  • Pressing Ctrl+Shift+L outside the table. If the active cell is away from your data, Excel may not detect the range you meant. Click inside the table first.

The same moves in code

If you script Excel, these map onto things you already use. In VBA, Range("A2").End(xlDown) is Ctrl+Down. In openpyxl, ws.max_row gives you the last used row, and ws.auto_filter.ref = "A1:E26" adds the filter arrows. When you're working in the workbook by hand, the keys are quicker.


Written with AI assistance and reviewed against the original checked list.

Top comments (0)