ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How to pick up file name in the cell (https://www.excelbanter.com/excel-discussion-misc-queries/118134-how-pick-up-file-name-cell.html)

Vijay Kotian

How to pick up file name in the cell
 
I would like to use the name of the file in the cell. How can i do that?

Gary''s Student

How to pick up file name in the cell
 
=CELL("filename",A1) will even supply you with the path as well.
--
Gary's Student


"Vijay Kotian" wrote:

I would like to use the name of the file in the cell. How can i do that?


Gary Rowe

How to pick up file name in the cell
 
=cell("filename", A1) returns the filename (including full path) of the file
that contains reference, as text. Returns empty text ("") if the worksheet
that contains reference has not yet been saved.

"Vijay Kotian" wrote:

I would like to use the name of the file in the cell. How can i do that?


CLR

How to pick up file name in the cell
 
=MID(CELL("filename",A1),FIND("[",CELL("filename",A1),1)+1,FIND("]",CELL("filename",A1),1)-1-FIND("[",CELL("filename",A1),1))

Workbook must be saved once first........

Vaya con Dios,
Chuck, CABGx3




"Vijay Kotian" wrote:

I would like to use the name of the file in the cell. How can i do that?



All times are GMT +1. The time now is 02:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com