Referencing a tab name

mcwilson

New Member
Joined
Jun 21, 2011
Messages
19
I want to have certain information disappear (white font) if the tab name is Project 1A.
When the tab name is changed, the font will change back.
I know this can be done with conditional formatting - if cell = x, then y.
but, i need to have a cell display the tab name and reference it when it changes. any ideas?
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Code:
=RIGHT(CELL("filename",$A$1),LEN(CELL("filename",$A$1))-FIND("]",CELL("filename",$A$1)))
will return the sheet name, you can use this
 
Upvote 0
This will put the tabname in a cell.

=REPLACE(CELL("filename",A1),1,FIND("]",CELL("filename",A1)),"")

Note, this formula will only work after the file has been saved..
I.E. It will not work on a NEW book, untill that book is saved, then re-enter the formula.

Hope that helps.
 
Upvote 0
Okay still an issue....sorry. Apparently I cannot do the conditional formatiing bit. I want Rows B-Z to hide if A1 says "hide"
how do i do this with conditional formating?

Thanks
 
Upvote 0
Use $ symbols to lock which cell is referenced in your conditional format

Or name the range. So call a cell "sheetName", then use this in your CF, instead of the cell refences you are currently using
 
Upvote 0
sorry, still not following. So if i enter in hide in A1, i want all rows below it to be blanked out
anything else will show them as their normal color and font.
Can i do this by clicking on the conditional fomratinng tab?
 
Upvote 0

Forum statistics

Threads
1,224,598
Messages
6,179,818
Members
452,946
Latest member
JoseDavid

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