If I have text in cell A1 with lets say ABC on the end that I do not want, how can I get the text without the ABC into B1. The lengths of the strings will very.
So for example
a sueabc I want sue
b fredabc I want fred
c georgeabc I want george
If I have text in cell A1 with lets say ABC on the end that I do not want, how can I get the text without the ABC into B1. The lengths of the strings will very.
So for example
a sueabc I want sue
b fredabc I want fred
c georgeabc I want george
=left(a1,len(a1)-3)
Regards
Special-K
Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.
Thank you for your help
To avoid string without "abc" is cut last 3 characters , i.e "axyz"->"a"
=IF(RIGHT(A1,3)="abc",LEFT(A1,LEN(A1)-3),A1)
Quang PT
Try this
=SUBSTITUTE(A1,"abc","")
Data Range
A B 1 sueabc sue 2 fredabc fred 3 georgeabc george
If you like my answer please click on * Add Reputation
Don't forget to mark threads as "Solved" if your problem has been resolved
"Nothing is so firmly believed as what we least know."
--Michel de Montaigne
Great Idea
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks