G Guest Aug 3, 2005 #1 Hi, Is there a formula I can put in a cell that will show the name of the sheet it is on? Thanks, Jane
Hi, Is there a formula I can put in a cell that will show the name of the sheet it is on? Thanks, Jane
M Mangesh Yadav Aug 3, 2005 #3 Use: =CELL("filename",A1) will give the full path. If you need just the file name, then use: =MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,FIND("]",CELL("file name",A1))-FIND("[",CELL("filename",A1))-1) Mangesh
Use: =CELL("filename",A1) will give the full path. If you need just the file name, then use: =MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,FIND("]",CELL("file name",A1))-FIND("[",CELL("filename",A1))-1) Mangesh
M Mangesh Yadav Aug 3, 2005 #4 Sorry, for the sheet name, use: =RIGHT(CELL("filename",A1),LEN(CELL("filename",A1))-FIND("]",CELL("filename" ,A1))) Mangesh Mangesh Yadav said: Use: =CELL("filename",A1) will give the full path. If you need just the file name, then use: =MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,FIND("]",CELL("file name",A1))-FIND("[",CELL("filename",A1))-1) Mangesh JaneC said: Hi, Is there a formula I can put in a cell that will show the name of the sheet it is on? Thanks, Jane Click to expand... Click to expand...
Sorry, for the sheet name, use: =RIGHT(CELL("filename",A1),LEN(CELL("filename",A1))-FIND("]",CELL("filename" ,A1))) Mangesh Mangesh Yadav said: Use: =CELL("filename",A1) will give the full path. If you need just the file name, then use: =MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,FIND("]",CELL("file name",A1))-FIND("[",CELL("filename",A1))-1) Mangesh JaneC said: Hi, Is there a formula I can put in a cell that will show the name of the sheet it is on? Thanks, Jane Click to expand... Click to expand...
K Krishnakumar Aug 3, 2005 #6 Hi, Define X[/] =GET.DOCUMENT(76)&T(NOW()) In the cell, =MID(X,FIND("]",X)+1,255) HTH