remove only the last word from each lin

  • Thread starter Thread starter jajoseph
  • Start date Start date
J

jajoseph

I have been looking in the archives and I have not been able to find an
excel formula to do the following. I need a formula to remove only the
last word from each line automatically.

4076 St. Andrews Ct. Canfield
7369 Spring Lake Boardman
108 S. Lakeview Youngstown
4028 Burgett Lane Poland
21 Meadow Court Austintown
 
One way:

=TRIM(LEFT(A1,FIND("$",SUBSTITUTE(A1,"_","$",LEN(A1) -
LEN(SUBSTITUTE(A1,"_",""))))))

where "_" represents a space character to prevent unfortunate line wrap.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top