Hi,
I'm trying to find a formula which will remove all characters to the right of the last space in a string. I've found:
=LEFT(A1,FIND("^^",SUBSTITUTE(A1," ","^^",LEN(A1)-LEN(SUBSTITUTE(A1," ",""))))-1)
which seems to do the trick, however I'd like to add some extra intelligence to it so that it only applies if the string contains 25 characters or more.
Does anybody have any ideas?
I'm trying to find a formula which will remove all characters to the right of the last space in a string. I've found:
=LEFT(A1,FIND("^^",SUBSTITUTE(A1," ","^^",LEN(A1)-LEN(SUBSTITUTE(A1," ",""))))-1)
which seems to do the trick, however I'd like to add some extra intelligence to it so that it only applies if the string contains 25 characters or more.
Does anybody have any ideas?