Solved

# get a cell to reflect a tab name

Posted on 2011-02-23
257 Views
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
Question by:Dier02

LVL 5

Expert Comment

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

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

ID: 34959562
Thanks Kevin, great work.
0

## Join & Write a Comment Already a member? Login.

### Suggested Solutions

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.

#### Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!