Hello all:
I have detail data in a sheet where the first column contains a transaction date. The date format is "MMM-YY". So several records dated 1/1/2007, 1/31/2007, 1/19/2007 will all show as "Jan-07".
What I want to do is count the number of instances that "Jan-07" exists on this sheet based upon a match to the date "1/1/2007" on another sheet (cell B7) in the same format.
I attempted the following, but it does not work:
I am attempting to say, count all the instances of Jan-07 in column A of the detail sheet where the dates are greater than or equal to 1/1/2007 and less than or equal to 1/31/2007. B7 is the cell containing the date '1/1/2007'.
Any advice you all can give me is much appreciated.
thanks,
Ben
I have detail data in a sheet where the first column contains a transaction date. The date format is "MMM-YY". So several records dated 1/1/2007, 1/31/2007, 1/19/2007 will all show as "Jan-07".
What I want to do is count the number of instances that "Jan-07" exists on this sheet based upon a match to the date "1/1/2007" on another sheet (cell B7) in the same format.
I attempted the following, but it does not work:
Code:
{=COUNT(IF(AND(('Sheet2'!$A:$A>=Sheet1!B$7),('Sheet2'!$A:$A<=(EOMONTH(Sheet1!B$7,0)))),'Sheet2'!$A:$A,))}
I am attempting to say, count all the instances of Jan-07 in column A of the detail sheet where the dates are greater than or equal to 1/1/2007 and less than or equal to 1/31/2007. B7 is the cell containing the date '1/1/2007'.
Any advice you all can give me is much appreciated.
thanks,
Ben