How to Use the RIGHT, RIGHTBs Function in Excel

Today, we will delve into the RIGHT function, available in both Excel and Google Sheets. This function is particularly useful for extracting a specified number of characters from the right end of a text string.

Basic Syntax

The syntax for the RIGHT function is consistent across both Excel and Google Sheets:

=RIGHT(text, [num_chars])
  • text refers to the text string from which you want to extract characters.
  • num_chars specifies the number of characters to extract from the text’s right side. This parameter is optional; if not provided, it defaults to 1.

Examples of Usage

Here are several examples to illustrate how the RIGHT function can be applied:

Example 1:

Extract the last 3 characters from the text string “Excel”:

Input Formula Output
Excel =RIGHT(“Excel”, 3) cel

Example 2:

If the num_chars parameter is omitted, the function defaults to extracting only the last character:

Input Formula Output
Google =RIGHT(“Google”) e

Example 3:

Apply the RIGHT function using cell references:

Input (A1) Formula (B1) Output (B1)
Excel =RIGHT(A1, 2) el

These examples demonstrate the flexibility and practicality of the RIGHT function in Excel and Google Sheets. By adjusting the num_chars parameter, you can tailor the number of characters extracted from the end of any text string.

More information: https://support.microsoft.com/en-us/office/right-rightb-functions-240267ee-9afa-4639-a02b-f19e1786cf2f

Other functions
Returns an array of text values from any specified range
Changes full-width (double-byte) English letters or katakana within a character string to half-width (single-byte) characters
Converts a number to text, using the ß (baht) currency format
Returns the character specified by the code number
Removes all nonprintable characters from text
Returns a numeric code for the first character in a text string
Combines the text from multiple ranges and/or strings, but it doesn't provide the delimiter or IgnoreEmpty arguments
Joins several text items into one text item
Changes half-width (single-byte) English letters or katakana within a character string to full-width (double-byte) characters
Converts a number to text, using the $ (dollar) currency format
Checks to see if two text values are identical
Finds one text value within another (case-sensitive)
Formats a number as text with a fixed number of decimals
Changes half-width (single-byte) characters within a string to full-width (double-byte) characters
Returns the leftmost characters from a text value
Returns the number of characters in a text string
Converts text to lowercase
Returns a specific number of characters from a text string starting at the position you specify
Converts text to number in a locale-independent manner
Extracts the phonetic (furigana) characters from a text string
Capitalizes the first letter in each word of a text value
Replaces characters within text
Repeats text a given number of times
Finds one text value within another (not case-sensitive)
Substitutes new text for old text in a text string
Converts its arguments to text
Formats a number and converts it to text
Combines the text from multiple ranges and/or strings, and includes a delimiter you specify between each text value that will be combined If the delimiter is an empty text string, this function will effectively concatenate the ranges
Removes spaces from text
Returns the Unicode character that is references by the given numeric value
Returns the number (code point) that corresponds to the first character of the text
Converts text to uppercase
Converts a text argument to a number
Returns text from any specified value