crimewatcher
New Member
- Joined
- Jul 15, 2009
- Messages
- 16
I keep track of the state's lottery numbers. Trying to figure out how to count all the times the same number was drawn in the same month and year. A simple =COUNTIF(D:D,"<31") works but I don't want the Days Between counted if the same numbers were drawn in different months. Say 123 was drawn on 1/25/10 and again on 2/12/10. There are 18 days between these two dates but the =COUNTIF above counts it.
Is there an easy way to calculate or count the Days Between cells that are less than 31 and ONLY if the month and year are the same?
The file looks like this:
Number Date1 Date2 Days Between (Date2-Date1)
106 02/09/10 02/23/10 14
290 01/03/10 01/21/10 18
711 06/05/10 06/13/10 8
717 02/10/10 02/16/10 6
809 01/04/10 01/18/10 14
853 01/11/10 01/13/10 2
Thanks!
Is there an easy way to calculate or count the Days Between cells that are less than 31 and ONLY if the month and year are the same?
The file looks like this:
Number Date1 Date2 Days Between (Date2-Date1)
106 02/09/10 02/23/10 14
290 01/03/10 01/21/10 18
711 06/05/10 06/13/10 8
717 02/10/10 02/16/10 6
809 01/04/10 01/18/10 14
853 01/11/10 01/13/10 2
Thanks!