+ Reply to Thread
Results 1 to 3 of 3

Getting only the filename with no extension

  1. #1
    Registered User
    Join Date
    06-09-2006
    Posts
    26

    Getting only the filename with no extension

    This code
    Please Login or Register  to view this content.
    works almost perfect for my needs; however, I need it to drop the extension to where only the name of the name of the file is left.

    Any thoughts?

    Thanks!

  2. #2
    Registered User
    Join Date
    06-09-2006
    Posts
    26
    Wouldn't you know, I found it.
    Please Login or Register  to view this content.

  3. #3
    bj
    Guest

    RE: Getting only the filename with no extension

    if all of the extensions are three characters try
    =left(MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,FIND("]",CELL("filename",A1))-FIND("[",CELL("filename",A1))-1),len(MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,FIND("]",CELL("filename",A1))-FIND("[",CELL("filename",A1))-1))-4)

    "Barry Clark" wrote:

    >
    > This code
    > Code:
    > --------------------
    > =MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,FIND("]",CELL("filename",A1))-FIND("[",CELL("filename",A1))-1)
    >
    > --------------------
    > works almost perfect for my needs; however, I need it to drop the
    > extension to where only the name of the name of the file is left.
    >
    > Any thoughts?
    >
    > Thanks!
    >
    >
    > --
    > Barry Clark
    > ------------------------------------------------------------------------
    > Barry Clark's Profile: http://www.excelforum.com/member.php...o&userid=35267
    > View this thread: http://www.excelforum.com/showthread...hreadid=555713
    >
    >


+ 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