ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   how do I refer a cell to workbook name not worksheet (https://www.excelbanter.com/excel-discussion-misc-queries/160530-how-do-i-refer-cell-workbook-name-not-worksheet.html)

esparzaone

how do I refer a cell to workbook name not worksheet
 
I need a cell to refer to the name of the workbook not the tab or the
worksheet name. I know it must be similar but can't figure it out. Please
help.

Zenia

Gord Dibben

how do I refer a cell to workbook name not worksheet
 
=MID(CELL("filename",A1),FIND("[",CELL("filename",A1),1)+1,FIND("]",CELL("filename",A1),1)-FIND("[",CELL("filename"),1)-1)

For more like the above see Bob Phillips' site.

http://www.xldynamic.com/source/xld.xlFAQ0002.html


Gord Dibben MS Excel MVP

On Tue, 2 Oct 2007 11:44:01 -0700, esparzaone
wrote:

I need a cell to refer to the name of the workbook not the tab or the
worksheet name. I know it must be similar but can't figure it out. Please
help.

Zenia



esparzaone

how do I refer a cell to workbook name not worksheet
 
Amazing - Thank you!

"Gord Dibben" wrote:

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

For more like the above see Bob Phillips' site.

http://www.xldynamic.com/source/xld.xlFAQ0002.html


Gord Dibben MS Excel MVP

On Tue, 2 Oct 2007 11:44:01 -0700, esparzaone
wrote:

I need a cell to refer to the name of the workbook not the tab or the
worksheet name. I know it must be similar but can't figure it out. Please
help.

Zenia





All times are GMT +1. The time now is 03:02 AM.

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