Insert FileName Into a Cell

September 22nd, 2004 | Categories: Formulas | Tags:

A formula to insert the filename of the workbook in a cell:

=MID(CELL(“filename”,A1),FIND(“[",CELL("filename",A1))+1,FIND("]“,
CELL(“filename”,A1))-FIND(“[“,CELL(“filename”,A1))-1)

Note: Remove the line break from the formula in Excel.

No comments yet.