Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Andreas Håkansson
 
Posts: n/a
Default Use worksheet name

Hi

Is it possible to use the worksheet name in a fomula? I want it to be
retrieved automatically so I can do

=VLOOKUP(<<automatically get worksheet name;A1:A10;2)

and similar other operations. I do not want to manually enter the name since
I would like to be able to copy this formula to alot of
worksheets and I'm trying to reduce the time it takes to copy such formulas
around.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Martin
 
Posts: n/a
Default Use worksheet name

Would CELL("Address") help or do you just want the active sheet to be
returned? If the latter, there doesn't seem to be an Excel function so
here's a user defined function (just paste it into a new module of your
workbook):

Function thisSheet()
thisSheet = ActiveCell.Parent.Name
End Function

"Andreas HÃ¥kansson" wrote:

Hi

Is it possible to use the worksheet name in a fomula? I want it to be
retrieved automatically so I can do

=VLOOKUP(<<automatically get worksheet name;A1:A10;2)

and similar other operations. I do not want to manually enter the name since
I would like to be able to copy this formula to alot of
worksheets and I'm trying to reduce the time it takes to copy such formulas
around.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary''s Student
 
Posts: n/a
Default Use worksheet name

Use CELL():


=MID(CELL("Filename",A1),FIND("]",CELL("Filename",A1))+1,255)

will return only the worksheet name (a part of the full path name)
--
Gary''s Student


"Martin" wrote:

Would CELL("Address") help or do you just want the active sheet to be
returned? If the latter, there doesn't seem to be an Excel function so
here's a user defined function (just paste it into a new module of your
workbook):

Function thisSheet()
thisSheet = ActiveCell.Parent.Name
End Function

"Andreas HÃ¥kansson" wrote:

Hi

Is it possible to use the worksheet name in a fomula? I want it to be
retrieved automatically so I can do

=VLOOKUP(<<automatically get worksheet name;A1:A10;2)

and similar other operations. I do not want to manually enter the name since
I would like to be able to copy this formula to alot of
worksheets and I'm trying to reduce the time it takes to copy such formulas
around.



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
Protect Workbook vs Worksheet?? Dan B Excel Worksheet Functions 3 November 7th 05 09:02 PM
Inserting Filtered RC cell information into other worksheets Dennis Excel Discussion (Misc queries) 10 July 30th 05 01:54 AM
Search/Match between 2 x separate Worksheets and populate result in third worksheet Alan Bartley Excel Discussion (Misc queries) 1 April 11th 05 05:21 AM
Weekly Transaction Processing Ralph Howarth Excel Worksheet Functions 4 January 19th 05 05:37 AM
copyright and worksheet protection dow Excel Discussion (Misc queries) 2 January 3rd 05 03:07 PM


All times are GMT +1. The time now is 01:37 AM.

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"