I'm running out of the door so have not looked at your file but in terms of Array / SUMPRODUCT functions - in general terms:
You can not use AND/OR functions
ANDs are performed by means of *
ORs are performed by means of +
In your example - an AND based test would look like:
=INDEX(...,SMALL(IF((test1)*(test2),ROW(...)),ROWS(...)))
alternatively - you can use embedded IFs
=INDEX(...,SMALL(IF(test1,IF(test2,ROW(...))),ROWS(...)))
the latter is arguably more efficient but pending version you are limited regards number of embedded IFs you may use.
Quickly glancing at your data set ... if returning numbers (ordered etc...) you don't really need the INDEX as you can use a single SMALL - ie use the Date field rather than Row and apply k to the dates.
Also... Pivot Table(s) ?
Bookmarks