Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default information functions

Hi,

I want to get a worksheet name into a cell in the worksheet, such as
=cell("filename")
, but I want to keep the correct name for the correct worksheet.

If the above formula is used, every time the worksheet is recalculated the
value of the cell changes depending on the name of the worksheet that you are
in.

So, if the formula is in sheet aaa and you are working in sheet bbb and
recalculate, when you return to sheet aaa the name in the cell will be bbb
rather than aaa.

If you can help please do.

Thanks

--
Demetri
Johannesburg
South Africa
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default information functions

=CELL("filename",A1)

--
Gary''s Student - gsnu200717


"Demetri" wrote:

Hi,

I want to get a worksheet name into a cell in the worksheet, such as
=cell("filename")
, but I want to keep the correct name for the correct worksheet.

If the above formula is used, every time the worksheet is recalculated the
value of the cell changes depending on the name of the worksheet that you are
in.

So, if the formula is in sheet aaa and you are working in sheet bbb and
recalculate, when you return to sheet aaa the name in the cell will be bbb
rather than aaa.

If you can help please do.

Thanks

--
Demetri
Johannesburg
South Africa

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default information functions

Try this:

If you include the second argument that will keep the formula from doing
what you describe:

=CELL("filename",A1)

The cell reference can be *any* cell reference.

Try this version to get *only* the sheet name:

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

Biff

You can put the formula in any cell. The cell reference can be any cell
reference.
"Demetri" wrote in message
...
Hi,

I want to get a worksheet name into a cell in the worksheet, such as
=cell("filename")
, but I want to keep the correct name for the correct worksheet.

If the above formula is used, every time the worksheet is recalculated the
value of the cell changes depending on the name of the worksheet that you
are
in.

So, if the formula is in sheet aaa and you are working in sheet bbb and
recalculate, when you return to sheet aaa the name in the cell will be bbb
rather than aaa.

If you can help please do.

Thanks

--
Demetri
Johannesburg
South Africa



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default information functions

If you use =cell("filename",A1) then it should refer to the current
worksheet, rather than (in the absence of the second argument) the last cell
changed.
--
David Biddulph

"Demetri" wrote in message
...
Hi,

I want to get a worksheet name into a cell in the worksheet, such as
=cell("filename")
, but I want to keep the correct name for the correct worksheet.

If the above formula is used, every time the worksheet is recalculated the
value of the cell changes depending on the name of the worksheet that you
are
in.

So, if the formula is in sheet aaa and you are working in sheet bbb and
recalculate, when you return to sheet aaa the name in the cell will be bbb
rather than aaa.

If you can help please do.

Thanks

--
Demetri
Johannesburg
South Africa



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
Functions for manipulating and filtering address information devdas777 Excel Discussion (Misc queries) 0 November 15th 06 09:33 PM
efficiency: database functions vs. math functions vs. array formula nickname Excel Discussion (Misc queries) 2 July 14th 06 04:26 AM
Information retrieval functions Jasen Excel Worksheet Functions 5 February 27th 06 04:57 AM
INFORMATION ON FUNCTIONS IN EXCEL (EX. "IF", VALUE LOOKUP) skye1971 Excel Worksheet Functions 1 February 1st 06 07:27 PM
Nesting functions in the functions dialog box cs170a Excel Worksheet Functions 0 June 10th 05 10:36 PM


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