Display filename in cell
This will return the worksheet name:
=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255)
and this will return the folder:
=MID(CELL("filename",A1),1,FIND("[",CELL("filename",A1))-1)
Jeff wrote:
Hi,
I was using the ' =Cell("Filename") ' function in excel,
But I want to display only the path "= C:\Folder1\Folder2\"
And then I want to display the worksheet name = "worksheet1"
Is there a way to do this?
THanks
--
Dave Peterson
|