Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default counting the occurances for specific dept within a given time peri

I'm trying to count the number of occurances by department that fall within a
specific date range(in this case monthly....ie 08/01/07 - 08/31/07)

The formula I'm using is as follows:

=COUNTIF('Filled Reqs'!$R$2:$R$389,"08/01/07")- COUNTIF('Filled
Reqs'!$R$2:$R$389,"<'09/01/07")

** this gives me the count within a given month

=COUNTIF('Filled Reqs'!$R$2:$R$389,"08/01/07")-COUNTIF('Filled
Reqs'!$R$2:$R$389,"<'09/01/07")*AND('Filled
Reqs'!$B$2:$B$389,"legal")*AND('Filled Reqs'!$o$2:$o$389,"analyst")

*** this doesn't work.... count within given month by department[/b]

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default counting the occurances for specific dept within a given time peri

Try this.

=SUMPRODUCT(--('Filled Reqs'!$R$2:$R$389=DATE(2007,8,1)),--('Filled
Reqs'!$R$2:$R$389<=DATE(2007,8,31)),--('Filled Reqs'!$O$2:$O$389="analyst"))

If the dates are all from the same year then you can just count based on the
month number:

=SUMPRODUCT(--(MONTH('Filled Reqs'!$R$2:$R$389)=8),--('Filled
Reqs'!$O$2:$O$389="analyst"))

Note that when counting based on the month number an empty cell will
evaluate as month 1 (January).

Better to use cells to hold the criteria:

A1 = 8/1/2007
B1 = 8/31/2007
C1 = analyst

=SUMPRODUCT(--('Filled Reqs'!$R$2:$R$389=A1),--('Filled
Reqs'!$R$2:$R$389<=B1),--('Filled Reqs'!$O$2:$O$389=C1))

--
Biff
Microsoft Excel MVP


"Ralph D'Andrea" <Ralph wrote in message
...
I'm trying to count the number of occurances by department that fall
within a
specific date range(in this case monthly....ie 08/01/07 - 08/31/07)

The formula I'm using is as follows:

=COUNTIF('Filled Reqs'!$R$2:$R$389,"08/01/07")- COUNTIF('Filled
Reqs'!$R$2:$R$389,"<'09/01/07")

** this gives me the count within a given month

=COUNTIF('Filled Reqs'!$R$2:$R$389,"08/01/07")-COUNTIF('Filled
Reqs'!$R$2:$R$389,"<'09/01/07")*AND('Filled
Reqs'!$B$2:$B$389,"legal")*AND('Filled Reqs'!$o$2:$o$389,"analyst")

*** this doesn't work.... count within given month by department[/b]



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting Occurances Rusty Excel Discussion (Misc queries) 5 July 10th 06 08:29 PM
counting occurances SR89 Excel Worksheet Functions 6 June 28th 06 01:46 AM
Find name in list and get dept # enter dept # on work sheet Jamba Excel Worksheet Functions 1 April 30th 06 11:39 PM
counting instances of specific times in fields with date and time Rob Odum Excel Worksheet Functions 2 April 13th 06 04:06 PM
Counting multiple occurances of a specific string BaseballFan Excel Worksheet Functions 1 February 26th 05 08:34 PM


All times are GMT +1. The time now is 01:48 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"