# Pull Last Word(s) After Last or First Instance of a Specified Character

## Excel Formula To Get Last Word(s) After Last/First Instance of a Specified Character In Any Cell

Got any Excel Questions? Excel Help & Excel Video Tutorials

Suppose you have the text "11003-blue-40 lbs" in Cell A1 and you need to get the last words/characters after the last occurrence of the dash (-), i.e. "40 lbs", you can use;

=MID(A1,FIND("=",SUBSTITUTE(A1,"-","=",LEN(A1)-LEN(SUBSTITUTE(A1,"-",""))))+1,256)

If you need all the words/characters after the 1st occurrence of the dash (-), i.e. "blue-40 lbs", you can use;

=MID(A1,FIND("=",SUBSTITUTE(A1,"-","=",LEN(A1)-LEN(SUBSTITUTE(A1,"-",""))-1))+1,256)

### More text functions

Extracting Words From Text in Excel Excel has very powerful and useful Text formula/functions that we can use to extract words from a string of words. Or, put another way, parse out specific words from text. The examples here show how we can use the Excel formulas to do this.

Convert Text to Upper/Proper Case Excel has 2 built in Excel Formulas for converting text to either UPPER CASE or Proper Case.  However, there are many instances when using the Worksheet Function approach is not practical.

Converting Text Numbers to Real Numbers Sometimes Excel sees numbers as text and this causes problems. Here are two simple ways that should help both constants and formulas.

Sort Alphanumeric Text Excel has a problem trying to sort alphanumeric cells in cells by the number portion only. The reason is simply because Excels Sort features evaluates each cell value by reading left to right. However, we can over-come this in a few ways with the aid of Excel Macros

Special! Free Choice of Complete Excel Training Course OR Excel Add-ins Collection on all purchases totaling over \$64.00. ALL purchases totaling over \$150.00 gets you BOTH! Purchases MUST be made via this site. Send payment proof to [email protected] 31 days after purchase date.