You can get the full path, file name , sheet etc by using
=CELL("filename")
An array formula can return the sheet name only
=RIGHT(CELL("filename"),LEN(CELL("filename"))- MAX(IF(NOT(ISERR(SEARCH("\",CELL("filename"), ROW(1:255)))),SEARCH("\",CELL("filename"),ROW(1:255)))))
To enter a formula as an array formula, press CTRL+SHIFT+ENTER.


Reply With Quote
Bookmarks