Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / June 2004

Tip: Looking for answers? Try searching our database.

count within a range

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andrew - 23 Jun 2004 11:45 GMT
Hi,
I've got a column with a list of times and want to
calculate the number of instances in the list that fall
within 12 hours.
ie. In the table below C6 should show the number of cells
in column B that are within +/-12 hours of B6

A           B                 C
1    Delivery Time    No. Deliveries within 12 Hours
2    6/01/2004 0:01   
3    7/01/2004 0:01   
4    13/01/2004 0:01   
5    28/01/2004 0:01   
6    1/02/2004 1:43   
7    1/02/2004 3:05   
8    1/02/2004 5:54   
9    1/02/2004 8:50   
10    3/02/2004 3:07   
11    3/02/2004 18:48   

Many thanks in advance for your help.
CLR - 23 Jun 2004 13:42 GMT
=COUNTIF(B:B,">"&B6-0.5)-COUNTIF(B:B,">"&B6+0.5)+1

Note: the +1 at the end, includes the key cell (B6 in this case) in the
count......

0.5 = 12 hours to Excel who sees the period as "half a day"......

Vaya con Dios,
Chuck, CABGx3

> Hi,
> I've got a column with a list of times and want to
[quoted text clipped - 17 lines]
>
> Many thanks in advance for your help.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.