Did you consider; to return the first 4 words:
The N in your formula is 4 in mine (as an example)PHP Code:=LEFT(A1;FIND("@";SUBSTITUTE(A1;" ";"@";4)))
The last N words:PHP Code:=LEFT(A1;FIND("@";SUBSTITUTE(A1;" ";"@";N)))
PHP Code:=MID(TRIM(A1);FIND("@";SUBSTITUTE(TRIM(A1);" ";"@";1+LEN(A1)-LEN(SUBSTITUTE(TRIM(A1);" ";""))-3));LEN(A1))




Reply With Quote

Bookmarks