Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Folks,
Pl help me with this simple issue-- For a range of cells in a worksheet- I need to take values from other cells on the same worksheet but located at a known relative position. eg: Value in a cell = value in the cell 4 columns to it's right. I tried =(COLUMN()-4)ROW() but got an error. Seems straightforward but how can i do it? I need the relative position as this has to be done on several parts of the worksheet and a formula with variables would be easier. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
use the Offset syntax.
Range("A1").Offset(0,4) Offset(0,4) = 4 Columns tot he Right Offset(4,0) = 4 Rows Down Offset(0,-4)=4 Columns to the Left Offset(-4,0)=4 Rows Up Offset(4,4)=4 Rows Down AND 4 Columns to the Right etc .... Corey.... "ExcelMania" wrote in message ... Folks, Pl help me with this simple issue-- For a range of cells in a worksheet- I need to take values from other cells on the same worksheet but located at a known relative position. eg: Value in a cell = value in the cell 4 columns to it's right. I tried =(COLUMN()-4)ROW() but got an error. Seems straightforward but how can i do it? I need the relative position as this has to be done on several parts of the worksheet and a formula with variables would be easier. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Corey-I will try this out and let you know.
"Corey" wrote: use the Offset syntax. Range("A1").Offset(0,4) Offset(0,4) = 4 Columns tot he Right Offset(4,0) = 4 Rows Down Offset(0,-4)=4 Columns to the Left Offset(-4,0)=4 Rows Up Offset(4,4)=4 Rows Down AND 4 Columns to the Right etc .... Corey.... "ExcelMania" wrote in message ... Folks, Pl help me with this simple issue-- For a range of cells in a worksheet- I need to take values from other cells on the same worksheet but located at a known relative position. eg: Value in a cell = value in the cell 4 columns to it's right. I tried =(COLUMN()-4)ROW() but got an error. Seems straightforward but how can i do it? I need the relative position as this has to be done on several parts of the worksheet and a formula with variables would be easier. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Relative/Current Cell Reference in Hyperlinks | Excel Discussion (Misc queries) | |||
Adding values stored at relative cell references | Excel Programming | |||
Relative reference to current cell? | Excel Programming | |||
Macro to run relative to current selected cell | Excel Discussion (Misc queries) | |||
Replacing Linked Cell Values w/ Current Values | Excel Worksheet Functions |