+ Reply to Thread
Results 1 to 4 of 4

Copy column but remove last few characters

  1. #1
    Registered User
    Join Date
    06-25-2007
    Posts
    45

    Copy column but remove last few characters

    Hi,

    Very basic question for you. I have a column of data, (10,000 entries), a list of file names basically, e.g:

    Mortality Project Executive Summary.pdf
    RPP - AA rate and swaps.xls
    Commodities.PPT presentation.ppt
    Meeting Preparation 20090302.docx

    etc...

    Anywho the point is I want to remove the file extensions (and of course the "."s just before), but some obviously have 4 character extensions, some 3, some 2 etc... Some documents also have "."s in the file name that I do not want to remove, basically just working from the right keep removing until the first "." is removed.

    So the final list wants to be:

    Mortality Project Executive Summary
    RPP - AA rate and swaps
    Commodities.PPT presentation
    Meeting Preparation 20090302

    I know I should VBA it, but I want it all in the one spreadsheet and that's a bit above me. The document has about 30 other columns.

    Many thanks,

    Tim
    Last edited by shmee150; 03-13-2009 at 06:33 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Copy column but remove last few characters

    Try:

    Please Login or Register  to view this content.
    copied down

    where A1 contains first string to parse.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Copy column but remove last few characters

    Hi, Try this:-
    NB:- This is for Data in column "A", (Change to suit)
    Please Login or Register  to view this content.
    Regards Mick

  4. #4
    Registered User
    Join Date
    06-25-2007
    Posts
    45

    Re: Copy column but remove last few characters

    Quote Originally Posted by NBVC View Post
    Try:

    Please Login or Register  to view this content.
    copied down

    where A1 contains first string to parse.
    Perfect!

    Thank you very very much!

    Tim

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1