Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Keyboard Shortcut for Deleting Rows in Excel

· 4 min read · Home Automation

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To delete a row in Excel using a keyboard shortcut, select the row (or a cell within the row) and press Ctrl + Minus sign (-). If you have not selected the entire row first, Excel will open a Delete dialog box asking you to specify that you want to shift cells up or delete the entire row.

Using shortcuts to remove data is significantly faster than right-clicking or navigating through the Ribbon menu, especially when dealing with large datasets. This process permanently removes the row and shifts all subsequent data upward to fill the gap.

What You'll Need

  • A computer with Microsoft Excel installed (Windows or macOS).
  • A keyboard with a numeric keypad or a standard top-row hyphen/minus key.
  • An open Excel workbook containing the data you wish to modify.

Step-by-Step

  1. Select the target row: Click on any cell within the row you want to delete.
  2. Highlight the entire row: Press Shift + Spacebar. This expands your selection from a single cell to the entire horizontal row.
  3. Execute the delete command: Press Ctrl + Minus sign (-).
    • On a keyboard with a numeric keypad, use the minus key on the keypad.
    • On a laptop or compact keyboard, use the hyphen/minus key next to the zero.
  4. Repeat for multiple rows: If you need to delete several rows that are next to each other, hold Shift and use the Up or Down arrow keys to highlight additional rows, then press Ctrl + Minus sign (-) again.
  5. Delete non-adjacent rows: Hold the Ctrl key (Cmd on Mac) and click various row headers with your mouse to select multiple separate rows. Once they are all highlighted, press Ctrl + Minus sign (-) to remove them all at once.

Common Mistakes

  • Pressing Delete instead of Ctrl + Minus: Pressing the "Delete" key on your keyboard only clears the contents of the cells. It does not remove the row itself, leaving you with a blank empty space in your data.
  • Forgetting to select the row: If you press Ctrl + Minus while only a single cell is selected, Excel doesn't know if you want to delete the cell, the column, or the row. This triggers a pop-up menu, which adds an extra step to your workflow.
  • Deleting rows in a filtered list: If you have a filter active, using the shortcut may delete rows that are hidden by the filter if you are not careful about your selection. Always double-check your visible data before executing a bulk delete.
  • Using the wrong Minus key: While both usually work, some legacy keyboard layouts may behave differently. If the top-row hyphen doesn't work, try the numeric keypad minus.

Tips

  • The Mac Alternative: If you are using Excel on a Mac, the shortcut is Command (⌘) + Minus sign (-).
  • Quick Undo: If you accidentally delete the wrong row, immediately press Ctrl + Z (Cmd + Z on Mac) to restore the data.
  • Combine with Find: Use Ctrl + F to find a specific value, then use Shift + Spacebar and Ctrl + Minus to quickly remove every row containing that specific value.
  • Using the Ribbon: If you prefer the mouse, you can navigate to the Home tab > Cells group > Delete > Delete Sheet Rows.

Troubleshooting

If the keyboard shortcut is not working as expected, try these steps in order:

  1. Check for Protected Sheets: If the worksheet is protected, you cannot delete rows. Go to the Review tab and check if it says "Unprotect Sheet." If it does, you must unprotect the sheet (and enter the password if required) before the shortcut will function.
  2. Verify Cell Edit Mode: If your cursor is blinking inside a cell (meaning you are currently typing in it), keyboard shortcuts for row management are disabled. Press Enter or Esc to exit the cell and try the shortcut again.
  3. Check for Merged Cells: Excel often prevents the deletion of a row if it contains a merged cell that spans across multiple rows. You may need to unmerge the cells first via the Home tab > Alignment > Merge & Center.
  4. Restart Excel: If the shortcut suddenly stops responding, a temporary software glitch may be the cause. Save your work and restart the application.

Frequently Asked Questions

Can I delete multiple rows at once using a shortcut?

Yes. Select multiple rows by holding Shift and using the arrow keys, or hold Ctrl and click individual row headers. Once highlighted, press Ctrl + Minus sign (-).

What is the difference between "Clear Contents" and "Delete Row"?

Clear Contents (the Delete key) removes the text and numbers but leaves the empty row in place. Delete Row (Ctrl + Minus) removes the entire row structure and shifts the rows below it upward.

Does this shortcut work in Excel Online (Web version)?

Yes, the Ctrl + Minus shortcut generally works in the web version of Excel, provided there are no browser-level keyboard conflicts.

How do I delete a column instead of a row?

The shortcut is the same (Ctrl + Minus), but you must first select the column. Use Ctrl + Spacebar to select the entire column, then press Ctrl + Minus sign (-).

Can I use this shortcut to delete rows based on a condition?

The shortcut itself only deletes what is selected. To delete rows based on a condition, you should first use the Filter tool to show only the rows meeting your criteria, select those visible rows, and then use the Ctrl + Minus shortcut.