Start End Formula Logic

mahmed1

Well-known Member
Joined
Mar 28, 2009
Messages
2,302
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hey,

I have a column that has a bunch of start times (Column B)
A bunch of End Times (Column C)
Eg B2 = 08:00 C2= 16:00
09:30 15:30
08:00 14:30
10:00 18:00

etc

in column E2 copied down i have a list of times from 08:00 to 23:30
08:00
08:30
09:00
......

what i want to do is a count the number of shifts that are between 08:00 - 08:30
08:30 - 09:00 etc copied down

the result for 08:00 should show 2

i tried = countifs(B:B,”>=“&E2,C:C,”>=“&E3)

this failed miserable
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Try this:

=COUNTIFS($C$2:$C$5,">"&E2,$B$2:$B$5,"<"&E2+1/48)
 
Upvote 0

Forum statistics

Threads
1,215,350
Messages
6,124,430
Members
449,158
Latest member
burk0007

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