Forum Discussion
Phishdawg
May 04, 2023Brass 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...
Phishdawg
May 04, 2023Brass Contributor
mtarler
May 04, 2023Silver Contributor
I'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.
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.