Formula wanted - worksheet name....

craigwyman

New Member
Joined
Oct 17, 2006
Messages
3
Hi there.

I have been on this forum once before and found it most useful. I am after another bt of help.

I want a certain cell on my sheet to be the same as what the sheet itself is called if you understand?

For example, Cell A2 reading "Sheet1" Then if you change the name of the sheet, Cell A2 updates with whatever its called.

Is there a formula i can place in cell A2 to do this for me?

Many Thanks

Craig
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
A couple of possibilites:

=MID(CELL("filename"),FIND("]",CELL("filename"),1)+1,32)

=SUBSTITUTE(CELL("filename",A1),LEFT(CELL("filename",A1),FIND("]",CELL("filename",A1),1)),"")
 
Upvote 0
Hi there.

Thanks ever so much for your reply, however I have copied and pasted the fomula into a cell, and it does not appear to work :(

It just says #VALUE!

Any Ideas, or am i missing something?

Thanks for your help

Craig
 
Upvote 0
Craig

These formulas will only work in a workbook that has been saved.
 
Upvote 0
A general question. This request is not an isolated incidence; I have needed this "function" many times in the past, so why has MS not included it in the standard (or Add-in) functions? I know, wrong Forum, should be MS's own Excel forum - but if makes you wonder if any of the programmers ever read the forums!.

David - in a rather damp Scotland.
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,716
Members
448,985
Latest member
chocbudda

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top