TheCHAR functionreturns a character based on it’s numeric code.

The formula then uses the MID function to extract the desired line.

Finally, the TRIM function slices off all extra space characters and returns just the line text.

Excel formula: Get first word

you could also use Control + J for new line during search and replace operations.

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

SUBSTITUTE Function

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

Excel formula: Get last word

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

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

Excel formula: Extract word that begins with specific character

Excel formula: Extract nth word from text string

Excel formula: Count line breaks in cell

Excel formula: Remove line breaks

Excel TRIM function

Excel MID function

Excel SUBSTITUTE function

Excel REPT function

Excel LEN function

Article image

Article image