Go Back

Excel RIGHT Function

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:

=RIGHT(text, [num_chars])

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:

=RIGHT(C3, 5)

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: =RIGHT(C3, 5)
  • 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.

Did this post not answer your question? Get a solution from connecting with the expert.

Another blog reader asked this question today on Excelchat:
Here are some problems that our users have asked and received explanations on

time code calculator formula minor errors =TEXT(LEFT(D3,8)+LEFT(C3,8)+(RIGHT(C3,2)>RIGHT(D3,2))/86400,"hh:mm:ss")&TEXT(MOD(RIGHT(D3,2)+RIGHT(C3,2),25),":00")
Solved by E. J. in 13 mins
Anyone here that is an Excel Wiz? I need help with this string: =IF(LEFT(RIGHT(C2,5),1)=" ",RIGHT(C2,5),RIGHT(C2,7)RIGHT(C2,8)) I want it to return the numbers on the right, which can be five, seven, or eight digits long.
Solved by K. S. in 23 mins
N7-N9 is not right. I cannot get that Vlookup right
Solved by O. J. in 27 mins

Leave a Comment

avatar