+ Reply to Thread
Results 1 to 4 of 4

Display file name without extension

  1. #1
    Forum Contributor
    Join Date
    01-30-2011
    Location
    Boston
    MS-Off Ver
    MS 365
    Posts
    230

    Display file name without extension

    I simply want to show the file name in a cell, preferably without the extension.

    I am using MS Professional 2010 and Excel ver 14


    Thanks
    Last edited by JET2011; 03-07-2015 at 10:09 PM.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Display file name without extension

    The file must already exist (in other words, it has been saved and given a name).

    Entered in any cell...

    =MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,FIND(".",CELL("filename",A1))-1-FIND("[",CELL("filename",A1)))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Contributor
    Join Date
    01-30-2011
    Location
    Boston
    MS-Off Ver
    MS 365
    Posts
    230

    Re: Display file name without extension

    It works! Thanks Tony - amazing how complicated but glad didn't need programing.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Display file name without extension

    You're welcome. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ 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. File name + Directory Path too long.......saves file without extension..........
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-28-2016, 03:17 AM
  2. Replies: 4
    Last Post: 10-23-2013, 12:54 AM
  3. Replies: 6
    Last Post: 05-01-2013, 05:33 PM
  4. Replies: 4
    Last Post: 10-24-2008, 11:49 AM
  5. Replies: 2
    Last Post: 08-11-2005, 10:05 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