+ Reply to Thread
Results 1 to 9 of 9

Cell discription as file name

  1. #1
    Forum Contributor
    Join Date
    08-25-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    125

    Cell discription as file name

    Hi Everyone

    Could someone please tell me a formula to insert into a cell that will display the same discription as the file name.
    Thanks

  2. #2
    Forum Guru mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,207

    Re: Cell discription as file name

    Try
    =CELL("filename", A1)
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,142

    Re: Cell discription as file name

    hi Onesock. maybe try:
    =MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,FIND("]",CELL("filename",A1))-FIND("[",CELL("filename",A1))-1)

  4. #4
    Forum Contributor
    Join Date
    08-25-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    125

    Re: Cell discription as file name

    Hi Mike

    Unfortunatly the formula gives the whole path name - I just needed the file name.
    Thanks for trying.

    Regards

  5. #5
    Forum Contributor
    Join Date
    08-25-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    125

    Re: Cell discription as file name

    Hi
    Works great !! . Is there some way that it can work without showing the file extension in the file name . ie can it leave out the .xls

    Hoping

  6. #6
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,142

    Re: Cell discription as file name

    how about:
    =MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,FIND(".xl",CELL("filename",A1))-FIND("[",CELL("filename",A1))-1)

  7. #7
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,766

    Re: Cell discription as file name

    Or

    On Saved Workbook
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    For 2003 use the below formula to get the file name and the notification message for unsaved workbook
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    For 2007 use the below formula to get the file name and the notification message for unsaved workbook

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Hope that helps!
    Last edited by :) Sixthsense :); 10-23-2012 at 12:14 PM. Reason: Correction in formula

  8. #8
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,766

    Re: Cell discription as file name

    Internet connection problem same post getting posted twice, so replacing the duplicate post with this message.

    Regret for the inconvenience.
    Last edited by :) Sixthsense :); 10-23-2012 at 12:09 PM.

  9. #9
    Forum Contributor
    Join Date
    08-25-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    125

    Re: Cell discription as file name

    Yip Thanks

    That works exactly how I need it too !!!1

+ 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