search
HomeTopicsexcelHow to remove text or character from cell in Excel

This tutorial demonstrates efficient methods for removing text portions from Excel cells using formulas and built-in tools. Need to delete specific text across multiple cells? Remove leading/trailing characters? Or perhaps just a particular character instance? This guide offers multiple solutions.

  • Deleting specific characters from multiple cells.
  • Removing a character from a string.
  • Removing multiple characters simultaneously.
  • Removing Text String Portions:
    • Deleting text from multiple cells using Find & Replace.
    • Removing text from a cell using a formula.
  • Removing the Nth Occurrence of a Specific Character.
  • Deleting the First Character from a String.
  • Removing the Last Character from a String.
  • Trimming Leading and Trailing Spaces.
  • Specialized Tools for Character/Text Removal in Excel.

Removing Specific Characters in Excel

Two simple methods exist for removing specific characters: the Find & Replace tool and formulas.

Removing Characters from Multiple Cells with Find and Replace

Since character removal is essentially replacement with nothing, Excel's Find and Replace is ideal.

  1. Select the cells needing character removal.
  2. Press Ctrl H to open the Find and Replace dialog.
  3. Enter the character in the "Find what" field.
  4. Leave the "Replace with" field blank.
  5. Click "Replace All."

The example below shows removing "#" from cells A2 to A6.

How to remove text or character from cell in Excel

The result shows the "#" removed, with a confirmation dialog indicating the number of replacements.

How to remove text or character from cell in Excel

Tips:

  • This directly modifies source data. Use Ctrl Z to undo if needed.
  • For case-sensitive removal of alphabetic characters, click "Options," check "Match case."

Removing a Character from a String Using a Formula

The SUBSTITUTE formula eliminates characters from any string position:

SUBSTITUTE(string, char, "")

For example: =SUBSTITUTE(A2, "#", "") replaces all "#" in A2 with "".

Apply this to B2 and copy down to B6 for the results:

How to remove text or character from cell in Excel

Note: SUBSTITUTE returns text, even if numeric. Wrap in VALUE or use a mathematical operation (e.g., *1) for numeric results:

=VALUE(SUBSTITUTE(A2, "#", "")) or =SUBSTITUTE(A2, "#", "")*1

How to remove text or character from cell in Excel

Removing Multiple Characters at Once

Nest SUBSTITUTE functions to remove multiple characters. To remove "#", "/", and "\":

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2, "#",""), "/", ""), "\", "")

How to remove text or character from cell in Excel

Tips:

  • SUBSTITUTE is case-sensitive.
  • For value-only results, use "Paste Special - Values."
  • For many characters, a custom LAMBDA function (RemoveChars) is more efficient.

Removing Specific Text from Excel Cells

The methods for single characters also apply to text strings.

Deleting Text from Multiple Cells

Use Ctrl H, enter the unwanted text in "Find what," leave "Replace with" blank, and click "Replace All."

How to remove text or character from cell in Excel

The result shows all instances replaced.

How to remove text or character from cell in Excel

Removing Specific Text Using a Formula

Use SUBSTITUTE in its basic form:

SUBSTITUTE(cell, text, "")

For example, to remove "mailto:" from A2: =SUBSTITUTE(A2, "mailto:", "")

How to remove text or character from cell in Excel

Removing the Nth Instance of a Specific Character

Use the optional instance_num argument in SUBSTITUTE:

SUBSTITUTE(string, char, "", instance_num)

To remove the first "/" in A2: =SUBSTITUTE(A2, "/", "", 1)

To remove the second: =SUBSTITUTE(A2, "/", "", 2)

How to remove text or character from cell in Excel

(The remaining sections on removing first/last characters, spaces, and using Flash Fill and specialized tools follow a similar structure of concise explanation and relevant images, maintaining the original content's flow and information while using slightly different wording and sentence structures for paraphrasing.)

The above is the detailed content of How to remove text or character from cell in Excel. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools