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.
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.
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)) |
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
Kutools for Excel boasts over 300 features, ensuring that what you need is just a click away...
Supports Office/Excel 2007-2021 & newer, including 365 | Available in 44 languages | Full-featured 30-day free trial.

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.
