PC Review


Reply
Thread Tools Rate Thread

Counting Occurences According to Time

 
 
=?Utf-8?B?U1dGaXNoZXJtYW4=?=
Guest
Posts: n/a
 
      30th Oct 2007
I am trying to write a function that will count up the number of times an
occurence happens according to how long something took.

Basically I have a column that subtracts how long a phone call took, it
subtracts time B from time A to get a certain number of hours and minutes and
that column is formatted to display 00:00 (hh:mm).

I need a function that counts how many calls took < 20min, 20-30min,
30-60min, 60-120min, & > 120min. I have gotten the function to work just
looking at one cell, but when I give it the range of cells in that column I
get an error.
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      30th Oct 2007
=COUNTIF(C1:C100,"<"&TIME(0,20,0))

=COUNTIF(C1:C100,"<"&TIME(0,30,0))-COUNTIF(C1:C100,"<"&TIME(0,20,0))

etc.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"SWFisherman" <(E-Mail Removed)> wrote in message
news:E0068155-D9A2-471D-9C9F-(E-Mail Removed)...
>I am trying to write a function that will count up the number of times an
> occurence happens according to how long something took.
>
> Basically I have a column that subtracts how long a phone call took, it
> subtracts time B from time A to get a certain number of hours and minutes
> and
> that column is formatted to display 00:00 (hh:mm).
>
> I need a function that counts how many calls took < 20min, 20-30min,
> 30-60min, 60-120min, & > 120min. I have gotten the function to work just
> looking at one cell, but when I give it the range of cells in that column
> I
> get an error.



 
Reply With Quote
 
=?Utf-8?B?U1dGaXNoZXJtYW4=?=
Guest
Posts: n/a
 
      31st Oct 2007
Thanks a lot, it works Perfect, your the man.



"Bob Phillips" wrote:

> =COUNTIF(C1:C100,"<"&TIME(0,20,0))
>
> =COUNTIF(C1:C100,"<"&TIME(0,30,0))-COUNTIF(C1:C100,"<"&TIME(0,20,0))
>
> etc.
>
> --
> ---
> HTH
>
> Bob
>
> (there's no email, no snail mail, but somewhere should be gmail in my addy)
>
>
>
> "SWFisherman" <(E-Mail Removed)> wrote in message
> news:E0068155-D9A2-471D-9C9F-(E-Mail Removed)...
> >I am trying to write a function that will count up the number of times an
> > occurence happens according to how long something took.
> >
> > Basically I have a column that subtracts how long a phone call took, it
> > subtracts time B from time A to get a certain number of hours and minutes
> > and
> > that column is formatted to display 00:00 (hh:mm).
> >
> > I need a function that counts how many calls took < 20min, 20-30min,
> > 30-60min, 60-120min, & > 120min. I have gotten the function to work just
> > looking at one cell, but when I give it the range of cells in that column
> > I
> > get an error.

>
>
>

 
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 occurences of time it takes to calculate to 0 or just ove Amy Microsoft Excel New Users 2 7th Apr 2009 06:23 PM
Counting occurences of a name neil40@btinternet.com Microsoft Excel Worksheet Functions 3 8th Oct 2007 12:52 AM
Counting # of occurences =?Utf-8?B?aVRhbmFz?= Microsoft Access 5 30th Mar 2006 10:07 PM
Counting the occurences riomarde Microsoft Excel Worksheet Functions 1 27th Mar 2006 09:00 PM
counting occurences Ian P Microsoft Excel Worksheet Functions 2 18th Nov 2003 11:59 AM


Features
 

Advertising
 

Newsgroups
 


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