Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Indirect versus Offset

I have a portion of a sheet set up as a table for user input. The top
row is fixed header information, but for the lower rows the user may
drag the table entries up and down to other rows of the table. I want
to define a name that always points to, for example, Cell D4
regardless of whether the user has done any drag, cut and paste, etc
with the table entries.

I can define a name, "CellD4" for example, with a RefersTo of either
=Indirect("Sheet1!$D$4")
or I can use
=Offset(Sheet1!$A$1, 3, 3)

Are there any performance issues or other considerations as to why I
should choose one method over the other? In one case I have several
dozen of these names that are used throughout the workbook. In
another case I want to use a similar "fixed position" reference in
several hundred (hidden) formulas on the same sheet, but not as
defined names.

Thanks,
Dan
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default Indirect versus Offset

Well, both INDIRECT and OFFSET are volatile, so, everytime your sheet is
calculated, those names will get calculated as well. One option is to use
INDEX, like:

=INDEX(Sheet1!$1:$65536,4,4)

--
Regards,

Juan Pablo González

"Dan" wrote in message
om...
I have a portion of a sheet set up as a table for user input. The top
row is fixed header information, but for the lower rows the user may
drag the table entries up and down to other rows of the table. I want
to define a name that always points to, for example, Cell D4
regardless of whether the user has done any drag, cut and paste, etc
with the table entries.

I can define a name, "CellD4" for example, with a RefersTo of either
=Indirect("Sheet1!$D$4")
or I can use
=Offset(Sheet1!$A$1, 3, 3)

Are there any performance issues or other considerations as to why I
should choose one method over the other? In one case I have several
dozen of these names that are used throughout the workbook. In
another case I want to use a similar "fixed position" reference in
several hundred (hidden) formulas on the same sheet, but not as
defined names.

Thanks,
Dan



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default Indirect versus Offset

Never mind the above... the INDEX() function calling all cells makes it
volatile, hence, similar to its INDIRECT / OFFSET competitors !

--
Regards,

Juan Pablo González

"Juan Pablo González" wrote in message
...
Well, both INDIRECT and OFFSET are volatile, so, everytime your sheet is
calculated, those names will get calculated as well. One option is to use
INDEX, like:

=INDEX(Sheet1!$1:$65536,4,4)

--
Regards,

Juan Pablo González

"Dan" wrote in message
om...
I have a portion of a sheet set up as a table for user input. The top
row is fixed header information, but for the lower rows the user may
drag the table entries up and down to other rows of the table. I want
to define a name that always points to, for example, Cell D4
regardless of whether the user has done any drag, cut and paste, etc
with the table entries.

I can define a name, "CellD4" for example, with a RefersTo of either
=Indirect("Sheet1!$D$4")
or I can use
=Offset(Sheet1!$A$1, 3, 3)

Are there any performance issues or other considerations as to why I
should choose one method over the other? In one case I have several
dozen of these names that are used throughout the workbook. In
another case I want to use a similar "fixed position" reference in
several hundred (hidden) formulas on the same sheet, but not as
defined names.

Thanks,
Dan





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
OFFSET and INDIRECT AirgasRob Excel Discussion (Misc queries) 1 June 16th 08 09:01 PM
Offset/Indirect Help [email protected] Excel Worksheet Functions 1 December 10th 07 07:04 PM
Offset,Indirect Please help [email protected] Excel Discussion (Misc queries) 1 August 21st 06 10:54 PM
INDIRECT, OFFSET et. al. Wazooli Excel Worksheet Functions 2 March 24th 05 12:23 AM
offset and indirect function RICHARD ANNOR Excel Worksheet Functions 0 March 10th 05 11:49 PM


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