Hi,
I have just imported alot of data into excel which i was wondering if theres a way of trimming
theres a column where all the cell values end in ".GB" or ".ES" basically a "." then 2 letters. Is there a formula to trim this off?
Thanks so much
Hi,
I have just imported alot of data into excel which i was wondering if theres a way of trimming
theres a column where all the cell values end in ".GB" or ".ES" basically a "." then 2 letters. Is there a formula to trim this off?
Thanks so much
Last edited by jonnykanzen; 10-02-2008 at 06:31 AM.
Sorry forgot to mention.
Not ALL the cells end like this. . . Some dont have the ".XX" at the end and obviously i wouldnt want t his trimmed
In a spare column you could use the formula
=IF(LEFT(RIGHT(A1,3),1)=".",LEFT(A1,LEN(A1)-2),A1)
This leaves the fullstop in. If you want that removed use -3 instead of -2
Once your happen you can use copy / pastespecial / values
hi there thanks for your help.
thats works nicely for all the cells that end it .XX but the ones that dont it produces a 0. . anyway to make this work?
heres an eg of my cells:
AOEP
AFE.GB
AGA.GB
AGK.GB
AGAP.GB
AGRI
AHMP
thanks
For me your test data returns
AOEP
AFE.
AGA.
AGK.
AGAP.
AGRI
AHMP
returns for me:
0
AFE
AGA
AGK
AGAP
0
0
Ok fixed it!
what did you do to fix it, in case anybody else reading this has the same problem.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks