Results 1 to 3 of 3

Thread: How to add a file name with .xls extension in Microsoft Excel cell

  1. #1
    Join Date
    Nov 2011
    Posts
    166

    How to add a file name with .xls extension in Microsoft Excel cell

    I know that I can enter a cell file name with the following typed into the cell: =MID(CELL("filename"),SEARCH("[",CELL("filename"))+1, SEARCH("]",CELL("filename"))-SEARCH("[",CELL("filename"))-1). But, can I do this without showing the file extension (.xls).

  2. #2
    Join Date
    Jun 2011
    Posts
    487

    Re: How to add a file name with .xls extension in Microsoft Excel cell

    Maybe something like this. =MID(CELL("filename"),SEARCH("[",CELL("filename"))+1, SEARCH(".xl?]",CELL("filename"))-SEARCH( [",CELL("filename"))-1).

  3. #3
    Join Date
    Jun 2011
    Posts
    635

    Re: How to add a file name with .xls extension in Microsoft Excel cell

    I also found that this works as well (removes last 4 digits by changing -1 to -5, but I like your solution better: =MID(CELL("filename"),SEARCH("[",CELL("filename"))+1, SEARCH("]",CELL("filename"))-SEARCH("[",CELL("filename"))-5). If still you face issue you can try out some links below. They might not provide you exact info on adding the same but just for reference I am adding it.

    Add the file path to Excel worksheet headers and footers

    Insert a file name in a header or footer

Similar Threads

  1. Want help to filter merge cell in Microsoft Excel
    By DEvOTeEL in forum MS Office Support
    Replies: 2
    Last Post: 24-02-2012, 07:00 PM
  2. Replies: 2
    Last Post: 23-02-2012, 07:23 PM
  3. Cell borders are missing in Microsoft Excel
    By GuruT in forum MS Office Support
    Replies: 6
    Last Post: 13-01-2012, 06:08 PM
  4. How to stretch only one cell in Microsoft Excel Worksheet
    By AbiaA in forum MS Office Support
    Replies: 2
    Last Post: 05-01-2012, 06:04 PM
  5. Partial matching of cell in Microsoft Excel
    By KANAN14 in forum Windows Software
    Replies: 3
    Last Post: 04-12-2009, 02:20 AM

Tags for this Thread

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
  •  
Page generated in 1,718,094,777.40886 seconds with 17 queries