How to extract first or first two words from text strings in Google sheet?
If you need to extract the first or first two or n words from a list of text strings as following screenshot shown in Google sheet, how could you achieve it as quickly as you want?
To extract only the first word from a list of text strings, please apply the following simple formula.
Enter this formula: =LEFT(A2,FIND(" ",A2)-1) into a blank cell where you want to locate the result, press Enter key to get the result from A2, then drag the fill handle down to the cells which you want to extract the first word, see screenshot:
If you need to extract the first 2 or 3 or n words from the text strings, you should use the below formula.
For extracting the first two words, please enter this formula: =regexextract(A2,"[\w]* [\w]*") into a blank cell, and press Enter key, the first two words of Cell A2 will be displayed, then drag the fill handle down to the cells to extract the first two words from the list of text strings, see screenshot:
Note: To extract the first three words, you should apply this formula: =regexextract(A2,"[\w]* [\w]* [\w]*"), to extract first n words, you just need to add [\w]* n times in the formula.