Deleting rows and columns in Excel

To delete a row or column in Excel, right-click on the row number or column letter you want to remove, then select Delete from the menu. The row or column disappears immediately, and all the data below or to the right shifts up or left to fill the space. You can delete a single row or column this way, or select multiple rows or columns at once and delete them together.

The most common mistake is clicking inside a cell in the row you want to delete instead of clicking on the row number itself. When you click a cell, the right-click menu gives you options for deleting cell contents, not the entire row. Always click the row number on the left edge or the column letter at the top.

Key Takeaways

  • Right-click the row number or column letter, not a cell inside it, then select Delete to remove the entire row or column.
  • You can select multiple rows or columns by clicking one, holding Shift, and clicking another to delete them all at once.
  • Deleted rows and columns cannot be recovered unless you undo the action immediately with Ctrl+Z or Cmd+Z.
  • Deleting a row or column shifts all data below or to the right upward or leftward, which may break formulas that reference those cells.

Deleting a single row

Click on the row number on the left side of the spreadsheet. The entire row highlights in blue. Right-click on that same row number and a menu appears with several options. Click Delete. The row vanishes, and every row below it moves up one position.

If you change your mind immediately, press Ctrl+Z on Windows or Cmd+Z on Mac to undo the deletion. Once you close the file or perform other actions, the undo option may no longer work.

Deleting a single column

Click on the column letter at the top of the spreadsheet. The entire column highlights in blue. Right-click on that column letter and select Delete. The column disappears, and every column to the right shifts one position to the left.

This works the same way as deleting a row, except you are removing vertical data instead of horizontal data. All formulas or references that pointed to cells in that column will break or show an error after deletion.

Deleting multiple rows or columns at once

Click on the first row or column you want to delete. Hold down Shift and click on the last row or column in the range you want to remove. All rows or columns between the first and last are now highlighted in blue. Right-click anywhere in the highlighted area and select Delete. All selected rows or columns disappear at once.

You can also click on one row or column, then hold Ctrl (or Cmd on Mac) and click on other individual rows or columns that are not next to each other. This lets you delete non-consecutive rows or columns in a single action. Right-click and select Delete when you are done selecting.

What happens to formulas when you delete rows or columns

If your spreadsheet contains formulas that reference cells in a deleted row or column, those formulas will show #REF! error after the deletion. For example, if a formula says =A1+B1 and you delete column A, the formula breaks because column A no longer exists.

Before deleting rows or columns, scan your spreadsheet to see if any formulas depend on the data you are about to remove. If they do, you may need to rewrite those formulas or move the data elsewhere first. This is especially important in large spreadsheets where formulas may be hidden several rows or columns away from where you are working.

Using the Edit menu instead of right-click

If right-clicking does not work on your device or you prefer using menus, you can delete rows and columns through the top menu bar. First, click on the row number or column letter to select it. Then click the Edit menu at the top of the screen, look for an option like Delete Sheet Rows or Delete Sheet Columns, and click it. The row or column is removed the same way as with the right-click method.

On some versions of Excel, this menu option may be under Home instead of Edit. Look for a button or dropdown that says Delete and hover over it to see options for deleting rows or columns.

Recovering a deleted row or column

The only way to recover a deleted row or column is to undo the action immediately. Press Ctrl+Z on Windows or Cmd+Z on Mac right after you delete. This restores the row or column and all its data. If you have performed other actions since the deletion, you may need to press Ctrl+Z or Cmd+Z multiple times to go back far enough.

Once you close the file without saving, or if you save the file after deleting, the data is gone permanently. Excel does not have a trash bin or recovery folder for deleted rows and columns like some other programs do. Always double-check that you are deleting the correct row or column before you right-click and select Delete.

Frequently Asked Questions

Can I delete a row without losing the data?

No, deleting a row removes all data in that row permanently unless you undo immediately. If you want to keep the data, cut the row first (Ctrl+X or Cmd+X), paste it somewhere else, and then delete the original row.

What if I delete the wrong row by accident?

Press Ctrl+Z or Cmd+Z right away to undo the deletion. This restores the row and all its contents. If you have already performed other actions, you may need to undo multiple times to get back to the moment before the deletion.

Does deleting a row affect other sheets in the same workbook?

No, deleting a row only affects the sheet you are currently working on. Other sheets in the same workbook are not changed. However, if another sheet has a formula that references a cell in the deleted row, that formula will show an error.

Can I delete rows based on a condition, like all rows with a certain value?

Excel does not have a built-in filter-and-delete feature, but you can sort your data by the column you care about, then manually select and delete the rows you want. Alternatively, you can use AutoFilter to hide rows that do not match your condition, then select and delete only the visible rows.

Why does my formula show #REF! after I deleted a row?

The formula was referencing a cell in the row you deleted. The cell no longer exists, so the formula cannot calculate. You will need to edit the formula to reference a different cell or remove the formula entirely if it is no longer needed.