COUNTIFS with Time Range criteria

EvenS8245

New Member
Joined
Mar 25, 2022
Messages
25
Office Version
  1. 2013
Platform
  1. Windows
Good morning.

I'm having trouble getting a countifs formula to work for a specific time range. i'm working within 30 min increments. i need to return the count of orders received within each interval.

In the example below, i have attempted the following formula but it keeps returning 0, when it should be returning 6. There are 6 orders that came in between 12 am and 12:30 (formatted as 00:00 and 00:30)

=COUNTIFS(A:A,Table1[[#Headers],[Friday]],B:B,">=D2",B:B,"<D3")

I think the issue is criteria 2 and 3. When i click the formula bar, cells D2 and D3 are not highlighted.

are the quotes considering this as a text value?



1658500146803.png
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
should work
try
=COUNTIFS(A:A,Table1[[#Headers],[Friday]],B:B,">="&D2,B:B,"<"&D3)

=COUNTIFS($B$2:$B$18,">="&D2,$B$2:$B$18,"<="&D3)


Book1
ABCDE
1
20:040:004
30:110:304
40:181:003
50:261:300
60:332:000
70:402:300
80:483:000
90:553:306
101:024:000
111:104:300
121:115:000
133:35
143:36
153:38
163:39
173:41
183:42
19
Sheet1
Cell Formulas
RangeFormula
E2:E12E2=COUNTIFS($B$2:$B$18,">="&D2,$B$2:$B$18,"<="&D3)
B3:B11B3=B2+0.0051
B12,B14:B18B12=B11+0.001
B13B13=B12+0.1
 
Upvote 0
Solution

Forum statistics

Threads
1,215,002
Messages
6,122,652
Members
449,092
Latest member
peppernaut

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