@dparteka
Considering your dates in A1:A150. Use below formula
=COUNTIFS($A$1:$A$150,">="&$D$1,$A$1:$A$150,"<="&$E$1)
Put your lower date in D1 and upper date in E1.
Regards,
Hi ,
If you do not have Excel 2007 or later versions , you cannot use the ...IFS counterparts of the ...IF functions.
Even if you do have , try this :
=COUNTIFS('List of Items'!A2:A2000,">="&DATE(2014,1,1),'List of Items'!A2:A2000,"<="&DATE(2014,1,31))
Narayan
Not to sound like a squeeky wheel, but have you tried my solution? The TEXT function lets you be the most versatile when handling date criteria, and it works in XL 2003.Thanks for the help, if can beleive it we're still using Excel 2003, do I have any other options?
Not to sound like a squeeky wheel, but have you tried my solution? The TEXT function lets you be the most versatile when handling date criteria, and it works in XL 2003.
what would the formula look like in the next cell down for Feb 2013 or the next to the right for 2014?
Hi ,
Change your formula to :
=SUMPRODUCT(1*(TEXT('List of Items'! $A$2:$A$2000,"mmyyyy")=TEXT(DATE(2013,ROW($A1),1),"mmyyyy")))
The $ signs in $A$2:$A$2000 are necessary because otherwise as you copy it downwards , this will change to A3:A2001 , A4:A2002 and so on.
Secondly , the ROW(A1) part returns 1 , which gives DATE(2013,1,1) for January ; when you copy this down to the next row , this will become ROW(A2) to give DATE(2013,2,1) for February , and so on.
For 2014 , replace the 2013 by 2014 ; otherwise if you want this too to become dynamic , you can do it , but the formula will become somewhat lengthier.
Narayan
If you want years to increment as we move to the right, and months as we move down, formula is:
=SUMPRODUCT(1*(TEXT('List of Items'! $A$2:$A$2000,"mmyyyy")=
TEXT(DATE(2013+COLUMN(A$1)-1,ROW($A1),1),"mmyyyy")))
You can now copy this formula down and to the right, as desired.