This is a bit sloppy, but it avoids having to calculate the exact number of characters to extract.

Next, to extract just the word we want (i.e.

@word), we use LEFT to extract the first 100 characters from the left.

Excel formula: Extract text between parentheses

This gets us “@word”, plus many extra spaces.

For that, we use the TRIM function.

Note: 100 represents the longest word you expect to find that begins with the special character.

Excel formula: Extract nth word from text string

Increase or decrease to suit your needs.

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

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

Excel formula: Get first word

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.

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

Excel MID function

Excel LEN function

Excel FIND function

Excel SUBSTITUTE function

Excel REPT function

Excel TRIM function

Article image

Article image