View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips Bob Phillips is offline
external usenet poster
 
Posts: 1,726
Default Indirect worksheet function

Well it is dynamic, and it does what you want, so I guess it is 'best'. You
could use names to hold the values, but is that better, probably not.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Howard Kaikow" wrote in message
...
The following is a hardcoded formula in a worksheet, call it the
CurrentSheet..

='210208345'!FSPTX/'210208345'!CurrentValue

Where '210208345' is the name of a worksheet, and FSPTX and CurrentValue
are names defined in thgat worksheet.

I can get the same reult using

=INDIRECT("'210208345'!FSPTX")/INDIRECT("'210208345'!CurrentValue")

But I'd rather not have to hardcode the 210208345, and FSPTX, as they are
values in cells in the CurrentSheet.
Is the following "best'?

=INDIRECT("'"&D$2&"'!"&B3)/INDIRECT("'"&D$2&"'!CurrentValue")

So B3 would change to B4 in the cell below.
--
http://www.standards.com/; See Howard Kaikow's web site.