Row references

J

jeffrey

I have the following columns.

A B C D
1 1 6 D1
2 7 23 D2
3 24 31 D3
4 32 38 D4
5 39 44 D5
etc.

Columns B and C refer to the row numbers on another worksheet.
D1-D5 are array formulas. I want D1 = FUNCTION(sheet1!A1:A6). D2 =
FUNCTION(sheet1!A7:A23). D3=FUNCTION(sheet1!A24:A31). You get the
idea. Function could be sum, average, whatever that has an array
reference.

How do you do this? I hope there is an easy way of incorporating
this. Thanks for your help,

Jeff
 
R

Ron Rosenfeld

I have the following columns.

A B C D
1 1 6 D1
2 7 23 D2
3 24 31 D3
4 32 38 D4
5 39 44 D5
etc.

Columns B and C refer to the row numbers on another worksheet.
D1-D5 are array formulas. I want D1 = FUNCTION(sheet1!A1:A6). D2 =
FUNCTION(sheet1!A7:A23). D3=FUNCTION(sheet1!A24:A31). You get the
idea. Function could be sum, average, whatever that has an array
reference.

How do you do this? I hope there is an easy way of incorporating
this. Thanks for your help,

Jeff


=SUM(INDIRECT(ADDRESS(B1,1,,,"sheet1")&":"&ADDRESS(C1,1)))
 

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