The fastest way to delete multiple cells
To delete multiple cells in Excel, select the cells you want to remove, right-click, and choose Delete. Excel then asks how you want to shift the remaining cells — up, left, or leave them in place. The method you choose depends on whether you want to close the gap those cells left behind.
If you select cells that form a rectangle (a block), Excel assumes you want to shift cells up or left. If you select cells in a single row or column, it shifts in the direction that makes sense for that layout. You can also use the menu: go to Home tab, click the small arrow under Delete, and pick Delete Cells.
Key Takeaways
- Select the cells you want to remove, right-click, and choose Delete to open the shift dialog.
- Choose "Shift cells up" to close the gap vertically, or "Shift cells left" to close it horizontally.
- If you only want to clear the contents without moving cells, use Delete or press the Delete key instead of the Delete Cells command.
- You can select non-adjacent cells by holding Ctrl and clicking each one, then delete them all at once.
- Undo (Ctrl+Z) reverses any delete action, so you can recover cells if you remove the wrong ones.
Selecting cells before you delete
Excel needs to know which cells to delete before you can remove them. Click the first cell, then hold Shift and click the last cell in the range you want to delete. This selects everything in between. For a block of cells, click the top-left corner and drag to the bottom-right, or click one corner and Shift-click the opposite corner.
If the cells you want to delete are not next to each other, hold Ctrl (or Cmd on Mac) and click each cell individually. You can mix single cells and ranges — hold Ctrl, select one range with click-and-drag, then Ctrl-click another range. Excel will delete all of them when you give the delete command, and you can choose how to shift the remaining cells.
Shift cells up versus shift cells left
Shift cells up moves everything below the deleted cells upward to fill the gap. Use this when you are deleting entire rows of data or when the cells form a vertical block. Shift cells left moves everything to the right of the deleted cells leftward. Use this when you are deleting entire columns or a vertical strip of cells.
If you delete a single cell or a small block in the middle of your data, Excel guesses which direction to shift based on the shape of what you selected. If you select one cell, it defaults to "Shift cells up". If you select a row, it shifts up. If you select a column, it shifts left. You can always change this choice in the dialog that appears — just pick the option you need before clicking OK.
Clearing contents instead of deleting cells
Sometimes you want to erase what is in a cell without moving the cells themselves. This is different from deleting. Select the cells, then press the Delete key on your keyboard. This removes the data but leaves the cells in place, and nothing shifts.
You can also right-click and choose Clear Contents from the menu. This does the same thing — it empties the cells but does not remove them from the spreadsheet. Use this when you want to keep your column and row structure intact but remove the values inside.
Deleting entire rows or columns
To delete a whole row, click the row number on the left side of the spreadsheet (the gray area with numbers 1, 2, 3, and so on). The entire row highlights in blue. Right-click and choose Delete. Excel removes the row and shifts everything below it upward automatically.
To delete a whole column, click the column letter at the top (A, B, C, and so on). The entire column highlights. Right-click and choose Delete. Everything to the right shifts left. You can select multiple rows or columns at once by clicking the first one, then Shift-clicking the last one, then right-clicking and deleting them all together.
Undoing a delete if you made a mistake
If you delete cells and immediately realize you removed the wrong data, press Ctrl+Z (or Cmd+Z on Mac) to undo. Excel reverses the delete and puts the cells back where they were. You can undo multiple times to go back several steps if needed.
Undo works as long as you have not closed the file. Once you close and reopen the spreadsheet, the undo history is gone. If you are about to delete a large section of data and you are not completely sure, save the file first under a different name, then delete. That way you have a backup if something goes wrong.
Deleting cells with formulas or links
If a cell you are deleting contains a formula that other cells depend on, those other cells will show an error (usually #REF!) after the delete. Excel does not warn you about this beforehand — it only shows the error after the deletion is complete. If you see #REF! errors appear, undo immediately and check which cells reference the ones you deleted.
Before deleting cells with formulas, look at the cells that use them. You can find this by clicking the cell with the formula, then going to the Formulas tab and clicking Trace Dependents. This shows you which other cells will break if you delete. Once you know what depends on what, you can decide whether to delete, move the formula somewhere else, or rewrite the dependent cells first.
Frequently Asked Questions
What is the difference between Delete and Clear Contents?
Delete removes cells and shifts the remaining cells to close the gap. Clear Contents erases what is inside the cells but leaves the cells in place. Use Delete when you want to remove cells entirely, and Clear Contents when you want to keep the cell structure but empty the data.
Can I delete non-adjacent cells at the same time?
Yes. Hold Ctrl and click each cell or range you want to delete. Once all the cells are selected, right-click and choose Delete. Excel removes all of them and asks how to shift the remaining cells. This works the same way as deleting adjacent cells.
What happens if I delete a cell that other formulas reference?
The cells that reference the deleted cell will display a #REF! error. You can undo the deletion to fix this, or you can edit those formulas to reference a different cell. Before deleting cells with formulas, check the Formulas tab and click Trace Dependents to see what depends on them.
How do I delete multiple rows at once?
Click the first row number on the left, then hold Shift and click the last row number you want to delete. All rows in between highlight. Right-click and choose Delete. Excel removes all selected rows and shifts everything below them upward.
Can I undo a delete after I close the file?
No. Undo only works while the file is open. Once you close and reopen it, the undo history is cleared. If you are deleting a large amount of data, save the file under a different name first so you have a backup.