» Extracting the First N Number of Words from a String
CATEGORY - Excel Text Formulas
VERSION - All Microsoft Excel Versions
Extracting the first three words from each of the strings in column A.
Solution:
Use the TRIM, LEFT, FIND, and SUBSTITUTE functions as shown in the following formula:
=TRIM(LEFT(A2,FIND("^",SUBSTITUTE(TRIM(A2)&" "," ","^",3))-1))
Book Store:
Recommended Books:
- The Interpretation of Financial Statements
- The 22 Immutable Laws of Branding
- H&R Block's Just Plain Smart(tm) Tax Planning Advisor: A year-round approach to lowering your taxes this year, next year and beyond
- Accounting Principles, with CD, 6th Edition
- The 22 Immutable Laws of Marketing : Exposed and Explained by the World's Two
- Marketing Plan: A Handbook with Marketing Plan


Good tip but it won't work properly if the text you work on has variable spacing between words. I think you might find the following works better:
[B]=LEFT(TRIM(A2),FIND("^",SUBSTITUTE(TRIM(A2)&" "," ","^",3))-1)[/B]
Cheers :rolleyes: