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.
|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.
Press Enter keys and drag fill handle from cell D3 to D5 for applying this formula.
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
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.
- 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.