How to Extract Two Letters from the Nth Letter

To extract two letters from the Nth letter in the text string, you need to use Left Function.

Formula:

Copy the formula and replace "A1" with the cell name that contains the text you would like to extract, change N to the number you want.

=LEFT(RIGHT(A1,LEN(A1)-N+1),2)

Example:

To extract the two letters from the fifth letter from text string "How to Extract Two Letters from the Nth Letter".

The result returns the second letter "to".

Explanations:

Step 1: To find the length of the text string;

Formula=LEN(A1)
Result46

Step 2: Extract the text from the fifth letter

Formula=RIGHT(A1,LEN(A1)-5+1)
Resultto Extract Two Letters from the Nth Letter

Step 3: Extract the two letters from the fifth letter (or the first two letters from step 2)

Formula=LEFT(RIGHT(A1,LEN(A1)-5+1),2)
Resultto

Leave a Reply