Thread
:
countif and sumif
View Single Post
#
2
Posted to microsoft.public.excel.worksheet.functions
Claus Busch
external usenet poster
Posts: 3,872
countif and sumif
Hi,
Am Fri, 10 Aug 2012 08:32:25 -0700 (PDT) schrieb
:
I am trying to count the cells in a sheet that have a certain year and a certain month. I am not sure how to write the criteria. Any help would be appreciated.
your values in A1:A100, year = 2010, month = may:
=SUMPRODUCT(--(YEAR(A1:A100)=2010),--(MONTH(A1:A100)=5))
Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
Reply With Quote
Claus Busch
View Public Profile
Find all posts by Claus Busch