PC Review


Reply
Thread Tools Rate Thread

Count the number of incidents within a certain date range

 
 
Fester
Guest
Posts: n/a
 
      4th Jan 2006
OK, here's what I want to do. I've been racking my brain trying to
figure it out and am lost.

Here's the data

Date Contact Type

12/1/05 Phone Call
12/5/05 Internal Client
12/26/05 Internal Client
1/1/06 Phone Call

What I want to do is show how many "Phone Call" incidents during the
month of December (i.e. 1) and the number of "Internal Call" incidents
during December (i.e. 2).

I've tried to do AND statements and it doesn't work. Any help would be
appreciated.

Brendon

 
Reply With Quote
 
 
 
 
Ron Rosenfeld
Guest
Posts: n/a
 
      4th Jan 2006
On 4 Jan 2006 09:43:12 -0800, "Fester" <(E-Mail Removed)> wrote:

>OK, here's what I want to do. I've been racking my brain trying to
>figure it out and am lost.
>
>Here's the data
>
>Date Contact Type
>
>12/1/05 Phone Call
>12/5/05 Internal Client
>12/26/05 Internal Client
>1/1/06 Phone Call
>
>What I want to do is show how many "Phone Call" incidents during the
>month of December (i.e. 1) and the number of "Internal Call" incidents
>during December (i.e. 2).
>
>I've tried to do AND statements and it doesn't work. Any help would be
>appreciated.
>
>Brendon


Date=NAMED column of Dates
Contact_Type = NAME'd column of contact types.

=SUMPRODUCT((MONTH(Date)=12)*(Contact_Type="Internal Client"))

is one way.

You can substitute cell references for the 12 and the Contact Type.

If you want to specify not only the month but a particular year, you can add
another factor to the function:

=SUMPRODUCT((MONTH(Date)=12)*
(YEAR(Date)=2005)*(Contact_Type="Internal Client"))

or you could do something like:

=SUMPRODUCT(Date>=DATE(2005,12,1))*(Date<=DATE(2005,12,31)*...)





--ron
 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      4th Jan 2006
One way

=SUMPRODUCT(--($A$2:$A$20-DAY($A$2:$A$20)+1=--"2005-12-01"),--($B$2:$B$20="P
hone Call"))

etc.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Fester" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> OK, here's what I want to do. I've been racking my brain trying to
> figure it out and am lost.
>
> Here's the data
>
> Date Contact Type
>
> 12/1/05 Phone Call
> 12/5/05 Internal Client
> 12/26/05 Internal Client
> 1/1/06 Phone Call
>
> What I want to do is show how many "Phone Call" incidents during the
> month of December (i.e. 1) and the number of "Internal Call" incidents
> during December (i.e. 2).
>
> I've tried to do AND statements and it doesn't work. Any help would be
> appreciated.
>
> Brendon
>



 
Reply With Quote
 
Fester
Guest
Posts: n/a
 
      4th Jan 2006
That is Fantastic, Thank You very much, it worked perfectly.

Brendon

 
Reply With Quote
 
Ron Rosenfeld
Guest
Posts: n/a
 
      4th Jan 2006
On 4 Jan 2006 10:34:37 -0800, "Fester" <(E-Mail Removed)> wrote:

>That is Fantastic, Thank You very much, it worked perfectly.
>
>Brendon


You're welcome. Glad to help.
--ron
 
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
Count the number of cells containing a date within a range Scoffers Microsoft Excel Misc 5 24th Feb 2009 10:00 AM
How do I count the number of records within a date range =?Utf-8?B?TWlrZQ==?= Microsoft Excel New Users 6 29th May 2008 05:45 PM
How do I count the number of records within a date range? New issu =?Utf-8?B?TGFycnkgRw==?= Microsoft Excel Worksheet Functions 1 13th Mar 2007 03:05 PM
How do Count a the number of times a date range appears within a date range!? leelondon Microsoft Excel Discussion 5 4th Oct 2006 12:12 PM
Count Number of Dates in Date Range xtreme Microsoft Excel Worksheet Functions 8 20th Jul 2004 04:20 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:29 PM.