Im trying to make a dynamic named range that gives me a dynamic range whithin a dynamic range and its giving me a headache i cant find any examples out there of trying to do it twice. Help me before my head explodes!
Define the following one by one by means of
Formulas | Name Manager (Excel 2003 and older systems: Insert | Name | Define).
The data sample you posted is assumed to be in A:C on Sheet1, starting at row 2
with headers in row 1.
BigNum:
=9.99999999999999E+307
Lrec:
=MATCH(BigNum,Sheet1!$B:$B)
Family:
=Sheet1!$A$2:INDEX(Sheet1!$A:$A,Lrec)
Actuals:
=Sheet1!$B$2:INDEX(Sheet1!$B:$B,Lrec)
Mweek:
=Sheet1!$C$2:INDEX(Sheet1!$C:$C,Lrec)
Data:
=Sheet1!$A$2:INDEX(Sheet1!$C:$C,Lrec)
SubRange:
=OFFSET(INDEX(Family,MATCH(1,IF(Family="Name2",IF(Mweek=3,1)),0)),0,0,SUM(IF(Family="Name2",IF(Mweek=3,1))),COLUMNS(Data))
SubRange defines precise that subarea your criteria delimits... If needed, COLUMNS(Data) can be replaced with 3, the width of the data area.
=SUM(INDEX(SubRange,0,2))
would some Actuals (column 2 of the range), yielding a total of 404.