Calculating a cell address

J

Jeff Hooper

I need to refer to the contents of a cell, the address of which is to be
calculated from data within the worksheet. For example:

A B C D E
1 4 x
2
3
4
5
6 22

I want the contents of cell E1 to be equal to the contents of the cell in
column A and the row determined by the contents of cell D1+2 (ie E1 = 22,
the contents of cell A,6). Any ideas?

Thanks
 
L

Leo Heuser

Jeff

Here are two ways to do it:

=OFFSET(A1,D1+1,0)
(+1 because OFFSET is zero-based)

or

=INDIRECT("A"&D1+2)
 

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