Log in  \/ 
x
or
x
x
Register  \/ 
x

or

Excel Formula:Remove from right of text

Generally, you remove characters from left of text, but sometimes, you may need to remove from right, how can you deal with this problem? Actually, combining the LEFT and LEN functions to create a formula will do you a favor.
doc find position of nth occurrence of a character 1

Generic formula:

LEFT(text,LEN(text)-n)

Arguments

Filename: the text string or cell you want to remove from right.
N: the number of characters you want to remove from right of the text.

How this formula work

Here are two columns, B3:C5, one contains the texts, and the other one contains the numbers of characters you need to remove from right of text, please use below formula in cell D3.

=LEFT(B3,LEN(B3)-C3)

Press Enter keys and drag fill handle from cell D3 to D5 for applying this formula.
doc remove from right 2

Explanation

LEN function: the LEN function gets the number of characters of the text. Here it returns the length of cell B3.

LEFT function: the LEFT function extracts a given number of characters from left side of a text. Here the formula calculation steps will be shown as
=LEFT(B3,8-5)
=LEFT(B3,3)

Remark

If the argument text is a numeric value, you can add the VALUE function in the front of the formula to change the result to number.

VALUE (LEFT(text,LEN(text)-n))

doc remove from right 3

Sample File

doc sampleClick to download sample file


Relative Formulas

  • Find most requenst text with criteria
    In some cases, you may want to find the text which appears most frequently based on a criterion in Excel. This tutorial introduces an array formula to handle this job and gives the explanation about the arguments of this formula.
  • Combine cells with commas
    Here this tutorial provides some formulas to join multiple cells into one cell with comma as separator as below screenshot shown, and also explains how the formulas work in Excel.
  • Make text same length
    If there is a list of texts with different lengths, for looking nicer, you can make these text with same length by adding trailing characters as below screenshot shown. Here it provides a formula which combines the LEN and REPT functions to handle it in Excel.
  • Check if cell contains number
    Sometimes, you may want to check if a cell contains numeric characters. This tutorial provides a formula which will return TRUE if the cell contains number, FALSE if cell does not contain number.

The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

Would you like to complete your daily work quickly and perfectly? Kutools for Excel brings 300 powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) and save 80% time for you.

  • Designed for 1500 work scenarios, helps you solve 80% Excel problems.
  • Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands.
  • Become an Excel expert in 3 minutes. No longer need to remember any painful formulas and VBA codes.
  • 30-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years.
Ribbon of Excel (with Kutools for Excel installed)

Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Firefox, And New Internet Explorer.
Screen Shot of Excel (with Office Tab installed)
Say something here...
symbols left.
You are guest
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.