Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I'm using Excel 2000. Column A has four dates, Column B has the
person's name. I want to count how many dates in column A fall between a date range. My data is below A2 = 1-Apr-99 A3 = 1-Dec-99 A4 = 1-2Dec-99 A5 = 2-Jan-00 B2 = Mary B3 = Peter B4 = Paul B5 = Susan I want to know how many entries in column A fell between the dates of April 1, 1999 and March 31, 2000, the count should be four. What would be the appropriate COUNTIF formula? Pardon the pun but I've lost count of how many variations I've tried to get my result. greatly appreciated? Any help would be Also, if some entries in column A were blank, would that affect the formula? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You can't use COUNTIF with multiple conditions. Assuming your column A data
is formatted as Dates (not text), this SUMPRODUCT formula should work: =SUMPRODUCT(--(A2:A5=DATEVALUE("4/1/1999")),--(A2:A5<=DATEVALUE("3/31/2000"))) Hope this helps, Hutch " wrote: I'm using Excel 2000. Column A has four dates, Column B has the person's name. I want to count how many dates in column A fall between a date range. My data is below A2 = 1-Apr-99 A3 = 1-Dec-99 A4 = 1-2Dec-99 A5 = 2-Jan-00 B2 = Mary B3 = Peter B4 = Paul B5 = Susan I want to know how many entries in column A fell between the dates of April 1, 1999 and March 31, 2000, the count should be four. What would be the appropriate COUNTIF formula? Pardon the pun but I've lost count of how many variations I've tried to get my result. greatly appreciated? Any help would be Also, if some entries in column A were blank, would that affect the formula? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=COUNTIF(A2:A5,"="&DATE(1999,4,1))-COUNTIF(A2:A5,""&DATE(2000,3,31))
or =SUMPRODUCT(--(A2:A5=DATE(1999,4,1)),--(A2:A5<=DATE(2000,3,31))) If you get a date using the former, just format the result as general -- Regards, Peo Sjoblom wrote in message ups.com... I'm using Excel 2000. Column A has four dates, Column B has the person's name. I want to count how many dates in column A fall between a date range. My data is below A2 = 1-Apr-99 A3 = 1-Dec-99 A4 = 1-2Dec-99 A5 = 2-Jan-00 B2 = Mary B3 = Peter B4 = Paul B5 = Susan I want to know how many entries in column A fell between the dates of April 1, 1999 and March 31, 2000, the count should be four. What would be the appropriate COUNTIF formula? Pardon the pun but I've lost count of how many variations I've tried to get my result. greatly appreciated? Any help would be Also, if some entries in column A were blank, would that affect the formula? |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks for the suggestions. The first one worked and I'm going to try
the second suggested solution as well. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sumif between 2 dates and specify criteria | Excel Discussion (Misc queries) | |||
Find dates in a range; then sum values in that range by a criteria | Excel Discussion (Misc queries) | |||
SUMIF with AND for range and criteria | Excel Worksheet Functions | |||
SUMIF function - criteria of between two dates. How? | Excel Worksheet Functions | |||
can I use a range of dates as a criteria when using sumif? | Excel Worksheet Functions |