Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Counting distinct entries based on meeting month & year criteria
Hi - please help!
In column A, I have the following entries: 01/05/04 01/10/04 01/01/05 01/15/05 01/20/05 01/30/05 02/08/04 02/13/05 02/20/05 02/21/05 How can I 'count' the number of dates that are in January 2004, January 2005 etc? Specifically: For January 2004 date count in cell B1 = 2 For January 2005 date count in cell B1 = 4 For February 2004 date count in cell B1 = 1 For February 2005 date count in cell B1 = 3 Thank you! |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Counting distinct entries based on meeting month & year criteria
Try in B1 for January 2004. =SUMPRODUCT((YEAR(A1:A10)=2004)*(MONTH(A1:A10)=1)) Does that help? Steve -- SteveG ------------------------------------------------------------------------ SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571 View this thread: http://www.excelforum.com/showthread...hreadid=510290 |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Counting distinct entries based on meeting month & year criteria
Correction to the end results below
"jennifer" wrote: Hi - please help! In column A, I have the following entries: 01/05/04 01/10/04 01/01/05 01/15/05 01/20/05 01/30/05 02/08/04 02/13/05 02/20/05 02/21/05 How can I 'count' the number of dates that are in January 2004, January 2005 etc? Specifically: For January 2004 date count in cell B1 = 2 For January 2005 date count in cell B2 = 4 For February 2004 date count in cell B3 = 1 For February 2005 date count in cell B4 = 3 Thank you! |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Counting distinct entries based on meeting month & year criter
Thanks Steve...worked like a charm!
"SteveG" wrote: Try in B1 for January 2004. =SUMPRODUCT((YEAR(A1:A10)=2004)*(MONTH(A1:A10)=1)) Does that help? Steve -- SteveG ------------------------------------------------------------------------ SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571 View this thread: http://www.excelforum.com/showthread...hreadid=510290 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
counting based on criteria | Excel Worksheet Functions | |||
count duplicate (or, inversely, unique) entries, but based on a condition | Excel Worksheet Functions | |||
Counting an Array based on a calculation | Excel Discussion (Misc queries) | |||
Formula to determine a future date based on criteria | Excel Worksheet Functions | |||
Counting rows based on criteria in multiple cells | Excel Discussion (Misc queries) |