Displaying worksheet name in cell

G

Guest

Is there any way to display a worksheet name in a cell (without using macros).

I have tried =MID(CELL("filename"),FIND("]",CELL("filename"))+1,255)
but if I use this on multiple sheets in the same workbook, they all end up
displaying the same name!
 
D

Dave Peterson

Include a reference to each sheet:

=MID(CELL("filename",a1),FIND("]",CELL("filename",a1))+1,255)
Is there any way to display a worksheet name in a cell (without using macros).

I have tried =MID(CELL("filename"),FIND("]",CELL("filename"))+1,255)
but if I use this on multiple sheets in the same workbook, they all end up
displaying the same name!
 
P

Paul Sheppard

Adrian said:
Is there any way to display a worksheet name in a cell (without usin
macros).

I have tried =MID(CELL("filename"),FIND("]",CELL("filename"))+1,255)
but if I use this on multiple sheets in the same workbook, they all en
up
displaying the same name!

Hi Adrian

Try this >

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

Guest

Thanks, this worked great

Paul Sheppard said:
Is there any way to display a worksheet name in a cell (without using
macros).

I have tried =MID(CELL("filename"),FIND("]",CELL("filename"))+1,255)
but if I use this on multiple sheets in the same workbook, they all end
up
displaying the same name!

Hi Adrian

Try this >

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

Guest

Thanks, this worked great

Dave Peterson said:
Include a reference to each sheet:

=MID(CELL("filename",a1),FIND("]",CELL("filename",a1))+1,255)
Is there any way to display a worksheet name in a cell (without using macros).

I have tried =MID(CELL("filename"),FIND("]",CELL("filename"))+1,255)
but if I use this on multiple sheets in the same workbook, they all end up
displaying the same name!
 

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