ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Comparisons
  3. Clear Contents vs Delete in Excel: What Each One Removes

Clear Contents vs Delete in Excel: What Each One Removes

By ExcelReady Team·Updated November 3, 2026·6 min read

The short answer

Clear Contents empties the selected cells but leaves them in place, with their formatting, so nothing moves. Delete removes the cells themselves, and the cells below or to the right shift in to fill the gap. Pressing the Delete key does Clear Contents. To delete cells, use Ctrl+- (Mac: ⌘-) or Home > Delete.

Key takeaways

  • The Delete key runs Clear Contents: values and formulas go, the cells and their formatting stay.
  • The Delete command (Ctrl+- or ⌘-) removes the cells, and the rest of the sheet shifts up or left.
  • Formulas that point at a cleared cell see it as empty. Formulas that point at a deleted cell show #REF!.
  • Use Clear Contents to reuse a layout. Use Delete to remove rows or columns that shouldn't be there.
On this page+
  1. Clear Contents vs Delete at a glance
  2. What Clear Contents does
  3. What Delete does
  4. The same sheet, cleared vs deleted
  5. When to use Clear Contents
  6. When to use Delete
  7. Common mistakes
  8. Our recommendation
  9. Practise it

Clear contents vs delete comes down to one question: should the cells stay or go? Clear Contents empties cells and leaves them in place, so the layout doesn't move. Delete removes the cells, and everything below or to the right shifts in. This guide is for beginners who have pressed Delete and been surprised, and for anyone who has seen #REF! appear after tidying a sheet.

Clear Contents vs Delete at a glance#

The confusing part is the name: the Delete key on your keyboard does Clear Contents, not Delete.

FeatureClear ContentsDelete
What it removesValues and formulas in the cellsThe cells themselves
Do other cells move?NoYes, up or left (or whole rows or columns go)
FormattingKeptGoes with the cells
Comments, notes and data validationKeptGo with the cells
Formulas that point at the cellsSee an empty cell (0 in sums)Show #REF! if they pointed at a removed cell
Ranges like SUM(B2:B8)Stay the same sizeShrink to match
KeyboardDelete key (Mac: delete)Ctrl+- (Mac: ⌘-)
RibbonHome > Clear > Clear ContentsHome > Delete
UndoCtrl+Z (Mac: ⌘Z)Ctrl+Z (Mac: ⌘Z)

What Clear Contents does#

Clear Contents removes what is typed in the cells, whether a value or a formula, and nothing else. To use it:

  1. Select the cells.
  2. Press the Delete key (on a Mac, delete). You can also right-click and choose Clear Contents, or go to Home > Clear > Clear Contents.

The cells stay where they are. Their formatting stays too, so a cell formatted as a date will show the next number you type as a date. That's why the guide to clearing formatting recommends Clear All when you want a truly empty cell.

The Clear menu has several options:

  • Clear All removes contents, formatting and comments or notes.
  • Clear Formats removes formatting only.
  • Clear Contents removes values and formulas only.
  • Clear Comments and Notes removes only those.

Formulas that refer to a cleared cell keep working. They treat it as empty: =B3*2 returns 0, and AVERAGE skips it. The guide to editing cells and undo covers the Delete key along with F2, Esc and Ctrl+Z.

What Delete does#

Delete removes cells from the grid, and Excel closes the gap by moving other cells. To use it:

  1. Select the cells, or whole rows or columns.
  2. Press Ctrl+- (Mac: ⌘-), or right-click and choose Delete, or go to Home > Delete.
  3. If you selected cells rather than whole rows, Excel asks how to close the gap: Shift cells left, Shift cells up, Entire row or Entire column.

If you select whole rows first (click the row numbers), Excel deletes them straight away. The guide to inserting and deleting rows and columns covers every shortcut.

When cells move, Excel updates formulas to follow the data. =SUM(B2:B8) becomes =SUM(B2:B6) if you delete two rows inside it. But a formula that pointed directly at a removed cell has nothing to follow, so it shows #REF!. The guide to the #REF! error explains how to fix it.

The same sheet, cleared vs deleted#

Here is a small list of test scores, with three summary formulas underneath:

AB
1NameScore
2Ana72
3Ben80
4Chen64
5Dara88
6Eli75
7Fay91
8Gus70
9
10Average=AVERAGE(B2:B8)
11Count=COUNT(B2:B8)
12Ben's score=B3

At the start, the average is 77.14 (540 ÷ 7), the count is 7, and =B3 shows Ben's 80.

Option 1: Clear Contents on B3 and B6#

Select B3, hold Ctrl (Mac: ⌘), click B6, and press Delete. Ben and Eli keep their rows, but their scores are gone.

  • =AVERAGE(B2:B8) returns 77 (385 ÷ 5). AVERAGE ignores empty cells.
  • =COUNT(B2:B8) returns 5.
  • =B3 returns 0, because B3 is now empty.
  • =COUNTBLANK(B2:B8) returns 2: the two cleared cells.

Option 2: Delete rows 3 and 6#

Select row 3, hold Ctrl (Mac: ⌘), click row 6, and press Ctrl+- (Mac: ⌘-). Ben and Eli are removed completely, and the rows below move up, including the three summary rows (now rows 8 to 10).

  • The average formula becomes =AVERAGE(B2:B6) and still returns 77.
  • The count formula becomes =COUNT(B2:B6) and returns 5.
  • Ben's score formula becomes =#REF!, because the cell it pointed at no longer exists.

Same averages, very different sheets. Clearing kept the names and left gaps. Deleting removed the people and broke the one formula that pointed straight at a removed cell.

When to use Clear Contents#

Use Clear Contents when the structure should stay and only the data should go:

  • Reusing a template. Clear last month's numbers and keep the headers, formatting and formulas around them.
  • Removing a wrong value. A typo in one cell doesn't mean the row should disappear.
  • Keeping other formulas safe. Nothing moves, so references elsewhere still point at the right cells.
  • Leaving room for later. A blank cell can be filled in when the data arrives.

To clear typed values but keep formulas, select the range, press F5 (or Ctrl+G; Mac: Control+G), click Special, choose Constants and press Delete.

When to use Delete#

Use Delete when the cells themselves shouldn't be there:

  • Removing records. A cancelled order or a duplicate customer should leave the list, not leave an empty row.
  • Removing blank rows that break sorting, filters and pivot tables. The guide on deleting blank rows safely shows a filter-based method.
  • Removing a column you no longer need, such as an old helper column.
  • Tidying a list for a pivot table or for sharing, where gaps would look like missing data.

Before you delete, check whether any formula points straight at those cells. If one does, it will show #REF!.

Common mistakes#

These slips cause most of the surprises:

  1. Expecting the Delete key to remove rows. It only clears them. The empty row stays and can break a sort or a pivot table.
  2. Deleting cells instead of whole rows. Choosing Shift cells up on one column moves that column's data out of line with the others, so names and scores no longer match. When in doubt, choose Entire row.
  3. Deleting cells that formulas use directly. The result is #REF!. Undo straight away with Ctrl+Z (Mac: ⌘Z).
  4. Clearing contents and leaving the format. A cleared cell may still be formatted as currency or a date, so new entries look wrong. Use Clear All for a fresh cell.
  5. Clearing formulas by accident. The Delete key removes formulas as well as values. Use Go To Special > Constants if you only want to clear typed numbers.

Our recommendation#

Use Clear Contents (the Delete key) as your everyday way to remove data, because it never moves anything and never creates #REF! errors. Use Delete (Ctrl+- or ⌘-) on purpose, when a row, column or cell genuinely shouldn't exist, and select whole rows or columns so your data stays lined up.

In short: clear to empty, delete to remove. And if either one goes wrong, Ctrl+Z (⌘Z) brings it back.

Practise it#

Try the COUNTBLANK exercise on this page to see how cleared cells stay in the range. Then practise editing, clearing and undoing in a live spreadsheet: you'll clear cells, fix mistakes and undo them, with each step checked instantly. If you're new to the grid, start with the cells, rows and columns lesson.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

Two scores were cleared with the Delete key, so their cells are empty but still there. Click D2 and use COUNTBLANK on B2:B8 to count the empty scores.

fx
ABCDE
1
Name
Score
2
Ana
72
Empty scores
3
Ben
4
Chen
64
5
Dara
88
6
Eli
7
Fay
91
8
Gus
70
9
10
11

Tip: COUNTBLANK needs only one thing: the range to check.

Practise this in a lesson

LessonFreeEdit, clear and undoReplace a cell, fix part of a cell without retyping it, cancel an edit, clear cells and undo mistakes.LessonFreeCells, rows and columnsLearn how every cell gets its name, then find cells, type into them and select ranges.

Frequently asked questions

Does the Delete key delete cells in Excel?

+

No. The Delete key clears the contents of the selected cells. The cells stay where they are, with their formatting. To remove cells, use Ctrl+- on Windows or ⌘- on a Mac.

What is the difference between Clear All and Clear Contents?

+

Clear Contents removes values and formulas only. Clear All also removes formatting and comments or notes, so the cell goes back to its default state.

Why do I get #REF! after deleting a row?

+

A formula pointed at a cell in the row you deleted. That cell no longer exists, so Excel replaces the reference with #REF!. Undo with Ctrl+Z (Mac: ⌘Z), then clear the contents instead or fix the formula.

How do I clear contents but keep formulas?

+

Select the range, press F5 (or Ctrl+G), click Special, choose Constants, and press Delete. Only typed values are cleared; formulas stay.

Can I undo Clear Contents or Delete?

+

Yes. Both can be undone with Ctrl+Z on Windows or ⌘Z on a Mac, as long as you haven't closed the file.

Sources

  • Insert or delete rows and columns - Microsoft Support
  • Keyboard shortcuts in Excel - Microsoft Support
  • COUNTBLANK function - Microsoft Support

Written and checked by the ExcelReady Team. First published November 3, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. Clear Contents vs Delete at a glance
  2. What Clear Contents does
  3. What Delete does
  4. The same sheet, cleared vs deleted
  5. When to use Clear Contents
  6. When to use Delete
  7. Common mistakes
  8. Our recommendation
  9. Practise it

Keep reading

Basics· 4 min read

Edit, Clear, Undo and Redo in Excel Without the Mouse

The edit cell Excel shortcut is F2 on Windows. On a Mac, press Control+U or fn+F2. It opens the cell with the cursor at the end, so you can fix part of it without retyping. Esc cancels an edit, Delete clears the selected cells, Ctrl+Z (⌘Z) undoes your last change and Ctrl+Y (⌘Y) redoes it.

Basics· 6 min read

Insert and Delete Rows and Columns Fast in Excel

The fastest insert row shortcut in Excel is to select the row with Shift+Space, then press Ctrl+Shift+= (the plus key). To delete it, select the row and press Ctrl+- (minus). On a Mac, use Control+Shift+= to insert and ⌘- to delete. Select several rows first to insert or delete that many at once.

Basics· 5 min read

How to Clear Formatting in Excel and Keep Your Data

To clear formatting in Excel, select the cells and go to Home > Clear (the eraser icon) > Clear Formats. On Windows you can press Alt, then H, E, F. Your values and formulas stay, but fonts, colours, borders and number formats go back to the default, so dates show as numbers until you format them again.

More on comparisons

  • CONCATENATE vs CONCAT vs TEXTJOIN vs &
  • COUNT vs COUNTA vs COUNTBLANK
  • COUNT vs COUNTIF in Excel
  • COUNTIF vs COUNTIFS: What's the Difference?
  • COUNTIFS vs SUMPRODUCT for Counting With Conditions
  • CSV vs CSV UTF-8 in Excel: Which Format to Save
All comparisons articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free