How to Remove Last Two Characters in Excel: A Step-by-Step Guide

Removing the last two characters in Excel might sound like a complicated task, but it’s actually a breeze once you know the ropes. By using a simple formula, you can swiftly trim off those pesky characters from your data. This guide will walk you through each step, breaking it down so that even an Excel newbie can follow along with ease.

How to Remove Last Two Characters in Excel

In this section, we’ll show you how to remove the last two characters from any cell in Excel using a straightforward formula. This can be particularly useful for cleaning up data, such as removing extra digits from product codes or trimming down text fields.

Step 1: Open Your Excel File

First, open the Excel file that contains the data you want to modify.

Make sure that your Excel file is saved and backed up before making any changes. This will ensure that you don’t lose any important data if something goes wrong.

Step 2: Select the Cell to Modify

Select the cell or cells from which you want to remove the last two characters.

You can select multiple cells by clicking and dragging your mouse, or you can select an entire column by clicking the column header.

Step 3: Enter the Formula

In a new cell, enter the formula =LEFT(A1, LEN(A1)-2), replacing A1 with the reference to the cell you selected.

The LEFT function extracts a given number of characters from the left side of a text string, while the LEN function calculates the total length of the string. Subtracting 2 from the length leaves you with the string minus its last two characters.

Step 4: Copy the Formula

Drag the fill handle (small square at the bottom-right corner of the cell) down to apply the formula to other cells.

Dragging the fill handle allows you to quickly apply the same formula to adjacent cells, making the process much faster if you have a long list of data.

Step 5: Replace Original Data

Copy the cells with the new data and paste them over the original cells, using ‘Paste Values’ to replace the original data.

Using ‘Paste Values’ ensures that you replace the old data with the new data without copying the formula itself.

Once you’ve completed these steps, the last two characters will be removed from the selected cells, leaving you with cleaner data.

Tips for Removing Last Two Characters in Excel

  • Backup Your Data: Always make a copy of your original data before making any changes.
  • Use Absolute References: If you’re working with a fixed range, use absolute references (e.g., $A$1) to avoid errors when copying the formula.
  • Check Your Formulas: Double-check your formulas for any typos or mistakes to ensure accurate results.
  • Use Conditional Formatting: Highlight cells that meet certain criteria to easily identify which cells need modification.
  • Learn Keyboard Shortcuts: Familiarize yourself with Excel keyboard shortcuts to speed up your workflow.

Frequently Asked Questions

What if the cells contain numbers?

The formula works the same for numbers and text. Excel treats numbers as text in this formula.

Can I use the formula for multiple columns?

Yes, you can drag the fill handle across multiple columns to apply the formula to each one.

What if my text is shorter than 2 characters?

The formula will return an empty cell if the text is shorter than 2 characters.

Is there a way to automate this process?

Yes, you can use Excel VBA (Visual Basic for Applications) to automate the process with a script.

Can this method be used in Google Sheets?

Absolutely! The same formula works in Google Sheets as well.

Summary

  1. Open your Excel file.
  2. Select the cell to modify.
  3. Enter the formula =LEFT(A1, LEN(A1)-2).
  4. Copy the formula to other cells.
  5. Replace original data with ‘Paste Values’.

Conclusion

Removing the last two characters in Excel is a simple yet powerful technique that can help you clean up your data quickly and efficiently. Whether you’re dealing with text strings, numbers, or a combination of both, this method provides a reliable solution.

If you’re frequently working with Excel, mastering such tricks can significantly enhance your productivity. Consider exploring other Excel functions like RIGHT, MID, and TRIM to further refine your data manipulation skills.

Take the time to practice these steps and soon you’ll be an Excel wizard, effortlessly handling any data challenge thrown your way. Happy Excel-ing!

Get Our Free Newsletter

How-to guides and tech deals

You may opt out at any time.
Read our Privacy Policy