How to make the coordinates of cell variable even if it is in quotes?

时间:2015-06-25 19:08:20

标签: excel excel-vba d3.js vba

The formula im using is =INDIRECT($A$1&"!D1"), which is just giving me data from a sheet whose name is is A1!. However, I don't just want whats in D1, i want D2,D3,D4..etc. But when i drag the box down, it the number after the D stays constant. Is there a way i can make it variable? Thanks

1 个答案:

答案 0 :(得分:0)

选择一个单元格并输入:

=INDIRECT($A$1&"!D" & ROWS($1:1))

然后复制。