Trimming text from the end of cell contents.
It would help to see a sample line of data because you might be able to use
the Data, Text to Columns command if we saw a consistant pattern in the data.
Additionally, if Ref : only appears once you could use
=LEFT(A1,FIND(":",A1)-6)
It looks to me as though you have a space between Ref and :. If not change
the -6 to -5.
--
If this helps, please click the Yes button.
Cheers,
Shane Devenshire
"Colin Hayes" wrote:
Hi
I need help with a small problem.
I have a column which has rows each of which end with 'Ref : ' and then
a number.
I'd like to be able to trim all of this from the end of each cell ,
leaving the rest of the cell content intact.
Can someone help?
Grateful for any advice.
Best Wishes
|