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 items with a specific quanitifier in a date range

I have 2 columns:
Date Person
10/31/08 SP
11/01/08 JS
11/15/08 SS
11/18/08 SP

I need to count the number of occurances of the person within a specific
date range. More specifically, how many times did SP occur during the month
of November? I have tried with Countif and Sumproduct formulas and can't
seem to get it right. Any help would be greatly apprciated.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Counting items with a specific quanitifier in a date range

Hi,

Try something like

=SUMPRODUCT(--(A1:A10=D1),--(A1:A10<=D2),--(B1:B10=D3))

Where 11/1/08 is in D1, 11/30/08 is in D2 and a name is in D3


--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"sprillaman" wrote:

I have 2 columns:
Date Person
10/31/08 SP
11/01/08 JS
11/15/08 SS
11/18/08 SP

I need to count the number of occurances of the person within a specific
date range. More specifically, how many times did SP occur during the month
of November? I have tried with Countif and Sumproduct formulas and can't
seem to get it right. Any help would be greatly apprciated.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Counting items with a specific quanitifier in a date range

Try this...

=SUMPRODUCT((MONTH(A2:A1000)=11)*(B2:B1000="SP"))

Note: This doesn't restrict the search to only Novembers in 2008.

--
Rick (MVP - Excel)


"sprillaman" wrote in message
...
I have 2 columns:
Date Person
10/31/08 SP
11/01/08 JS
11/15/08 SS
11/18/08 SP

I need to count the number of occurances of the person within a specific
date range. More specifically, how many times did SP occur during the
month
of November? I have tried with Countif and Sumproduct formulas and can't
seem to get it right. Any help would be greatly apprciated.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Counting items with a specific quanitifier in a date range

=SUMPRODUCT(--(TEXT(A2:A5,"mmm-yy")="Nov-08"),--(B2:B5="SP"))


"sprillaman" wrote:

I have 2 columns:
Date Person
10/31/08 SP
11/01/08 JS
11/15/08 SS
11/18/08 SP

I need to count the number of occurances of the person within a specific
date range. More specifically, how many times did SP occur during the month
of November? I have tried with Countif and Sumproduct formulas and can't
seem to get it right. Any help would be greatly apprciated.

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 items within a date range Dee Smith Excel Worksheet Functions 1 August 22nd 08 12:12 AM
Counting items within a date range Dee Smith New Users to Excel 1 August 22nd 08 12:11 AM
Counting Specific Character(s) In A Range? FARAZ QURESHI Excel Discussion (Misc queries) 10 September 14th 07 04:32 AM
Counting unique items based on date DKS Excel Worksheet Functions 19 July 25th 07 10:08 PM
Count items between specific hours on a matching date KS Excel Worksheet Functions 1 December 10th 04 05:52 PM


All times are GMT +1. The time now is 08:33 AM.

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

About Us

"It's about Microsoft Excel"