Effortlessly Clear Content in Google Sheets (in Just 2 Seconds)

Video clear content in google sheet

Google Sheets is one of the most popular spreadsheet tools for managing and analyzing data, as well as collaborating with your team members. Whether you’re working with a small or large dataset, keeping your Google Sheets organized and clean is essential. One way to achieve this is by clearing the content from cells that are no longer needed.

In this article, we’ll provide you with a step-by-step guide on how to clear content in Google Sheets. We’ll also cover how to clear multiple cells, how to clear cell content in Google Sheets without deleting formulas, and how to create the most elegant spreadsheet possible.

How to Clear Cells in Google Sheets

To clear the content of a single cell in Google Sheets, follow these steps:

  1. Click on the cell that contains the content you want to clear.

Click on spreadsheet cell in Google Sheets

  1. Press the “Backspace” or “Delete” key on your keyboard.

Delete cell in Google Sheets by hitting the delete button

How to Clear Multiple Cells in Google Sheets

If you need to clear multiple cells in Google Sheets, follow these steps:

  1. Select the range of cells that contain the content you want to clear.

Selection of multiple cells in Google Sheets

  1. Press the “Backspace” or “Delete” key on your keyboard. You can also click on “Edit > Delete > Values”.

Delete button in Google Sheets

How to Clear Cell Content in Google Sheets without Deleting Formulas

When you clear the content of cells, any formulas included in those cells will also be deleted. However, it is possible to clear formatting without deleting formulas in Google Sheets:

  1. Select the cells with the formatting you want to clear.

Deleting multiple cells in Google Sheets

  1. Go to the “Format” menu and choose “Clear formatting”. You can also press “CTRL +” on Windows or “CMD +” on macOS. Google Sheets will remove the formatting while leaving the formulas intact.

Clear formatting on multiple cells in Google Sheets

How to Use a Script to Clear Content in Google Sheets

You can use a custom script to clear the formatting and content of a single cell (or multiple cells), as well as customize the script to ignore formulas. The following script will clear the formatting and content while preserving the original formulas:

function clearContentAndFormatting() {
  var sheet = SpreadsheetApp.getActiveSheet();
  var range = sheet.getActiveRange();
  range.setValues(range.getFormulas());
  range.clearFormat();
}

function onOpen() {
  var ui = SpreadsheetApp.getUi();
  ui.createMenu('Clear')
    .addItem('Clear content and formatting', 'clearContentAndFormatting')
    .addToUi();
}

To use this Google Sheets cell clearing script:

  1. Go to the “Extensions” menu and choose “Apps Script”.

Apps Script option in Google Sheets

  1. Copy and paste the above script into the code.gs file.

Adding code.gs file. script in Google Sheets

  1. Name and save the script, close the script editor, and go back to your spreadsheet. You will now see a “Clear” menu next to “Help”.

Clear contents script in Google Docs

  1. Select the cells with the content and formatting you want to clear.

Selecting multiple cells for formatting in Google Sheets

  1. Choose “Clear” > “Clear content and formatting”.

Clear content and formatting option in Google Sheets

  1. As you can see below, the script clears the content and formatting of the selected cells while preserving the SUM formula.

How to clear multiple cells in Google Sheets

In conclusion, knowing how to clear content in Google Sheets is a simple process that can be done with just a few clicks. For learning many options from a seasoned professional, check out our Masterclass on Google Forms and Sheets.

Another great way to save time and effort? Instead of creating your spreadsheet from scratch, use our collection of pre-made Google Sheets templates for various projects. Use the promotional code SSP to save 50% on all templates.

Related Articles:

For more information, visit Crawlan.com.

Related posts