The fastest way to clear a cell
To clear a cell in Excel, click on it and press the Delete key. That removes the contents — the text, numbers, or formulas inside — but leaves the cell itself and any formatting (like background color or bold text) untouched.
If you want to clear multiple cells at once, click on the first one, then hold Shift and click on the last one to select the range. Press Delete, and all the contents vanish together. You can also click and drag to select a block of cells, then press Delete.
This is the method most people use because it is fast and reversible. If you delete something by mistake, press Ctrl+Z (or Cmd+Z on Mac) to undo it immediately.
Key Takeaways
- Press Delete after clicking a cell to remove its contents while keeping the cell format and appearance the same.
- Select multiple cells by clicking the first, holding Shift, and clicking the last, then press Delete to clear them all at once.
- Use the Clear All option in the Home menu if you want to remove both contents and formatting in one step.
- Undo any deletion immediately with Ctrl+Z (or Cmd+Z on Mac) if you clear something by mistake.
Clearing contents versus clearing formatting
Excel distinguishes between clearing what is inside a cell and clearing how it looks. When you press Delete, you remove only the contents — the data itself. The cell keeps its color, font size, borders, and any other visual styling you applied.
Sometimes you want to remove both. Click the cell or cells you want to clear, then go to the Home tab at the top. In the Editing group on the right side, click the dropdown arrow next to the eraser icon (labeled Clear). Choose "Clear All" to wipe out contents and formatting together. Choose "Clear Formats" if you only want to remove the styling and keep the data, or "Clear Contents" to do what Delete does.
This matters when you are reusing a spreadsheet. You might want to keep the colored headers and borders but remove last month's numbers, or you might want to start completely fresh.
Clearing cells without losing your undo history
If you clear a cell and then do other work, you can still undo the deletion — but only if you have not closed the file. Excel keeps a history of your recent changes, usually going back dozens of steps. Each time you press Ctrl+Z, it steps back one action.
Once you close the file without saving, the undo history is gone. If you save the file after clearing a cell, the deletion is permanent unless you revert to an earlier version. To be safe, use Save As to create a backup copy before you do large deletions, especially if you are not certain you will not need the data again.
If you realize you deleted something important after closing the file, check whether your computer or cloud storage (OneDrive, Google Drive, etc.) has a version history. Many services keep older versions for 30 days or more, and you can restore a previous copy of the file.
Clearing cells in a filtered or sorted spreadsheet
If your spreadsheet is filtered — meaning only certain rows are visible — be careful when you select and delete. When you press Delete on a filtered range, Excel clears only the visible cells, not the hidden ones. This is usually what you want, but it can be confusing if you forget the filter is on.
Before you clear a large range, check whether any filters are active. Look at the column headers: if they have a small funnel icon, a filter is on. Click the funnel icon to turn it off and see all rows, then select and delete. This way you know exactly what you are clearing.
The same caution applies to sorted data. Sorting does not hide rows the way filtering does, but if you select by row number rather than by the actual data, you might clear the wrong cells. Always double-check your selection before pressing Delete on a large range.
Using Find and Replace to clear specific cells
If you need to clear only cells that contain a certain word or pattern, use Find and Replace. Press Ctrl+H (or Cmd+H on Mac) to open the Find and Replace dialog. Type the text you want to find in the "Find what" field, leave the "Replace with" field empty, and click "Replace All". Excel removes every instance of that text.
This is useful when you have the same error or placeholder text scattered across many cells. For example, if you used "TBD" as a placeholder and now want to clear all of them at once, Find and Replace is faster than clicking each cell individually.
Be careful with this tool: if your search term appears in cells you want to keep, it will clear those too. Test with "Replace" (not "Replace All") on a few cells first to make sure you are targeting the right ones.
Clearing cells in Google Sheets
Google Sheets works almost the same way. Click a cell and press Delete to remove its contents. Select multiple cells and press Delete to clear them all. The Delete key in Google Sheets removes only the data, not the formatting.
To clear both contents and formatting in Google Sheets, right-click the cell or range and choose "Clear values" or "Clear all". You can also use the menu: click Edit, then "Clear" and choose what you want to remove.
Google Sheets also has a version history that lets you restore deleted data. Click File, then "Version history" to see a timeline of changes. You can click any earlier version to view it, and click "Restore this version" to go back to that point.
Frequently Asked Questions
Does pressing Delete remove the cell itself or just what is inside it?
Delete removes only the contents — the text, numbers, or formulas. The cell stays in place. If you want to remove the entire cell and shift the cells below it up, right-click and choose "Delete Cells" instead.
Can I clear a cell without removing its formatting?
Yes. Press Delete to remove the contents while keeping colors, fonts, and borders. If you want to remove formatting too, use the Clear menu in the Home tab and choose "Clear All".
What happens if I clear a cell that other cells reference?
Any cell with a formula that points to the cleared cell will show an error (usually #REF! or #VALUE!). Check your formulas before clearing cells that other parts of the spreadsheet depend on.
Can I undo a deletion after I close the file?
Not with Ctrl+Z. But if you saved the file after the deletion, check your cloud storage or computer backup for an older version. Many services keep version history for 30 days or longer.