excel substring string code example Example: excel get after character =LEFT(text,FIND(character,text)-1)