Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Clearing and Deleting Cells.

Clearing and Deleting Cells

Written by Allen Wyatt (last updated April 2, 2022)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365


2

As you are editing your Excel workbooks, one of the most common actions to take is to clear or delete cells. Clearing cells means erasing everything within them, whereas deleting actually deletes the entire cell (or cells). This may sound like an odd distinction, but it is not really. If you compare the cells in your worksheet to paper cups, you can either remove a cup entirely (deleting the cup) or simply remove any contents from the cup (clearing the cup). When you delete a cell, the other cells around that cell move to fill where the cell used to be.

To clear the contents of cells you have selected, display the Home tab of the ribbon and click the Clear tool in the Editing group. When you do, you will see a submenu asking what you want to clear. Your choices allow you to clear any of the following:

  • All. Everything related to the cell except the cell itself.
  • Formats. Any formatting applied to the cell.
  • Contents. The information in the cell. Any formatting and comments remain in place.
  • Comments. The comments attached to the cell.
  • Hyperlinks. The hyperlinks in the cell.

You should make your selection based on what you want cleared and then choose the appropriate menu item. If you like, you can also use the Del key to clear a cell. Note that the Del key doesn't delete cells; it clears them. When you use this shortcut key, it is the same as choosing Contents from the Clear submenu.

Deleting is done by selecting the cells you want to delete and then choosing Delete from the Cells group. When you do this, Excel attempts to determine how the remaining cells in the worksheet should be moved to close up the hole that will be created by deleting the cells. If it can figure it out (for instance, if you are deleting an entire row or column), then the operation is completed. On the other hand, if it is not obvious how the remaining cells should be moved, Excel displays the Delete dialog box, which allows you to specify whether cells should be moved up or to the left.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (7128) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. You can find a version of this tip for the older menu interface of Excel here: Clearing and Deleting Cells.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Removing Return Addresses

Word allows you to print return addresses on your envelopes. You may run across a scenario where the return address is ...

Discover More

Converting Time Notation to Decimal Notation

Want to convert an elapsed time, such as 8:37, to a decimal time, such as 8.62? If you know how Excel stores times ...

Discover More

Keyboard Shortcut for Comments

Adding comments to the cells in your worksheets can help to document different aspects of that worksheet. Adding a ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More ExcelTips (ribbon)

When Clicking a Cell, Excel Jumps to a Different Cell

When you click on a cell, you expect the cell to be selected. What happens, though, if you are instead taken to an ...

Discover More

Getting Rid of Spaces in Cells

Importing data into Excel that was generated in other programs can have some interesting side effects. For instance, you ...

Discover More

Three-Dimensional Transpositions

Excel makes it easy to transpose your data so that rows become columns and columns rows. It doesn't have a built-in ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is nine minus 5?

2022-04-04 07:52:02

Mike D.

Often I leave blank rows and columns when setting up a worksheet and afterwards I remove them.
I use the 'CTRL -' and 'CTRL +' often when configuring and formatting my sheets. These can also be used to delete or add a selection of cells and Excel will ask how to shift the cells.
This saves a ton of time by not reaching for the mouse, "Viva Le Clavier!"


2022-04-02 10:31:56

J. Woolley

Similarly, in VBA it is important to choose the right Range method (ordered as the Tip): .Clear, .ClearFormats, .ClearContents, .ClearComments, .ClearNotes, .ClearHyperlinks, .Delete


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.