Use workbook name as value

  • Thread starter Thread starter sebyjohn73
  • Start date Start date
S

sebyjohn73

Hi, I am using the name of the workbook as a serial number too. I woul
like to use a formula, so that the serial # column reflects the ne
workbook name, every time I open a new workbook using the "save as
function.

regards, seb
 
Enter this into a cell to return the filename.

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

Note: file must have been saved a to least once.


Gord Dibben MS Excel MVP
 
Thank you very much

regards, Seby
Enter this into a cell to return the filename.

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

Note: file must have been saved a to least once.


Gord Dibben MS Excel MV
 
Back
Top