Hi
I am trying to create a formula allowing me to automatically shorten the content of cells containing names and codes, to show the name only:
Before: George Washington - D3405
Desired: George Washington
I.e. I want to cut from the end of the family name, regardless of lenght of ending code. Have tried a couple of the tips in FAQ but did not get anywhere - even thought they tips appeared very relevant. Pls help
If there is consistently a dash separating the 2 items, then
=Trim(Left(A1;Find("-";A1)-1))
where A1 contains the string.
EDIT: delimiter modified to ; from ,
Last edited by DonkeyOte; 03-05-2010 at 12:10 PM.
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Dear NBVC,
Thanks for help. It works beautifully!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks