Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Bene
 
Posts: n/a
Default Is there a function that returns just the worksheet name

I'd like to use the worksheet name to automatically adjust calculations in
the worksheet.

I know that it's possible to return the full file name using
CELL("filename") and feel sure that there must be a similar option for just
the worksheet name.

Can anyone help?

Many thanks.
  #2   Report Post  
Nicole L.
 
Posts: n/a
Default

If you need a cell to be populated with the worksheet name, you can go to
Insert - Hyperlink and choose the worksheet in your current workbook, but
make sure you modify the Text to be displayed in they hyperlink to say what
you want.
Maybe that could work for your purposes?

The only other thing I know of, with automatically inserting worksheet names
is inserting the [Tab] name.
For example, when I want to input the filename and the tab name (worksheet
name) in the footer of a spreadsheet, when you go to the Footer page, the
Insert TAB Name is the last button in the row of choices, right next to the
Filename button. The icon looks like a spreadsheet with tabs on the bottom.

Best of luck!
"Bene" wrote:

I'd like to use the worksheet name to automatically adjust calculations in
the worksheet.

I know that it's possible to return the full file name using
CELL("filename") and feel sure that there must be a similar option for just
the worksheet name.

Can anyone help?

Many thanks.

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

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

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Bene" wrote in message
...
I'd like to use the worksheet name to automatically adjust calculations in
the worksheet.

I know that it's possible to return the full file name using
CELL("filename") and feel sure that there must be a similar option for

just
the worksheet name.

Can anyone help?

Many thanks.



  #4   Report Post  
JE McGimpsey
 
Posts: n/a
Default

See

http://www.mcgimpsey.com/excel/formu..._function.html

In article ,
"Bene" wrote:

I'd like to use the worksheet name to automatically adjust calculations in
the worksheet.

I know that it's possible to return the full file name using
CELL("filename") and feel sure that there must be a similar option for just
the worksheet name.

Can anyone help?

Many thanks.

  #5   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

The workbook has to be saved

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

you need to use a cell reference in it, any cell refernece is OK


Regards,

Peo Sjoblom

"Bene" wrote:

I'd like to use the worksheet name to automatically adjust calculations in
the worksheet.

I know that it's possible to return the full file name using
CELL("filename") and feel sure that there must be a similar option for just
the worksheet name.

Can anyone help?

Many thanks.



  #6   Report Post  
Bernard Liengme
 
Posts: n/a
Default

Try
=MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,FIND("]",CELL("filename",A1))-FIND("[",CELL("filename",A1))-1)
OR
=MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,FIND(".",CELL("filename", A1))-FIND("[",CELL("filename",A1))-1)

The second removes the XLS extension
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Bene" wrote in message
...
I'd like to use the worksheet name to automatically adjust calculations in
the worksheet.

I know that it's possible to return the full file name using
CELL("filename") and feel sure that there must be a similar option for
just
the worksheet name.

Can anyone help?

Many thanks.



  #7   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

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

Bene wrote:
I'd like to use the worksheet name to automatically adjust calculations in
the worksheet.

I know that it's possible to return the full file name using
CELL("filename") and feel sure that there must be a similar option for just
the worksheet name.

Can anyone help?

Many thanks.

  #8   Report Post  
Matt D Francis
 
Posts: n/a
Default

Brilliant - sorry for being an interloper but I've been needing this function
for ages!

Matt

"Aladin Akyurek" wrote:

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

Bene wrote:
I'd like to use the worksheet name to automatically adjust calculations in
the worksheet.

I know that it's possible to return the full file name using
CELL("filename") and feel sure that there must be a similar option for just
the worksheet name.

Can anyone help?

Many thanks.


  #9   Report Post  
Bene
 
Posts: n/a
Default

Wow!

I've never used this sort of discussion group before. I spent hours trying
to work it out, when I could have just posted earlier and got all these
helpful replies really quickly. Thank you everyone!

I shall definitely be back next time I have a problem!

"Bene" wrote:

I'd like to use the worksheet name to automatically adjust calculations in
the worksheet.

I know that it's possible to return the full file name using
CELL("filename") and feel sure that there must be a similar option for just
the worksheet name.

Can anyone help?

Many thanks.

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
Incorrect result using NPER worksheet function KG Old Wolf Excel Worksheet Functions 7 November 3rd 08 02:49 AM
The Help on the Excel Edate worksheet function contains an error:. Guido Excel Worksheet Functions 1 January 20th 05 01:42 PM
Excel: Add "dBm" and "dBW" to CONVERT worksheet function Power u. Sapporo Excel Worksheet Functions 3 December 17th 04 02:33 PM
how do you do a sumif function on more than one worksheet? BMWPRO Excel Worksheet Functions 1 December 6th 04 08:26 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 07:18 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"