How to make excel count based on time data?

Halogen

New Member
Joined
Feb 24, 2024
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
Hello there!
I'm sorry to bother you all, but I've been having trouble for about a week now on how to make this work in Excel 2016 and couldnt find a solution yet...

Here's what we got:
There's a lobby where people going in and out, in the left group of columns. We got exact time of their arrival and exiting on the right (screenshot included).
Is there any possible formula to make excel count how many people arrived, exited and visited lobby for every minute based on time data in the right columns?
Like, if there's a 08:44:38 and 08:44:43 on Entry column, it means two people got in and Arrived on 08:44 and becomes 2 in cell, If there's 7 matches on 09:01 on Exit column, it means 7 people got out and etc...


If you could help me out with this one i would really appreciate it!
 

Attachments

  • excel1.PNG
    excel1.PNG
    53.8 KB · Views: 52

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Assuming Data is in Columns E and F and Analysis is in Column A and B use COUNTIFS Function
In cell b2 type =COUNTIFS(E:E,">="&$A2,E:E,"<"&$A3) [drag down]
In cell c2 type =COUNTIFS(F:F,">="&$A2,F:F,"<"&$A3) [drag down]
1708767100253.png
 
Upvote 1
Solution
Assuming Data is in Columns E and F and Analysis is in Column A and B use COUNTIFS Function
In cell b2 type =COUNTIFS(E:E,">="&$A2,E:E,"<"&$A3) [drag down]
In cell c2 type =COUNTIFS(F:F,">="&$A2,F:F,"<"&$A3) [drag down]
View attachment 107420
Yes, it worked!
Thank you very much!
And sorry for a bad english, not my native language!
Bless you!
 
Upvote 0
Welcome to the MrExcel Message Board!

For future reference.
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: How to make excel count based on time data?
There is no need to repeat the link(s) provided above but if you have posted the question at other places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,149
Members
453,021
Latest member
Justyna P

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