+ Reply to Thread
Results 1 to 4 of 4

file name from folder path

  1. #1
    Registered User
    Join Date
    10-17-2013
    Location
    Illinois, USA
    MS-Off Ver
    Excel 2003
    Posts
    14

    file name from folder path

    Hi all,

    I have large datas with the folder path from that i need to seperate file names, can someone help me.
    It has so many subfolders and from different location.
    for example:
    operator://ww/newfloder/rrdfdfd/22kdfhdi/cars.xls
    operator://ww/newfloder/fdfdfdrr/22kdf/hireinghdi/duke/bikes.xls
    operator://ww/newfloder/rr/10.25/truck.bat
    operator://ww/new/floder/rr/10.25.145a2.bat
    operator://ww/newfloder/rr/10.25.145aaaaa2.bat

    i just want to seperate file names at the end...ex:
    cars.xls
    bikes.xls
    truck.bat
    10.25.145a2.bat
    10.25.145aaaaa2.bat

    Thanks,
    Sundar

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: file name from folder path

    Try this, copied down...
    =MID(A1,FIND("xx",SUBSTITUTE(A1,"/","xx",LEN(A1)-LEN(SUBSTITUTE(A1,"/",""))))+1,99)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    10-17-2013
    Location
    Illinois, USA
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: file name from folder path

    Thank you very much...its perfectly working, u saved lot of my time.
    Generated 18,000 file names using this formula.

    Thanks again,
    Sundar

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: file name from folder path

    happy to help and thanks for the feedback
    Last edited by FDibbins; 04-17-2014 at 01:38 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. FileDialogFilePick a file, then get the folder path
    By gvaltat in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-13-2014, 06:02 PM
  2. Code to list the folder path and sub folder path of a specific file
    By kalai1587 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-13-2013, 03:51 AM
  3. [SOLVED] how to insert file path of every file in a folder as a string?
    By Gamekiller48 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-31-2013, 02:01 PM
  4. [SOLVED] Save As Dialog Box - Default Path and File Name, User Selects Sub Folder from Default Path
    By christenprochaska in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-12-2012, 05:17 PM
  5. Specified folder path to select file path
    By JayEmTee91 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-29-2012, 10:38 AM

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