Sub topic 9
Clearing contents, formats, and everything
This chapter assumes you can select cells and ranges, type and commit an entry, and edit a cell in the cell or in the formula bar. It covers what Delete actually removes, what the Clear menu offers, and the errors people make when they confuse clearing with deleting.
What a cell holds
A cell carries more than the value you see. It can hold several layers at once:
- Contents: the typed value or formula.
- Formats: number format, font, fill color, borders, alignment.
- Comments and notes: annotations attached to the cell.
- Hyperlinks: a link attached to the text.
- Data validation rules: restrictions on what can be entered.
Clearing means removing some or all of these layers while the cell itself stays in place. Every other cell keeps its address, and no formula elsewhere is shifted. This differs from deleting cells, which is covered later in this chapter.
The Delete key
Select a cell or range and press Delete. Excel removes the contents and leaves the formatting alone. The Backspace key behaves differently. On a single active cell, Backspace clears the contents and puts the cell into Edit mode. On a multi-cell selection, it clears only the active cell.
The consequence of Delete leaving formats in place is easy to miss. Suppose C2 is formatted as a percentage. You press Delete, then type 0.25. The cell shows 25%, because the percentage format survived. If you wanted a plain number, you cleared the wrong thing.
The same applies to data validation rules. Delete does not remove them, so the cell keeps restricting what can be typed.
The Clear menu
On the Home tab, in the Editing group, the Clear button (an eraser icon) opens a menu with these choices:
| Command | Removes | Keeps |
|---|---|---|
| Clear All | Contents, formats, notes, hyperlinks | Nothing in the cell |
| Clear Formats | Formatting only | Contents |
| Clear Contents | Contents only (same as Delete) | Formats |
| Clear Comments and Notes | Comments and notes | Contents, formats |
| Clear Hyperlinks | The link, and in some versions the link formatting | Text |
| Remove Hyperlinks | The link and the link formatting | Text |
The exact set of menu items varies by Excel version. Older versions may not show the hyperlink or comment options.
Clear Formats in practice
Clear Formats resets the cell to the General number format and the default font, fill, and borders. The contents remain, but their appearance can change sharply:
- A date formatted as
27-Nov-2026reverts to its serial number, such as46353. - A time reverts to a decimal fraction of a day.
- A percentage such as
25%shows0.25.
The stored value never changed. Only its display did. Chapter material on stored versus displayed values explains why: the format is a lens, and Clear Formats removes the lens.
Clear All
Clear All is the broadest option. It empties the cell and returns it to its default state. It is the right choice when you want to reuse a cell as if nobody had touched it, for example when preparing a template area.
Clearing versus deleting
These two actions have similar names and very different effects.
| Action | What happens | Effect on neighbors |
|---|---|---|
| Clear (Delete key, Clear menu) | Empties the cell's contents and/or formats | None |
| Delete cells (Ctrl+minus) | Removes the cells themselves and shifts others | Cells move up or left |
| Delete entire row or column | Removes the whole row or column | Everything after it shifts |
Deleting cells can break formulas. If a formula refers to a cell you delete, it shows #REF!. If you only wanted to blank out data, use Clear. If you need the table to close up, use Delete.
Clearing a range, a column, or the whole sheet
Selection decides the scope. Useful selection shortcuts before you clear:
- Click a column or row header to select the entire column or row.
- Press Ctrl+A to select the current data region. Press it again to select the whole sheet.
- Press Ctrl+Shift+End to extend the selection from the active cell to the last used cell.
Clearing a whole row with Clear All removes everything in that row, including any fill color you applied to the row. Clearing contents of a whole column is fast, because Excel only processes cells that hold something.
The used range problem
Excel tracks a "used range," the rectangle from A1 to the last cell that has ever held data or formatting. Clearing contents does not always shrink it. If you formatted cells far down the sheet and then pressed Delete, those formats still count as used. Symptoms include a large file size, slow scrolling, and Ctrl+End jumping to an empty-looking cell.
To fix this, select the unused rows and columns, then use Clear All, or delete the rows and columns entirely. Save the file, and Excel recalculates the used range.
Clearing cells that contain formulas
Delete removes a formula just as it removes a typed value. Cells that depended on the formula then see an empty cell, which counts as zero in arithmetic. Totals do not show an error. They quietly change.
Before clearing, check which cells depend on the one you are about to empty. On the Formulas tab, Trace Dependents draws arrows to them. This matters most in a model where an input cell feeds many results.
Worked example
You have a monthly sheet. Column B holds amounts, formatted as currency, and the cell B10 has a note and a yellow fill that marked a problem you resolved.
- Select B10.
- Press Delete. The amount disappears, but the yellow fill and the note remain.
- On the Home tab, choose Clear, then Clear Formats. The yellow fill and currency format go. The note remains.
- Choose Clear, then Clear Comments and Notes. The note goes.
- Type
1200and press Enter. The cell shows1200, plain, with no currency symbol.
You reached the state of a fresh cell in three steps. Choosing Clear All at step 2 would have done it in one.
Special cases
- Merged cells. Clearing a merged cell with Clear All removes the contents and the fill, but the cells stay merged. To unmerge, use Merge & Center on the Home tab as a toggle.
- Tables. Inside an Excel table, Delete clears cell contents as usual. Clear All inside a table can remove the table style's appearance for those cells only if you applied direct formatting. The table itself remains.
- Protected sheets. If a cell is locked and the sheet is protected, Delete and Clear do nothing and Excel shows a warning. Unprotect the sheet first.
- Array formulas. In older arrays (entered with Ctrl+Shift+Enter) you cannot clear part of the array. Select the whole array range, then clear it.
- Data validation. To remove a validation rule, use Data, Data Validation, then Clear All in the dialog. The Clear menu on the Home tab does not touch it, though Clear All on the Home tab does remove validation in current versions. Verify on your version by testing a cell.
Recovering from a mistake
A clear is an ordinary action. Press Ctrl+Z immediately to bring everything back, including formats. Undo works on all of the clear commands. Limits apply:
- Closing the workbook discards the undo history.
- Running a macro usually clears the undo stack.
- Undo only reaches back a limited number of actions, 100 by default.
If you saved over a mistake and cannot undo, the previous version may exist in the file's version history (File, Info, Version History) when the file is stored on OneDrive or SharePoint.
Common errors
- Delete and then typing, and getting odd display. The old format survived. Use Clear Formats or Clear All.
- Deleting cells when you meant to clear. Formulas return
#REF!and data shifts. Undo and use the Delete key. - Clearing a range that holds formulas feeding other cells. Totals change without an error. Check dependents first.
- Expecting the file to shrink. Clearing leaves the used range inflated. Delete unused rows and columns, then save.
- Clearing a protected cell. Nothing happens. Unprotect first.
Exercise
Cell D5 shows 15% and contains a typed value. You press Delete, then type 0.5 and press Enter. The cell shows 50%, but you wanted to see 0.5. What happened, and which command fixes it?
Show answer
Delete removed only the contents, so the percentage number format stayed and displays 0.5 as 50%. Select D5 and choose Home, Clear, Clear Formats (or Clear All before retyping). The cell then returns to the General format and shows 0.5.
Exercise
A formula in E10 sums B2:B9. You select B5 and press Ctrl+minus, choosing "Shift cells up". What changes in the sheet, and what should you have done if you only wanted to empty B5?
Show answer
The cell B5 is removed and the cells below move up, so the range shrinks to B2:B8 and the data after row 5 changes address. If a formula pointed directly at B5, it would show #REF!. To empty B5 without moving anything, select it and press Delete.