Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

function which takes address() and gives value

I want to make a cell equal to the cell above it.

When I write

=address(row()-1;column())

It just writes the name of the cell above(for example for B2 it writes $B$1)

Is there a function which inputs the address and puts the value?

like image 902
a-z Avatar asked Jul 09 '12 19:07

a-z


1 Answers

Try using the OFFSET function to offset the cell by -1 row. For example you can paste the below formula into cell A2 and it will return the value of A1:

=OFFSET(A2,-1,0)

If, however, you really want to keep your present address method, put it inside of the INDIRECT function like this:

=INDIRECT(ADDRESS(ROW()-1,COLUMN()))
like image 157
danielpiestrak Avatar answered Sep 24 '22 16:09

danielpiestrak