To use this function, choose Calc > Calculator.

Extracts the nth word from a string of text. For example, if you have a column of last names and first names separated by a comma, you can extract all characters from the beginning of the text string up to the comma, which are the last names.

Note

The Word function is similar to the Item function, except that Item extracts the empty text that occurs between consecutive separators (such as the comma and space) while the Word function ignores the empty string and extracts the text that follows the consecutive separators.

Syntax

WORD(text,word_num,[delimiters])

For text, specify the text or column of text. For word_num, specify the position of the word to extract. By default, one or more spaces define where each word begins and ends. If you want to specify other criteria for determining the separation between the words, such as a comma, specify the separator using the optional third argument, delimiters.

Example

Column Calculator expression Result
C1 contains Jones, Penelope WORD(C1,2,", ") Penelope
By using this site you agree to the use of cookies for analytics and personalized content.  Read our policy