How to Remove Data from a Cell in Excel

Cody Schneider9 min read

Working with data often means starting with a messy spreadsheet. If you need to clean up your cells by getting rid of specific text, unwanted characters, or extra spaces, you're in the right place. This guide walks you through several easy-to-use methods in Excel, from simple keyboard shortcuts to powerful formulas and built-in tools that do the hard work for you.

GraphedGraphed

Your AI Data Analyst to Create Live Dashboards

Connect your data sources and let AI build beautiful, real-time dashboards for you in seconds.

Watch Graphed demo video

The Easiest Method: Clearing an Entire Cell's Contents

Let's start with the most basic task: completely clearing the data from one or more cells. You have a few options here, each with a slightly different use case.

Using Your Keyboard

The quickest way to empty a cell is with your keyboard. This is perfect for one-off edits.

  • Select the cell(s) and press Delete: This is the most common method. It removes the cell's contents but leaves the formatting (like font color, cell background color, and borders) intact.
  • Select the cell and press Backspace: This also removes the content but puts the cell into edit mode, which can be useful if you immediately want to type something new.

Using the 'Clear Contents' Command

If you prefer using your mouse or need more control over what you're clearing, the "Clear" command in the Home ribbon is your friend. This option is helpful because it makes it clear exactly what you're removing.

Here's how to use it:

  1. Select the single cell or range of cells you want to empty.
  2. Navigate to the Home tab on the Excel ribbon.
  3. Find the Editing group on the far right.
  4. Click the Clear button (it looks like an eraser).
  5. A dropdown menu will appear. Select Clear Contents.

Choosing Clear Contents, like the Delete key, removes only the data and formulas. If you wanted to remove formatting as well, you could select Clear Formats or Clear All from the same menu.

A Quick Warning: Be careful not to confuse "deleting contents" with "deleting cells." If you right-click and select Delete..., Excel will ask if you want to shift the remaining cells up or left. This action removes the entire cell from the worksheet, which will change the layout of your sheet. Stick to the methods above if you only want to remove the data inside the cell.

Free PDF Guide

AI for Data Analysis Crash Course

Learn how to get AI to do data analysis for you — the best tools, prompts, and workflows to go from raw data to insights without writing a single line of code.

Removing Specific Text with Find and Replace

When you need to remove the same word, phrase, or character from many cells at once, the Find and Replace tool is incredibly efficient. Imagine you have a list of product SKUs, and all of them have an unnecessary "-OLD" suffix you need to remove.

Here's how to do it step-by-step:

  1. Select the range of cells where you want to remove the data. If you don't select a range, Excel will search the entire worksheet.
  2. Press Ctrl + H (on Windows) or Command + H (on Mac) to open the Find and Replace dialog box with the "Replace" tab active. Alternatively, you can find it under Home > Editing > Find & Select > Replace....
  3. In the "Find what:" field, type the text or characters you want to remove. For our example, you would type -OLD.
  4. Leave the "Replace with:" field completely empty. This tells Excel to replace the text you’re searching for with nothing, effectively deleting it.
  5. Click Replace All. Excel will go through your selection and remove every instance of the specified text. A dialog box will pop up telling you how many replacements were made.

This method is fantastic for:

  • Removing specific words: Like getting rid of "Inc." or "LLC" from a list of company names.
  • Deleting unwanted characters: Such as removing commas or dollar signs from numbers so you can perform calculations on them.
  • Fixing extra spaces: You can search for a double space (" ") and replace it with a single space (" "). You might have to click "Replace All" a few times to catch instances with three or more spaces.

Using Formulas to Remove Data from Cells

Sometimes, your data removal needs are more complex than simply finding and replacing a consistent piece of text. You might need to remove a certain number of characters from the start or end of a cell. This is where formulas shine, as they offer a dynamic and non-destructive way to clean your data.

The standard approach here is to create a new column next to your original data, enter a formula to generate the cleaned-up text, and then copy the results. This preserves your original data until you're sure the new version is correct.

Removing Characters from the Beginning of a Cell

Let's say you have a list of order numbers prefixed with "ORD-", and you only want the number (e.g., "ORD-12345" should become "12345"). You can combine the RIGHT, LEN, and SEARCH functions.

A simpler case first: If the prefix is always the same length (e.g., 4 characters for "ORD-"), you can use RIGHT and LEN.

=RIGHT(A2, LEN(A2) - 4)

  • LEN(A2) calculates the total length of the text in cell A2.
  • LEN(A2) - 4 subtracts the length of the prefix you want to remove.
  • RIGHT(A2, ...) extracts that many characters from the right side of the text.

Removing Characters from the End of a Cell

This works the same way but uses the LEFT function. Imagine you have a column with weights and an unnecessary " kg" at the end of each entry.

=LEFT(A2, LEN(A2) - 3)

This formula calculates the total length of the cell's content and subtracts 3 (for " kg") to extract everything but those last three characters from the left.

GraphedGraphed

Your AI Data Analyst to Create Live Dashboards

Connect your data sources and let AI build beautiful, real-time dashboards for you in seconds.

Watch Graphed demo video

Removing Specific Text Anywhere with the SUBSTITUTE Function

The SUBSTITUTE function is like a formula-based version of Find and Replace. It's incredibly powerful because you can nest it within other formulas. The syntax is SUBSTITUTE(text, old_text, new_text, [instance_num]).

To remove text, you provide an empty string "" for the new_text argument.

=SUBSTITUTE(A2, "-remove-", "")

If cell A2 contained "product-remove-name", this formula would return "productname". Unlike Find and Replace, this creates the output in a new cell, leaving your original data untouched.

Removing Extra Spaces and Non-Printable Characters

Often, data copied from other systems comes with hidden baggage like leading spaces, trailing spaces, or weird, non-printable characters that can mess up your lookups and formulas.

  • The TRIM Function: This is a data-cleaning lifesaver. It removes all leading and trailing spaces and reduces multiple spaces between words down to a single space.

=TRIM(A2)

  • The CLEAN Function: Sometimes cells contain characters that you can't even see - line breaks or other control characters from an export. The CLEAN function removes most common non-printable characters.

=CLEAN(A2)

For a truly robust cleanup, you can even nest these functions together:

=TRIM(CLEAN(A2))

This ensures that both non-printable characters and extra spaces are removed.

Advanced Tools for Data Removal

When you need even more power and flexibility, Excel has some more advanced tools built-in that feel almost like magic.

Using Flash Fill

Flash Fill is one of the smartest features in Excel. It recognizes patterns in your data entry and automates the rest of the work for you. It's perfect for complex data removal where the pattern is clear but a formula would be too complicated to write.

Imagine a column with full names and email addresses mashed together, like "John Doe (john.doe@email.com)". You just want the names. Here's how you'd use Flash Fill:

  1. In the column directly next to your messy data (e.g., column B), manually type the desired result for the first row. In this case, you'd type "John Doe" in cell B2.
  2. Move down to the next cell (B3) and start typing the correct result for that row.
  3. As you type, Excel might detect the pattern and show a grayed-out preview of what it thinks you want to do for the rest of an entire column.
  4. If the preview is correct, just hit Enter, and Excel will instantly fill the rest of the column for you.

If the preview doesn't appear automatically, you can trigger it manually by going to the Data tab and clicking Flash Fill (or using the shortcut Ctrl + E).

Free PDF Guide

AI for Data Analysis Crash Course

Learn how to get AI to do data analysis for you — the best tools, prompts, and workflows to go from raw data to insights without writing a single line of code.

Using Power Query (Get & Transform Data)

For the most repeatable and robust data cleaning tasks, Power Query is an industry-standard data tool in Excel. It lets you create a cleaning workflow that can be refreshed with a single click whenever new data is added. You don't perform the edits on your original sheet, instead, you build a query that pulls in and transforms the data.

Here's a very simple example of using Power Query to remove specific text:

  1. Select your data range and go to the Data tab.
  2. In the "Get & Transform Data" group, click From Table/Range.
  3. A new Power Query Editor window will open, showing your data.
  4. Right-click the header of the column you want to clean.
  5. Go to Replace Values.
  6. In the dialog box, type the text to remove in "Value to Find" and leave "Replace With" blank - just like with Find and Replace. Click OK.
  7. On the right side of the window, you'll see a list of "Applied Steps." Your replace action has been recorded there. You can add more steps, like trimming spaces or splitting columns.
  8. When you're finished, click Close & Load in the top-left corner. Power Query will load the cleaned data into a new worksheet in a formatted table.

The best part about Power Query is that if your source data changes, you just have to go to the output table, right-click, and select Refresh to re-run all your cleaning steps automatically.

Final Thoughts

As you can see, Excel provides a full toolkit for removing unwanted data, from the simplicity of the Delete key to the sophisticated automation of Power Query. Choosing the right method depends on whether you have a simple, one-time task or a complex, repeatable data cleaning process.

While mastering these techniques is incredibly useful, we know that spending hours in spreadsheets cleaning data isn’t anyone’s favorite task. That’s why we built Graphed. We automate the entire process by connecting directly to your apps (like Google Analytics, Shopify, Facebook Ads, and more), so your data is always clean, current, and ready for analysis. Instead of wrestling with formulas, you can just ask questions in plain English and get instant dashboards and insights, saving you from the manual work of exporting and cleaning CSVs forever.

Related Articles