How can get values from another cell relative to current?

E

ExcelMania

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.
 
C

Corey

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....
 

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