Forum Discussion
Tommo1105
Aug 12, 2023Copper Contributor
Excel formula assistance
Countif / Countifs have issues due to the time format and pivot table options have not worked very easily either. Looking to create a list which other workbooks can use at the same time for statisti...
- Aug 14, 2023
=COUNTIFS($C$2:$C$10000,">="&$G2,$C$2:$C$10000,"<"&$G3,$E$2:$E$10000,I$1)
I'd apply COUNTIFS as shown in the screenshot.
OliverScheurich
Aug 12, 2023Gold Contributor
=COUNTIFS($C$2:$C$10000,">="&G2,$C$2:$C$10000,"<"&G3)
In Excel you can apply COUNTIFS like this. COUNTIFS dynamically updates the results when you paste new data in columns A to E. The value in cell G2 is 00:00:01 in cell G14 is 23:59:59. The other values in columns G and H are like 02:00:00.
Better option would be Power Query as suggested by @Sergei Baklan . Copy and paste option is probably limited to a few hundered mails at a time. With Power Query several thousands of mails can be imported at once.
Tommo1105
Aug 12, 2023Copper Contributor
Will try the formula, but think the time format stopped the COUNTIFS formula working as kept getting an error when using the formula. Tried formatting time to hhmm, hh:mm and tried using hh:mm:ss but always got the error. Will try again tomorrow, so thanks for the suggestions. Will have to look into the Power Query as I have never used it or even knew about it and already linked in my excel via the Data tab.
- Tommo1105Aug 14, 2023Copper ContributorTried, and managed to get a total number of emails between specific times, but still need to could categories between specific times. can a CONTIFS or COUNTIF specify the times and count a category?
- OliverScheurichAug 14, 2023Gold Contributor
=COUNTIFS($C$2:$C$10000,">="&$G2,$C$2:$C$10000,"<"&$G3,$E$2:$E$10000,I$1)
I'd apply COUNTIFS as shown in the screenshot.
- Tommo1105Aug 14, 2023Copper ContributorModified the layout to match and this and it seems to work. May just look to tidy up the display by storing the email list on another tab and looking up the data using the tab and !. Thanks and think this is the answer, though may just need to modify the time data each time, but this will make the process easier I think. Thanks for your help.