#1   Report Post  
Posted to microsoft.public.excel.misc
Ken Ken is offline
external usenet poster
 
Posts: 590
Default Variable Cell Value

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?
--
Ken
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Variable Cell Value

=INDIRECT("A"&N1+3)

Volatile & non-volatile functions are discussed at
http://msdn2.microsoft.com/en-us/library/aa730921.aspx, which is aimed at
Excel 2007 but much applies equally to earlier versions.
--
David Biddulph

"Ken" wrote in message
...
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?
--
Ken



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Variable Cell Value

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

"Ken" wrote:

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?
--
Ken

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Variable Cell Value

Ken,

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

="A"&n+3

Would return A7

Mike

"Ken" wrote:

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?
--
Ken

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Variable Cell Value

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

"Mike H" wrote in message
...
Ken,

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

="A"&n+3

Would return A7

Mike


"Ken" wrote:

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?
--
Ken






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
Sum cells based on a row variable and seperate column variable CheeseHeadTransplant Excel Worksheet Functions 10 September 23rd 05 06:59 PM
Adding the same cell in different worksheets. Can that cell be variable? ro Excel Worksheet Functions 0 August 18th 05 06:31 AM
why is it saying sheetcnt is "variable not defined" how to do a global variable to share over multiple functions in vba for excel? Daniel Excel Worksheet Functions 1 July 9th 05 03:05 AM
Linking a cell to another workbook cell based on a variable name Brian Excel Discussion (Misc queries) 6 June 1st 05 11:54 PM
set value of variable from cell Robert Excel Discussion (Misc queries) 0 February 25th 05 09:31 PM


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