INDIRECT and Defined Names

G

Guest

It appears that the INDIRECT function is inconsistent with a relatively
defined name.
I’ve defined “Right†as referring to =!B1 while A1 was active. As expected,
=Right, when entered directly into a cell, returns the value of offset one
column. However, when I try INDIRECT (“Rightâ€) the value of B1 is returned,
regardless of what cell it’s being entered. This is inconsistent with the
INDIRECT behavior, which is evaluating text to reference, because “Rightâ€
represents a reference.
Any insight?
 
C

Charles Williams

To achieve a relative reference with
INDIRECT you have to use R1C1 notation like this
=SUM(INDIRECT("R[-12]C",FALSE),INDIRECT("R[-12]C[1]",FALSE))


regards
Charles
______________________
Decision Models
FastExcel 2.3 now available
Name Manager 4.0 now available
www.DecisionModels.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top