Sheetname in a cell

  • Thread starter Thread starter daniel chen
  • Start date Start date
D

daniel chen

Will someone please help me with a formula.
Lets say I want cell G8 to reflect the sheetname it is in.
Thanks,
 
Hi

=MID(CELL("filename",$A$1),FIND("[",CELL("filename",$A$1))+1;FIND("]",CELL("
filename",$A$1))-FIND("[",CELL("filename",$A$1))-1)
returns workbooks name
=MID(CELL("filename";$A$1);FIND("]";CELL("filename";$A$1))+1;99)
returns worksheets name


Arvi Laanemets
 
Thank you very much, Arvi
I think it's typo-error
I have to replace all the ";" with ","

Arvi Laanemets said:
Hi

=MID(CELL("filename",$A$1),FIND("[",CELL("filename",$A$1))+1;FIND("]",CELL("
filename",$A$1))-FIND("[",CELL("filename",$A$1))-1)
returns workbooks name
=MID(CELL("filename";$A$1);FIND("]";CELL("filename";$A$1))+1;99)
returns worksheets name


Arvi Laanemets


daniel chen said:
Will someone please help me with a formula.
Lets say I want cell G8 to reflect the sheetname it is in.
Thanks,
 
Daniel,

It is not a typo to Arvi. In Europe, Excel uses semi-colon as the separator
in functions, whereas most of the rest of the world (including the UK) uses
comma.

--

HTH

RP
(remove nothere from the email address if mailing direct)


daniel chen said:
Thank you very much, Arvi
I think it's typo-error
I have to replace all the ";" with ","

Arvi Laanemets said:
Hi

=MID(CELL("filename",$A$1),FIND("[",CELL("filename",$A$1))+1;FIND("]",CELL("
filename",$A$1))-FIND("[",CELL("filename",$A$1))-1)
returns workbooks name
=MID(CELL("filename";$A$1);FIND("]";CELL("filename";$A$1))+1;99)
returns worksheets name


Arvi Laanemets


daniel chen said:
Will someone please help me with a formula.
Lets say I want cell G8 to reflect the sheetname it is in.
Thanks,
 
Good to know, Bob

Bob Phillips said:
Daniel,

It is not a typo to Arvi. In Europe, Excel uses semi-colon as the
separator
in functions, whereas most of the rest of the world (including the UK)
uses
comma.

--

HTH

RP
(remove nothere from the email address if mailing direct)


daniel chen said:
Thank you very much, Arvi
I think it's typo-error
I have to replace all the ";" with ","

Arvi Laanemets said:
Hi

=MID(CELL("filename",$A$1),FIND("[",CELL("filename",$A$1))+1;FIND("]",CELL("
filename",$A$1))-FIND("[",CELL("filename",$A$1))-1)
returns workbooks name
=MID(CELL("filename";$A$1);FIND("]";CELL("filename";$A$1))+1;99)
returns worksheets name


Arvi Laanemets


Will someone please help me with a formula.
Lets say I want cell G8 to reflect the sheetname it is in.
Thanks,
 
Hi

Sorry, but I forgot to replace them in second formula myself!


Arvi Laanemets


daniel chen said:
Thank you very much, Arvi
I think it's typo-error
I have to replace all the ";" with ","

Arvi Laanemets said:
Hi

=MID(CELL("filename",$A$1),FIND("[",CELL("filename",$A$1))+1;FIND("]",CELL("
filename",$A$1))-FIND("[",CELL("filename",$A$1))-1)
returns workbooks name
=MID(CELL("filename";$A$1);FIND("]";CELL("filename";$A$1))+1;99)
returns worksheets name


Arvi Laanemets


daniel chen said:
Will someone please help me with a formula.
Lets say I want cell G8 to reflect the sheetname it is in.
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

Back
Top