Yup Me
Yup Me

Reputation: 1

Extract the first four words from a sentence

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

Answers (1)

pnuts
pnuts

Reputation: 59485

Please try:

=LEFT(SUBSTITUTE(A1," ","|",4),FIND("|",(SUBSTITUTE(A1," ","|",4)))-1)

Upvotes: 2

Related Questions