Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
SWalton
 
Posts: n/a
Default Excel: Sheet name from tab automically into a cell

How do I get a cell to reflect the value which lies in a sheet's tab (the
sheet name) without having to manually type it in
  #2   Report Post  
David Billigmeier
 
Posts: n/a
Default

Hello -
CELL("filename") will output the full path of the sheet and tab you are in
and:

=RIGHT(CELL("filename"),LEN(CELL("filename"))-SEARCH("]",CELL("filename")))

Will take just the tab name.

Hope that helps


--
David Billigmeier


"SWalton" wrote:

How do I get a cell to reflect the value which lies in a sheet's tab (the
sheet name) without having to manually type it in

  #3   Report Post  
SWalton
 
Posts: n/a
Default

David, thanks so much for helping but I don't understand your answer
(probably because I am not an advanced user). Some more details or
explanation will help. thanks again!

"David Billigmeier" wrote:

Hello -
CELL("filename") will output the full path of the sheet and tab you are in
and:

=RIGHT(CELL("filename"),LEN(CELL("filename"))-SEARCH("]",CELL("filename")))

Will take just the tab name.

Hope that helps


--
David Billigmeier


"SWalton" wrote:

How do I get a cell to reflect the value which lies in a sheet's tab (the
sheet name) without having to manually type it in

  #4   Report Post  
David Billigmeier
 
Posts: n/a
Default

Just copy and paste the following code (verbatim) into any cell on your
worksheet:

=RIGHT(CELL("filename"),LEN(CELL("filename"))-SEARCH("]",CELL("filename")))

It will copy a text string corresponding to the tab name of the tab you are
working in. Note, however, that the spreadsheet you are working in has to be
saved or else it will output #VALUE!

Better?


--
David Billigmeier


"SWalton" wrote:

David, thanks so much for helping but I don't understand your answer
(probably because I am not an advanced user). Some more details or
explanation will help. thanks again!

"David Billigmeier" wrote:

Hello -
CELL("filename") will output the full path of the sheet and tab you are in
and:

=RIGHT(CELL("filename"),LEN(CELL("filename"))-SEARCH("]",CELL("filename")))

Will take just the tab name.

Hope that helps


--
David Billigmeier


"SWalton" wrote:

How do I get a cell to reflect the value which lies in a sheet's tab (the
sheet name) without having to manually type it in

  #5   Report Post  
SWalton
 
Posts: n/a
Default

Dude, you are my hero! That is just the absolute coolest thing! The
problem, as your surmised, is that the document was not saved. I have a
deep-rooted desire to understand how this works so that in the future, my
increased understanding will allow me to understand my own questions. I am
studying the help descriptions which become available while clicking on the
different parts of the formula in the formula bar and it provides a great
deal of info but I don't understand how it knows to refer to the sheet tab as
it's source? If you have time and are so inclined, could you explain? And,
how do you know all of this anyway? are you a programmer?

thanks again for your help!

"David Billigmeier" wrote:

Just copy and paste the following code (verbatim) into any cell on your
worksheet:

=RIGHT(CELL("filename"),LEN(CELL("filename"))-SEARCH("]",CELL("filename")))

It will copy a text string corresponding to the tab name of the tab you are
working in. Note, however, that the spreadsheet you are working in has to be
saved or else it will output #VALUE!

Better?


--
David Billigmeier


"SWalton" wrote:

David, thanks so much for helping but I don't understand your answer
(probably because I am not an advanced user). Some more details or
explanation will help. thanks again!

"David Billigmeier" wrote:

Hello -
CELL("filename") will output the full path of the sheet and tab you are in
and:

=RIGHT(CELL("filename"),LEN(CELL("filename"))-SEARCH("]",CELL("filename")))

Will take just the tab name.

Hope that helps


--
David Billigmeier


"SWalton" wrote:

How do I get a cell to reflect the value which lies in a sheet's tab (the
sheet name) without having to manually type it in



  #6   Report Post  
SWalton
 
Posts: n/a
Default

No need to explain how it worked, I figured it out. I still wanna know how
you knew that though! Thanks!

"David Billigmeier" wrote:

Just copy and paste the following code (verbatim) into any cell on your
worksheet:

=RIGHT(CELL("filename"),LEN(CELL("filename"))-SEARCH("]",CELL("filename")))

It will copy a text string corresponding to the tab name of the tab you are
working in. Note, however, that the spreadsheet you are working in has to be
saved or else it will output #VALUE!

Better?


--
David Billigmeier


"SWalton" wrote:

David, thanks so much for helping but I don't understand your answer
(probably because I am not an advanced user). Some more details or
explanation will help. thanks again!

"David Billigmeier" wrote:

Hello -
CELL("filename") will output the full path of the sheet and tab you are in
and:

=RIGHT(CELL("filename"),LEN(CELL("filename"))-SEARCH("]",CELL("filename")))

Will take just the tab name.

Hope that helps


--
David Billigmeier


"SWalton" wrote:

How do I get a cell to reflect the value which lies in a sheet's tab (the
sheet name) without having to manually type it in

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dilano
 
Posts: n/a
Default Excel: Sheet name from tab automically into a cell

Dear David
I was looking for the smae solution and I came cross your reply to the gent.
I have used this and it works, but If I have the same cell position in
differnts Active Sheet in one file, all will refer to one Active sheet only,
Let say I past it is a cell in TAB "101" and TAB "102" and so one, when I
check all cells refer to #101 instead of #102, #103 as Active Sheet order, Is
it what it supose to do.

Thank you

"David Billigmeier" wrote:

Hello -
CELL("filename") will output the full path of the sheet and tab you are in
and:

=RIGHT(CELL("filename"),LEN(CELL("filename"))-SEARCH("]",CELL("filename")))

Will take just the tab name.

Hope that helps


--
David Billigmeier


"SWalton" wrote:

How do I get a cell to reflect the value which lies in a sheet's tab (the
sheet name) without having to manually type it in

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dilano
 
Posts: n/a
Default Excel: Sheet name from tab automically into a cell

sorru David,
This will do
=MID(CELL("Filename",A1),FIND("]",CELL("Filename",A1))+1,255)

I found it some where,

Thank you

"Dilano" wrote:

Dear David
I was looking for the smae solution and I came cross your reply to the gent.
I have used this and it works, but If I have the same cell position in
differnts Active Sheet in one file, all will refer to one Active sheet only,
Let say I past it is a cell in TAB "101" and TAB "102" and so one, when I
check all cells refer to #101 instead of #102, #103 as Active Sheet order, Is
it what it supose to do.

Thank you

"David Billigmeier" wrote:

Hello -
CELL("filename") will output the full path of the sheet and tab you are in
and:

=RIGHT(CELL("filename"),LEN(CELL("filename"))-SEARCH("]",CELL("filename")))

Will take just the tab name.

Hope that helps


--
David Billigmeier


"SWalton" wrote:

How do I get a cell to reflect the value which lies in a sheet's tab (the
sheet name) without having to manually type it in

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Excel 2002 "Protect Sheet", but Allow "Insert Comments"? VP Safe Excel Worksheet Functions 2 July 5th 05 07:18 PM
Excel sheet not loading BurhanM Excel Discussion (Misc queries) 1 June 28th 05 11:48 AM
EXCEL FORMAT PROBLEM WHEN SENDING EXCEL SHEET AS MESSAGE BODY IN . P.S.Sodha Excel Discussion (Misc queries) 0 April 2nd 05 01:53 PM
How do you set up a data excel sheet that links to a presentation. Moxy247 Excel Worksheet Functions 0 January 31st 05 06:18 PM


All times are GMT +1. The time now is 04:57 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"