This function will return the right most characters of a text string based on a number specified.
Syntax
RIGHT(Text, Number)
- Text (required) – This is the text string you want to return the right most characters from.
- Number (optional) – This is the number of characters you want returned. If no value is entered, only the last character will be returned.
Example
In this example we get the right few characters of a text string. Notice that negative numbers result in a #VALUE! error and non whole numbers are rounded down to the whole integer.
=RIGHT(A2,B2)
0 Comments