Catalog

An Easy Way to Remove Characters in Excel (Step-by-Step)

November 9, 2023 2.1K views

Removing characters in Excel is a fundamental data cleaning task that ensures accuracy and consistency in spreadsheets. However, there are many ways to remove characters in Excel, and not all methods are created equal. This preface will provide a comprehensive guide on how to remove characters in Excel correctly and effectively.

Functions for Removing Characters in Excel

  • Utilizing RIGHT Function to Remove Characters from the Beginning

The LEFT function extracts a specified number of characters from the beginning of a text string. Syntax:

=RIGHT(text, num_chars)

text: The text string from which characters should be extracted.

num_chars: The number of characters to pull from the left.

Example:

Assuming cell A1 contains the text "Hello, World!", and you want to remove the first 7 characters:

=RIGHT(A1,7)

  • Using LEFT Function to Remove Characters from the End

Using the RIGHT Function to Remove Characters from the End:

The RIGHT function extracts a specified number of characters from the end of a text string. Syntax:

=LEFT(text, num_chars)

text: The text string from which characters should be extracted.

num_chars: The number of characters to pull from the right.

Example:

Assuming cell A1 contains the text "Hello, World!", and you want to remove the last 7 characters:

=LEFT(A1,7)

  • Removing Characters from the Middle with MID Function

Removing Characters from the Middle with the MID Function:

The MID function extracts characters from the middle of a text string. Syntax:

=MID(text, start_num, num_chars)

text: The text string from which characters should be extracted.

start_num: The index of the first character to be extracted.

The number of characters to extract is specified by num_chars.

Example:

Assuming cell A1 contains the text "Hello, World!", and you want to remove characters from position 8 to 12:

=MID(A1, 1, 7) & MID(A1, 13, LEN(A1))

Ways to Remove Characters in Excel

https://www.ablebits.com/office-addins-blog/remove-first-last-characters-excel/

Remove first character in Excel

You may use the REPLACE function or a combination of the RIGHT and LEN functions to remove the first character from a string.

  • Using REPLACE function

You can achieve this using the REPLACE function with the following formula:

=REPLACE(A1, 1, 1, "")

Here, we simply take 1 character from the first position and replace it with an empty string ("").

 Replace function

  • Using a combination of RIGHT and LEN functions

Alternatively, you can remove the first character using a combination of RIGHT and LEN functions:

=RIGHT(string, LEN(string) - 1)

In this formula, we use the LEN function to calculate the total length of the string and subtract 1 character from it. The result is then passed to the RIGHT function, which extracts that many characters from the end of the string.

For example, to remove the first character from cell A1, the formulas would be:

first character

Trustpilotstars4.8
Recommend WPS Spreadsheet
  • Use Word, Excel, and PPT for FREE, No Ads.

  • Same Excel Formula as Microsoft. Perfectly compatible with MS format.

  • Microsoft-like interface. Easy to learn. 100% Compatibility.

  • Boost your professional productivity by 10x with WPS's abundant free Excel templates.

5,820,008 User
avator
Algirdas Jasaitis
logo

Remove last character in Excel

  • Using LEFT function

The generic formula is:

LEFT(string, LEN(string) - 1)

In this formula, you subtract 1 from the total string length and pass the difference to the LEFT function, which extracts that many characters from the beginning of the string.

For instance, to strip the last character from cell A1, the formula in cell C1 would be:

Free Office Suite for Word, Excel, PowerPoint ——WPS Office

WPS Office is a comprehensive office suite that provides users with a modern and powerful set of tools for creating, editing, and managing documents, spreadsheets, presentations and PDFs. As a versatile alternative to traditional office software, WPS Office offers a range of features designed to enhance productivity and streamline tasks.

Pros

  • Cross-Platform: Available on Windows, macOS, Linux, Android, and iOS, ensuring easy access and synchronization across devices.

  • User-Friendly: Intuitive interface suited for beginners and experienced users alike.

  • Templates: Abundant collection of templates for documents, spreadsheets, and presentations, streamlining content creation.

  • Collaboration: Real-time collaboration for simultaneous work and seamless feedback exchange.

  • Cloud Integration: Store and access files securely from anywhere through integrated cloud storage services.

How to Remove Characters or Text in WPS

Step 1 Open the spreadsheet that contains the text you want to remove.

Step 2 Select the text you want to remove.

Step 3 Press Ctrl+H to open the Find and Replace dialog box.

Ctrl + H

Step 4 In the Find what box, type the text you want to remove.

Text you want remove

Step 5 Leave the Replace with box blank.

Step 6 Click Replace All.

Result

FAQs

1. How do I remove text from a cell in Excel but keep the numbers?

Navigate to the cells you want to address, access the "Data" tab, and select "Text to Columns." Opt for the "Delimited" choice, indicating the character that distinguishes numbers from text. Finally, choose "Text" as the column data format to complete the process and efficiently obtain your desired numerical values.

2. How to remove spaces before text in Excel?

If you want to remove leading spaces from text in an Excel cell, follow these steps: select the target cell (like A2), enter =TRIM(A2) in the formula bar, and press Enter. This action will result in the removal of any preceding spaces, leaving you with the text devoid of unnecessary gaps before it.

Conclusion

In this guide, we've explored easy ways to tidy up data in Excel, such as using LEFT, RIGHT, and MID functions, along with Text to Columns. And when it comes to simplifying your work, remember the standout: WPS Office.

This modern office suite makes your tasks easier with its user-friendly design, works on different devices, lets you collaborate in real-time, and keeps your files secure in the cloud. By combining these data-cleaning methods and the power of WPS Office, you're all set to make your work accurate and efficient.


15 years of office industry experience, tech lover and copywriter. Follow me for product reviews, comparisons, and recommendations for new apps and software.