Countifs with Datestamp

jwbrouse01

New Member
Joined
Jun 2, 2022
Messages
9
Office Version
  1. 365
Platform
  1. Windows
Greetings,

How can I create a countif/ifs formula that will count based on datestamp?

In column A of Sheet1, I have a list of datestamps as below.

9/5/2023 9:59:04 PM

I want to create a countif/ifs formula on another sheet that will count for each day running from 10:00 pm to 10:00 pm, i.e., data on 9/5 @ 10:05 pm actually counts toward 9/6.

If possible, I need to do this without manipulating the data in Sheet1. I want the user to be able to just copy data into Sheet1 and the data is displayed.

Can someone please assist me?

Thank you!
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
I think this should get you headed in the right direction. If your data is in a table or named range you could make it dynamic.

Book1.xlsx
ABCDEF
1DatestampsDateStartEndCount
29/5/2023 20:599/6/20239/5/2023 22:009/6/2023 22:003
39/6/2023 11:599/7/20239/6/2023 22:009/7/2023 22:003
49/7/2023 7:599/8/20239/7/2023 22:009/8/2023 22:003
59/8/2023 20:599/9/20239/8/2023 22:009/9/2023 22:004
69/9/2023 19:599/10/20239/9/2023 22:009/10/2023 22:002
79/10/2023 4:599/11/20239/10/2023 22:009/11/2023 22:002
89/11/2023 4:599/12/20239/11/2023 22:009/12/2023 22:001
99/5/2023 19:599/13/20239/12/2023 22:009/13/2023 22:001
109/6/2023 8:599/14/20239/13/2023 22:009/14/2023 22:001
119/7/2023 7:599/15/20239/14/2023 22:009/15/2023 22:000
129/8/2023 18:599/16/20239/15/2023 22:009/16/2023 22:000
139/9/2023 10:599/17/20239/16/2023 22:009/17/2023 22:000
149/10/2023 4:599/18/20239/17/2023 22:009/18/2023 22:000
159/11/2023 18:599/19/20239/18/2023 22:009/19/2023 22:000
169/12/2023 18:599/20/20239/19/2023 22:009/20/2023 22:000
179/13/2023 4:599/21/20239/20/2023 22:009/21/2023 22:000
189/14/2023 21:599/22/20239/21/2023 22:009/22/2023 22:001
199/22/2023 6:599/23/20239/22/2023 22:009/23/2023 22:001
209/23/2023 13:599/24/20239/23/2023 22:009/24/2023 22:001
219/24/2023 7:599/25/20239/24/2023 22:009/25/2023 22:001
229/25/2023 5:599/26/20239/25/2023 22:009/26/2023 22:001
239/26/2023 3:599/27/20239/26/2023 22:009/27/2023 22:001
249/27/2023 14:59
259/28/2023 14:59
269/6/2023 11:59
279/5/2023 21:59
289/7/2023 2:59
299/8/2023 2:59
309/9/2023 2:59
319/9/2023 19:59
Sheet3
Cell Formulas
RangeFormula
D2:D23D2=C2-2/24
E2:E23E2=C2+22/24
F2:F23F2=COUNTIFS($A$2:$A$31,">="&D2:D23,$A$2:$A$31,"<"&E2:E23)
Dynamic array formulas.

Hope that helps,

Doug
 
Upvote 0
Solution

Forum statistics

Threads
1,215,161
Messages
6,123,363
Members
449,097
Latest member
thnirmitha

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