The first argument,text, is thetextstring to extract from.

This is typically a reference to a cell that contains text.

The second argument, callednum_chars, specifies the number of characters to extract.

RIGHT function example - extract state abbreviation

Ifnum_charsis not provided, it defaults to 1.

Ifnum_charsis greater than the number of characters available, RIGHT returns theentiretext string.

The result is the two-letter abbreviation for the state.

RIGHT function example - extract state abbreviation

When the result is TRUE, IF returns “x”.

When the result is FALSE, IF returns an empty string “”.

The result is that the codes in column B that end with “abc” are clearly marked.

RIGHT function example - extract state abbreviation

The screen below shows how this formula can be applied in a worksheet.

Next, the FIND function returns the position of the space character " " as a number.

The result from FIND is then subtracted from the result from LEN and returned to RIGHT as thenum_charsargument.

RIGHT function example - extract state abbreviation

you’ve got the option to read a moredetailed explanation here.

The RIGHT function is used to extract text from therightside of a text string.

Use theLEFT functionto extract text starting from theleftside of the text, and theMID functionto extract from themiddleof text.

RIGHT function example - extract state abbreviation

For example, =LEFT(“apple”,3) returns “app”.

For example, =MID(“apple”,2,3) returns “ppl”.

LEN will also count characters in numbers, but number formatting is not included.

RIGHT function example - extract last character

TEXTBEFORE Function

The Excel TEXTBEFORE function returns the text that occurs before a given substring or delimiter.

TEXTAFTER Function

The Excel TEXTAFTER function returns the text that occurs after a given substring or delimiter.

TEXTSPLIT can split text into rows or columns.

RIGHT function example - RIGHT with UPPER

RIGHT function example - IF cell ends with

RIGHT function example - get last name from full name

Excel formula: Remove trailing slash from url

Excel formula: Normalize size units to Gigabytes

Excel formula: Count between dates by age range

Excel formula: Get top level domain (TLD)

Excel formula: Highlight cells that end with

Excel formula: Get first name from name with comma

Excel formula: Get last word

Excel formula: Get last line in cell

Excel formula: Split text and numbers

Excel formula: Convert text to date

Excel formula: Split text string at specific character

Excel formula: Parse time string to time

Excel formula: Get date from day number

Excel formula: Split dimensions into two parts

Excel formula: Split numbers from units of measure

Article image

Article image

Excel LEFT function

Excel MID function

Excel LEN function

Excel TEXTBEFORE function

Excel TEXTAFTER function

Excel TEXTSPLIT function

RIGHT function example - IF cell ends with

RIGHT function example - get last name from full name