PC Review


Reply
Thread Tools Rate Thread

counting instances

 
 
AndrewC
Guest
Posts: n/a
 
      6th May 2009
I have 2 columns of times. Essentailly, the times are customer in and
customer out times. I want to show "how many customers are here at any given
hour?"

I have a graph with columns for each hour of the day. I want to populate
that graph. For example, if 4:30 pm falls between the 2 times, count one for
the "4-5pm" column on the graph.

Any ideas? I have about 8,000 lines of data. THANK YOU!
 
Reply With Quote
 
 
 
 
Jacob Skaria
Guest
Posts: n/a
 
      6th May 2009
Assuming you have the IN time in Col A and OUT time in ColB..both columns
formatted as time..

In C1 you have the query time. The below formula will return the number of
people at the time mentioned in C1

=SUMPRODUCT(--(A1:A8000<=C1),--(B1:B8000>=C1))

If this post helps click Yes
---------------
Jacob Skaria


"AndrewC" wrote:

> I have 2 columns of times. Essentailly, the times are customer in and
> customer out times. I want to show "how many customers are here at any given
> hour?"
>
> I have a graph with columns for each hour of the day. I want to populate
> that graph. For example, if 4:30 pm falls between the 2 times, count one for
> the "4-5pm" column on the graph.
>
> Any ideas? I have about 8,000 lines of data. THANK YOU!

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting Instances saman110 via OfficeKB.com Microsoft Excel Programming 3 5th Mar 2008 09:24 PM
Counting instances that are not near each other raehippychick Microsoft Excel Worksheet Functions 1 11th May 2004 11:56 AM
Counting Instances of a Value? Neil Microsoft Excel Programming 2 5th Dec 2003 08:36 PM
counting instances Rob582 Microsoft Excel Worksheet Functions 2 20th Nov 2003 06:06 PM
counting instances Guy Story Microsoft Access Reports 1 26th Sep 2003 11:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:10 PM.