xl-central.com, Your Quick Reference to Excel Solutions





navleft
navright
spacer

Return the Workbook Name

The following formula returns the workbook name of the workbook that contains the reference A1......

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

Notes
  • The argument "filename" is literally the word "filename" within quotes.
  • The workbook needs to be saved, otherwise the formula returns the error #VALUE!

spacer
Wu Yi Tea
Website Designed by Wu Yi Tea
Design downloaded from free website templates.
Wordpress Themes