RIGHT Function in Excel
In this blog post we will learn about RIGHT function in excel. With the help of this function we can extract number of characters from the end the of the text string.
Where to find RIGHT function on Excel Screen:
RIGHT function can be found under “Text Function” category under “Formula Tab” as shown in below image:
Once we click on “Text” category, we can see list of various Text Functions available in excel. RIGHT function is highlighted in red in below image.
Once we click on RIGHT option as highlighted above, we will get the function argument dialog box as shown in below image:
Syntax of RIGHT Function:
The Syntax of RIGHT function is as below:
=RIGHT(text,[num_chars])
Arguments of RIGHT Function:
To use the RIGHT function we have to use 02 arguments:
Text: This is mandatory argument. We have to select the text from which we have to extract the number of characters from the end of the text string.
Num_chars: In this argument, we have to specify the number of characters which we want to extract from end of selected text string.
Example of RIGHT Function:
Let’s learn about using this function with the help of simple example. We have listed Employee ID in column A as shown in below image.
Now, we want to extract last 4 digits from each Employee ID. To do this we can use RIGHT function.
For this, select the cell in which we want to extract last 04 digits. In this case we have selected cell “B2”. In cell B2 enter formula as shown in below image.
Once we hit enter button, we can see that last 4 digits are now extracted in cell “B2”.
Comments
Post a Comment