Recently i've encountered an issue with the subtotal array formula. To be more explicit, i have the following scenario:
- In my workbook i have two different sheets: Statistics and Bugs
- In the Bugs sheet i have a query which updates with the latest data available at that point
- This query pulls data into a table named as Info from which i refer only to one column named: CreatedTime_UTC
- Now, in the Statistics sheet i have two cells: Start date - (E2) and End Date - (E4)
The problem is that if i have in my query table a cell that has the same date as the Start date or End date, the following formula does not count that cell
=SUMPRODUCT(SUBTOTAL(3,OFFSET(Info[CreatedTime_UTC],ROW(Info[CreatedTime_UTC])-MIN(ROW(Info[CreatedTime_UTC])),,1))*(Info[CreatedTime_UTC]>=E2)*(Info[CreatedTime_UTC]<=E4))
To be mentioned that the formula counts only visible cells. Is there a workaround, so that the formula can count cells that contain the same dates as declared in the Start date or End date cells?
| Id | CreatedTime_UTC |
|-------|-----------------|
| 33760 | 8/17/2018 |
| 33742 | 8/16/2018 |
| 33566 | 8/8/2018 |
| 33558 | 8/7/2018 |
| 33472 | 7/30/2018 |
| 33466 | 7/27/2018 |