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