Solved

get a cell to reflect a tab name

Posted on 2011-02-23
3
257 Views
Last Modified: 2012-05-11
I want to have a certain cell show the tab name in a worksheet with multiple tabs - so when I am in the worksheet with a tab named Shelley - Shelley also shows up in cell B4
0
Comment
Question by:Dier02
3 Comments
 
LVL 5

Expert Comment

by:roger_karam
ID: 34959406
Hello,

Try this, where A1 is any non-error cell:

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

from:
http://www.ozgrid.com/VBA/return-sheet-name.htm

-RK
0
 
LVL 81

Accepted Solution

by:
zorvek (Kevin Jones) earned 500 total points
ID: 34959408
The formula below returns the sheet or tab name on which the formula resides.

   =MID(CELL("filename",A1),SEARCH("]",CELL("filename"))+1,31)

Kevin
0
 

Author Closing Comment

by:Dier02
ID: 34959562
Thanks Kevin, great work.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now