yytsunamiyy
Well-known Member
- Joined
- Mar 17, 2008
- Messages
- 963
This thread has trigegred a question regarding INDIRECT / OFFSET with me.
The OP is summing a non-continous range:
I was wondering if it is possible to build an array for summing that non-continous range without having to repeat '[Master rota Term 6 2011.xls]Shift Requirements'! for each cell in the range.
I was thinking along the lines of
or alternativly:
Neither of which i got to work - not even as an array (CSE) formula. Why not and is there a way to do this?
The OP is summing a non-continous range:
Code:
'[Master rota Term 6 2011.xls]Shift Requirements'!$C$5+'[Master rota Term 6 2011.xls]Shift Requirements'!$C$8+'[Master rota Term 6 2011.xls]Shift Requirements'!$C$11+'[Master rota Term 6 2011.xls]Shift Requirements'!$C$14+'[Master rota Term 6 2011.xls]Shift Requirements'!$C$17+'[Master rota Term 6 2011.xls]Shift Requirements'!$C$20+'[Master rota Term 6 2011.xls]Shift Requirements'!$C$23+'[Master rota Term 6 2011.xls]Shift Requirements'!$C$29:$C$30
I was wondering if it is possible to build an array for summing that non-continous range without having to repeat '[Master rota Term 6 2011.xls]Shift Requirements'! for each cell in the range.
I was thinking along the lines of
Code:
=SUM (or sumprodukt) (INDIRECT("'[Master rota Term 6 2011.xls]Shift Requirements'!$C$"&{ROW(A5),ROW(A8),ROW(A11),ROW(A14),ROW(A17),ROW(A20),ROW(A23),ROW(A29),ROW(A30)})
or alternativly:
Code:
=SUM (or sumprodukt) (OFFSET('[Master rota Term 6 2011.xls]Shift Requirements'!$C$5,{0,3,6,9,12,15,18,24,25},{0,0,0,0,0,0,0,0,0},{1,1,1,1,1,1,1,1,1},{1,1,1,1,1,1,1,1,1})
Neither of which i got to work - not even as an array (CSE) formula. Why not and is there a way to do this?