can it be done in such a way that the formula gives the results in the cell in which it is entered without the use of helper columns? I am running out of visible space. Additionally i forgot to mention that the reference range of cells are on sheet 1 not on the same sheet.
sorry for the error.
thanks and regards,
deuce.
Just two helper cells makes the calculation more efficient in case you need to copy the formula down...
Define
BigNum by means of Insert | Name | Define or Formulas | Name Manager as referring to:
=9.99999999999999E+307
It's:
Either...
C10:
=MATCH(BigNum,Sheet1!$E:$E)
C11:
=MIN(ROW(Sheet1!$E$27)+7200,$C$10)
Then:
=SUMPRODUCT(
--(Sheet1!$E$27:INDEX(Sheet1!$E:$E,$C$11)>=C12),
--(Sheet1!$F$27:INDEX(Sheet1!$F:$F,$C$11)<=C12))
Or...
=SUMPRODUCT(
--(Sheet1!$E$27:INDEX(Sheet1!$E:$E,MIN(ROW(Sheet1!$E$27)+7200,MATCH(BigNum,Sheet1!$E:$E))))>=C12),
--(Sheet1!$F$27:INDEX(Sheet1!$F:$F,MIN(ROW(Sheet1!$E$27)+7200,MATCH(BigNum,Sheet1!$E:$E))))>=C12))
Or, even better...
Define also Lrow as referring to:
=MATCH(BigNum,Sheet1!$E:$E)
and invoke:
=SUMPRODUCT(
--(Sheet1!$E$27:INDEX(Sheet1!$E:$E,MIN(ROW(Sheet1!$E$27)+7200,Lrow)))>=C12),
--(Sheet1!$F$27:INDEX(Sheet1!$F:$F,MIN(ROW(Sheet1!$F$27)+7200,Lrow)))>=C12))