Note: 99 is just an arbitrary number that represents the longest word you oughta extract.

In the example shown, the calculated position is 366.

The MAX function is used to handle the problem of the substring appearing first in the text.

Excel formula: Extract text between parentheses

In that case, the position will be negative, and MAX is used to reset to 1.

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

MAX Function

The Excel MAX function returns the largest numeric value in the data provided.

Excel formula: Extract nth word from text string

MAX ignores empty cells, the logical values TRUE and FALSE, and text values.

When the text is not found, FIND returns a #VALUE error.

SUBSTITUTE Function

The Excel SUBSTITUTE function replaces text in a given string by matching.

Excel formula: Get first word

For example, =REPT(“x”,5) returns “xxxxx”.

Excel formula: Extract word that begins with specific character

Excel formula: If cell contains one of many things

Excel MID function

Excel MAX function

Excel FIND function

Excel SUBSTITUTE function

Excel REPT function

Excel TRIM function

Article image

Article image