Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
example
1/1/2005 1/2/2005 = 2 2/1/2005 2/2/2005 = 2 I am trying to get the ount if the value is between 1/12005 and 1/3/2005 and similarly 2/1/2005 and 2/3/2005 |
#2
![]() |
|||
|
|||
![]()
=countif(a1:a10,"="&date(2005,1,1)) - countif(a1:a10,""&date(2005,1,3))
(I'm not sure what between means--include the end dates or not???) joe wrote: example 1/1/2005 1/2/2005 = 2 2/1/2005 2/2/2005 = 2 I am trying to get the ount if the value is between 1/12005 and 1/3/2005 and similarly 2/1/2005 and 2/3/2005 -- Dave Peterson |
#3
![]() |
|||
|
|||
![]()
Dave,
"Between" is inclusive of the beginning and end dates. This isn't a very elegant solution, but it will work: {=SUM(IF(A1:A4=DATE(2005,1,1),IF(A1:A4<=DATE(2005 ,1,3),1,0),0))} Note: This is entered as an array formula, so make sure to hit CTRL+SHIFT+ENTER after typing the formula in the cell. HTH Michael Cumming |
#4
![]() |
|||
|
|||
![]()
It might mean that for you, but I don't think that's a universal interpretation
<bg. But you could alter that other formula to include/exclude the end dates.) wrote: Dave, "Between" is inclusive of the beginning and end dates. This isn't a very elegant solution, but it will work: {=SUM(IF(A1:A4=DATE(2005,1,1),IF(A1:A4<=DATE(2005 ,1,3),1,0),0))} Note: This is entered as an array formula, so make sure to hit CTRL+SHIFT+ENTER after typing the formula in the cell. HTH Michael Cumming -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formula for If Term is on Certain Date then Count | Excel Worksheet Functions | |||
Using sumproduct to count number by date | Excel Worksheet Functions | |||
Count cells based on date range in another column | New Users to Excel | |||
Count the occurances of a month in a range of date fields | Excel Worksheet Functions | |||
Count data entries and date problem | Excel Worksheet Functions |