Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Reed
 
Posts: n/a
Default Is there a formula that will place the sheet name in a cell?

Is there a formula that will place the sheet name in a cell?

Thanks,

Reed


  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Reed,

Take a look at http://www.xldynamic.com/source/xld.xlFAQ0002.html

--
HTH

Bob Phillips

"Reed" wrote in message
...
Is there a formula that will place the sheet name in a cell?

Thanks,

Reed




  #3   Report Post  
Chip Pearson
 
Posts: n/a
Default

Reed,

Use the following formula:
=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,99)

The file must have been saved once in order to work. Do not
replace "filename" with the file name. Use the formula exactly as
written.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Reed" wrote in message
...
Is there a formula that will place the sheet name in a cell?

Thanks,

Reed




  #4   Report Post  
Harald Staff
 
Posts: n/a
Default

Hi Reed

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

It's a little awkward, and it needs the file to be saved to work.

HTH. Best wishes Harald


"Reed" skrev i melding
...
Is there a formula that will place the sheet name in a cell?

Thanks,

Reed




  #5   Report Post  
lightninbug
 
Posts: n/a
Default



Hello All,
Maybe I am missing something here but I am required to do this on all my
work on the job. Select the cell where you want the file name to appear then
type the formula -
=CELL("filename")
then hit enter.
Like I said maybe I missed a bit if information, wherein this longer more
complicated formula must be used.


  #6   Report Post  
Bob Phillips
 
Posts: n/a
Default

Two problems..

1, it returns the whole path, file and sheet name, and the OP asked just for
the sheet name

2. you haven't anchored the formula to the sheet. Try this. Put that formula
in A1. Then go to another sheet, change the sheet name, go back to your
original sheet. Take a look at A1.

--
HTH

Bob Phillips

"lightninbug" wrote in message
...


Hello All,
Maybe I am missing something here but I am required to do this on all

my
work on the job. Select the cell where you want the file name to appear

then
type the formula -
=CELL("filename")
then hit enter.
Like I said maybe I missed a bit if information, wherein this longer more
complicated formula must be used.



  #7   Report Post  
lightninbug
 
Posts: n/a
Default


Thanks Bob - I knew there had to be a reason for the longer formula! I am
glad I asked : )
  #8   Report Post  
Gord Dibben
 
Posts: n/a
Default

bug

Your formula returns the entire path,filename and sheetname.

OP wanted the sheetname only.

Also note what happens using your formula when you switch sheets then come
back to the original sheet.

Visit Bob's site for more info.

http://www.xldynamic.com/source/xld.xlFAQ0002.html


Gord Dibben Excel MVP

On Wed, 19 Jan 2005 16:59:03 -0800, "lightninbug"
wrote:



Hello All,
Maybe I am missing something here but I am required to do this on all my
work on the job. Select the cell where you want the file name to appear then
type the formula -
=CELL("filename")
then hit enter.
Like I said maybe I missed a bit if information, wherein this longer more
complicated formula must be used.


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
Need formula for sheet & cell reference MPH Excel Worksheet Functions 0 January 16th 05 03:39 PM
inserting data from a row to a cell, when the row number is specified by a formula in a cell [email protected] New Users to Excel 2 January 6th 05 07:18 AM
looking for a formula Amanda Excel Worksheet Functions 5 January 5th 05 07:37 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM
what is the formula for changing the same cell on different sheet. scotty Excel Worksheet Functions 4 November 17th 04 09:51 PM


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

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

About Us

"It's about Microsoft Excel"