How do you count occurances of something over a period of time?

Claudius02

New Member
Joined
Oct 16, 2019
Messages
1
I have a spread sheet with the following columns:


[TABLE="width: 500"]
<tbody>[TR]
[TD]User name
[/TD]
[TD]Date
[/TD]
[TD]Time
[/TD]
[TD]Time of Day
[/TD]
[TD]Error Code
[/TD]
[TD]Status
[/TD]
[/TR]
[TR]
[TD]John Doe[/TD]
[TD]11/1/2016[/TD]
[TD]12:25:01[/TD]
[TD]AM[/TD]
[TD]123[/TD]
[TD]Success[/TD]
[/TR]
[TR]
[TD]John Doe[/TD]
[TD]11/1/2016[/TD]
[TD]8:25:00[/TD]
[TD]PM[/TD]
[TD]123[/TD]
[TD]Success[/TD]
[/TR]
[TR]
[TD]Jane Doe[/TD]
[TD]11/1/2017[/TD]
[TD]8:25:00[/TD]
[TD]AM[/TD]
[TD]234[/TD]
[TD]Failure[/TD]
[/TR]
</tbody>[/TABLE]

So I want to count how many times during a specific time period John Doe, Jane Doe, or another person used something. So, for example how many times a person used something for a 24 hour period, or used it during a month, day, year, etc.

Another issue would be how many times the status over a specific time period was a success, or failure.

EDIT:
the specific time periods would be 24 hours, week, month, year
 
Last edited by a moderator:

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Welcome to the Board!

Take a look at using the COUNTIFS formula, which allows you to count records meeting certain criteria.
See here for an example on how to do a date/time range: https://exceljet.net/formula/count-cells-between-dates
To add the person, just add another set of criteria (which name range and name value).
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,191
Members
452,616
Latest member
intern444

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top