# COUNTIF DOESN'T DO WHAT I WANT

#### m17347047711116

##### New Member
HAVE 1 COLUMN FOR START TIME
HAVE 7 ROWS FOR 7 EMPLOYEES

WANT TO ENTER THERE START TIME
EXAMPLE
NANCY----7:30 AM
TED------8:00 AM
BILLY----9:00 AM

I THEN WANT TO RUN A COUNT TO SEE HOW MANY PEOPLE ARE IN THE BUILDING EVERY 15 MINUTES

SO I SET UP A COLUMN WITH TIMES STARTING AT 5:00 AM
5:15 AM
5:30 AM
5:45 AM
AND SO ON DOWN TO 4:45 AM FOR A TOTAL OF 24 HOURS.

I THEN TRIED TO USE THE COUNT IF FUNCTION USING THE 7 START TIMES AS THE DATA AND THE 15 MINUTE TIMES FOR THE CRITERIA.
BUT I WILL NOT WORK IT ONLY WORKS FOR THE FIRST 7 15 MINUTE INTERVALS AFTER THAT NOTHING.

ANYONE KNOW OF ANOTHER WAY ????

### Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
one way:
Book6
ABCDE
1NameStart
2a09:00
3b09:05PeriodNumber
4c09:1009:003
5d09:1509:153
6e09:2009:304
7f09:2509:451
8g09:3010:00
9h09:35
10I09:40
11j09:45
12k09:40
13
Sheet3

Thank you so much works like a charm

Replies
2
Views
331
Replies
6
Views
443
Replies
5
Views
398
Replies
2
Views
408
Replies
2
Views
141

1,218,923
Messages
6,145,241
Members
450,604
Latest member
ericmwr

### 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.

### Which adblocker are you using?

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

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