Excel allows us to get a certain number of character from a string from the right side, by using the RIGHT function. This step by step tutorial will assist all levels of Excel users in getting characters from the right side.
Figure 1. The result of the RIGHT function
Syntax of the RIGHT Formula
The generic formula for the RIGHT function is:
The parameters of the RIGHT function are:
- text – a text from which we want to take a certain number of characters from the right side
- [num_chars] – a number of characters that we want to take out. This parameter is non-mandatory. If we omit it, the function will return the whole text.
Setting up Our Data for the RIGHT Function
In column B (“Text”), we have the list of texts. In column C (“5 Characters from the right”), we want to get the last 5 characters of every text.
Figure 2. Data that we will use in the RIGHT example
Get the Last 5 Characters from a Text
In our example, we want to get the last 5 characters from the text in B3 and put it into the cell C3.
The formula in the cell C3 is:
The parameter text is the cell B3, while the num_char is 5.
To apply the ISTEXT function, we need to follow these steps:
- Select cell C3 and click on it
- Insert the formula:
- Press enter
- Drag the formula down to the other cells in the column by clicking and dragging the little “+” icon at the bottom-right of the cell.
Figure 3. Using the RIGHT function to get the last 5 characters from a text
The value in B3 is “Jennifer”, so the last 5 characters in the cell C3 are “nifer”. As you can see in other examples, the RIGHT function returns numbers (C5) as well as spaces (C4).
Most of the time, the problem you will need to solve will be more complex than a simple application of a formula or function. If you want to save hours of research and frustration, try our live Excelchat service! Our Excel Experts are available 24/7 to answer any Excel question you may have. We guarantee a connection within 30 seconds and a customized solution within 20 minutes.