worksheet name

A

Alex

I've read the previous "worksheet name" post.

I need a similar thing. I need to get the workbook name
in a cell but without this ".xls".

How could I get it?

Thanks
 
F

Frank Kabel

Hi
one way
=MID(CELL("filename",A1),FIND("[",CELL("filename",A1),1)+1,FIND("]",CEL
L("filename",A1),1)-FIND("[",CELL("filename",A1),1)-5)
 
J

JE McGimpsey

One way:

=MID(LEFT(CELL("filename",A1), FIND(".xls",CELL("filename",A1))-1),
FIND("[",CELL("filename",A1))+1,255)


Note that the workbook must be saved for this to work.
 
A

Alex

Thank you very much guys.
-----Original Message-----
One way:

=MID(LEFT(CELL("filename",A1), FIND(".xls",CELL ("filename",A1))-1),
FIND("[",CELL("filename",A1))+1,255)


Note that the workbook must be saved for this to work.

Alex said:
I've read the previous "worksheet name" post.

I need a similar thing. I need to get the workbook name
in a cell but without this ".xls".

How could I get it?

Thanks
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top