Forum Discussion
Phishdawg
May 04, 2023Copper Contributor
Number of Tickets Per Hour of Given Day
Thanks to the wisdom of @mathetes I have almost got my puzzle solved. I now seek the number of 'Tickets' issued for each hour of the day represented in Column C. I currently have a formula that ha...
mtarler
May 04, 2023Silver Contributor
Phishdawg I think it will be:
=ROWS(FILTER(A2:A782330,
(HOUR(DailyTransactionSht!D2:D782330)=C4)*
(DailyTransactionSht!A2:A782330=$C$1)))
where I assume C1 is the location of that date and C4 is the location of the hour
Phishdawg
May 04, 2023Copper Contributor
- mtarlerMay 04, 2023Silver ContributorI'm glad you got it to work. I'll pat myself on the back creating the formula without having access to the actual workbook and the only "typos" I see are C1 & C3 needed to be C3 & C6, which I totally called out in my comment 🙂
Note, I noticed you added the sheet name to the filter range but you really shouldn't need that since you don't care what you filter you just want to know how many rows.
BTW, the "better" way to do this might be
=COUNTIFS(DailyTransactionSht!$D$2:$D$782330,TIME($C6,0,0),DailyTransactionSht!$A$2:$A$782330,$C$3)
but I wasn't sure if column D was only a time value and hence this would work or if there might also be a date (even if that date value isn't shown) and hence this version wouldn't work. So again, without the actual sheet I opted for the more tolerant option.