Cell value = Sheet name

rebelroy

Board Regular
Joined
Nov 30, 2008
Messages
211
Hi all,

How can I make the cell value in C3 equal the its own sheet name please?
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
The function =CELL("filename",A1)
will return something like > C:\DirectoryName\[WorkBookName.xls]SheetName
which is the full path of the current workbook. Enclosed within [ ] is the WorkBook name
After the ] is the Sheet name
Note: in the function it has A1, this is used to reference the Activesheet (Anchor)
if you didn't have this in and you used it on multiple sheets they would all display the last
Sheet name that was active until you recalculated the Sheet formula

=MID(CELL("filename",A1),FIND("]",CELL("filename"),1)+1,255)
The Find function just returns the position of the 1st instance of the last ]
MID evaluates the string to return the sheet name only
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,279
Members
449,075
Latest member
staticfluids

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