Aug 12 2023 08:58 AM
Aug 12 2023 08:58 AM
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 statistic purposes.
Copied a number of emails from outlook to count the number of emails processed during set time periods, but only way it works is a time consuming process.
Looking to use formula to group emails during the various time periods I have been asked to count.
Just not sure if there may be another formula option I have not considered.
Aug 12 2023 09:15 AM
In general you can use COUNTIFS like in the example. In the columns A to C is the information copied into Excel.
However i'm sure that the layout of your real data is different. Maybe you can attach a screenshot of your data without sensitive data and with your intended result.
Aug 12 2023 09:25 AM
What the entire procedure is? In general you may use Power Query to pick up emails from available mailbox(es), make the transformation and generate any metrics you wish.
If not Power Query, how do you import emails information to the Excel?
Aug 12 2023 09:43 AM
Below is an example of the emails copied (ctrl c from outlook) and pasted in excel (ctrl v) but I have modified emails and categories. Appreciate if you can offer any suggestions to make the count process easier. Think the issue relates to the time format as suggested COUNTIF / COUNTIFS has had problems and think it is due to the time format
Aug 12 2023 09:52 AM
Aug 12 2023 10:45 AM
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.
Aug 12 2023 11:38 AM
Aug 14 2023 08:13 AM
Aug 14 2023 09:25 AM - edited Aug 14 2023 09:42 AM
Why not? Adding data to data model and creating calculating column Frame like
=FORMAT( INT(Table1[Time]*24/2)*2/24, "hh:mm") & " - " & FORMAT( 2/24 - 1e-99 + INT(Table1[Time]*24/2)*2/24, "hh:mm")
In Power Pivot that is
result will be like
It could be split by users if we have another column in the sample.
Aug 14 2023 09:34 AM