Variable Cell Value

K

Ken

What formula can I use to express the value of cell A(n+3) where n is a
variable. For example, if n = 4 then the cell I'm looking for is "A7". Also,
in these discussions what exactly does a "volatile" solution mean vs a
"nonvolatile" solution?
 
M

Mike H

Ken

Insert|name|define
Type n in the top box
in the 'refers to' box enter a cell reference (Say A1) and Click OK
enter the variable value in A1

You can now refer to n in your formula anf change the vlaue of n
A1 could also be a formula itself.

Volatile/Non Volatile functions are as the name implies:-
Now() is volatile
Pi() isn't
Mike
 
M

Mike H

Ken,

Missed the last bit. With A1 set as 4 the formula

="A"&n+3

Would return A7

Mike
 
D

David Biddulph

But if the OP wants "the value" of cell A7, then it needs the INDIRECT
function.
 
Top