+ Reply to Thread
Results 1 to 4 of 4

Returning list of file names in column. Would like to remove file ext. from returned list.

  1. #1
    Forum Contributor
    Join Date
    03-21-2013
    Location
    USA
    MS-Off Ver
    365
    Posts
    163

    Returning list of file names in column. Would like to remove file ext. from returned list.

    Hello,

    I've been trying a few different ways to get my returned list of file names to remove the ".xlsx" extension from it's result, but am having some trouble.

    Does anybody know of an easy way to do this?

    Below describes how I'm going about getting my list of file names.

    Please Login or Register  to view this content.
    "FN" refers to a saved name path which has the below code referencing it...

    Please Login or Register  to view this content.
    I'm just trying to get my returned list of file names to not show the ".xlsx" portion of the file name.


    Thank you in advance for any help!

  2. #2
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: Returning list of file names in column. Would like to remove file ext. from returned l

    why dont you just remove the .xlsx
    if your filename is in D8 ie MyFile.xlsx
    Please Login or Register  to view this content.
    this will return MyFile
    Regards
    Sean

    Please add to my reputation if you think i helped
    (click on the star below the post)
    Mark threads as "Solved" if you have your answer
    (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code:
    [code] Your code here [code]
    Please supply a workbook containing example Data:
    It makes its easier to answer your problem & saves time!

  3. #3
    Forum Contributor
    Join Date
    03-21-2013
    Location
    USA
    MS-Off Ver
    365
    Posts
    163

    Re: Returning list of file names in column. Would like to remove file ext. from returned l

    Hello Sean,

    Thank you for your prompt reply.

    I've tried implementing a SUBSTITUTE function into the INDEX of my formula before, but to no avail.

    What I have is a table which in column A contains the formula below:

    Please Login or Register  to view this content.
    That formula is telling that entire column (A) to return the names of files as they are created in another folder.

    Once that file name is placed there, the rest of the columns to the right of col A, then use that file name to locate which file to pull the data from for it's adjacent rows.

    I'm looking to try and remove the ".xlsx" portion of the returned file name really only for cosmetic reasons. Just wondering if it is possible to do so by means of incorporating a method/function into what I've got going already?

  4. #4
    Forum Contributor
    Join Date
    03-21-2013
    Location
    USA
    MS-Off Ver
    365
    Posts
    163

    Re: Returning list of file names in column. Would like to remove file ext. from returned l

    Well, I figured it out.

    Please Login or Register  to view this content.
    Above is my result in case somebody else is looking for a resolution to this in the future.

+ 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