Reputation: 1
Given a sentence, for example:
The quick brown fox jumped over the lazy dog
what Excel formula would extract the first four words?:
The quick brown fox
Upvotes: 1
Views: 1055
Reputation: 59485
Please try:
=LEFT(SUBSTITUTE(A1," ","|",4),FIND("|",(SUBSTITUTE(A1," ","|",4)))-1)
Upvotes: 2