To use this function, choose .
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.
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.
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.
Column | Calculator expression | Result |
---|---|---|
C1 contains Jones, Penelope | WORD(C1,2,", ") | Penelope |