Hi Jeff
If your Times are in Column A, then copy the heading of this columnm to say C1 and D1. The under C1 in C2 put >09:00 then under D1 in D2 put <09:30 now in any cell put:
=DCOUNT(A:A,1,C1:D2)
You could also use an array formula for this, but I believe the DCOUNT is better.
Dave
OzGrid Business Applications
Dave,
You are the greatest! You don't know how thankful I am - I have been trying everything for a long time! It now works because of you!
Just for my curiosity: What is the purpose of including the headers? I know when the headers are taken out, it doesn't work.
Thanks again!
Jeff
You are the greatest! You don't know how thankful I am - I have been trying everything for a long time! It now works because of you! Just for my curiosity: What is the purpose of including the headers? I know when the headers are taken out, it doesn't work. Thanks again! Jeff
Hi Jeff
The Database functions (of which DCOUNT is one) require the headers of the Table they are extracting information from so that they know which columns to use in the criteria.
If you push F1 and type in DCOUNT excel will show you quite a lot of detail on this and all the other database functions.
Dave
OzGrid Business Applications
Thanks again! : Dave, : You are the greatest! You don't know how thankful I am - I have been trying everything for a long time! It now works because of you! : Just for my curiosity: What is the purpose of including the headers? I know when the headers are taken out, it doesn't work. : Thanks again! : Jeff
I have used Dave's solution to my original problem - it works great. But, I have one more question. I have a list of criteria:
(A1)Time In (B1)Time In
(A2)>=09:30 (B2)<10:00
(A3)>=10:00 (B3)<10:30
etc...
Using the DCount function, How do I select row A1 and A3 to only get the number of entries between 10:00 and 10:30? I want to use the function on a list of times (>=9:30 <10:00, >=10:00 <10:30, etc...)
Thanks for all your help!