View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Jacob Skaria Jacob Skaria is offline
external usenet poster
 
Posts: 8,520
Default HELP WITH SUMPRODUCT FORMULA USING YEAR() and MONTH() FUNCTIONS

=SUMPRODUCT(--('InSite Milestones'!$B$8:$B$7732=$B4),
--('InSite Milestones'!$D$8:$D$7732=$C4),
--(MONTH('InSite Milestones'!$H$8:$H$7732)=MONTH(D$3)),
--(YEAR('InSite Milestones'!$H$8:$H$7732)=YEAR(D$3)))

If this post helps click Yes
---------------
Jacob Skaria


"Ayo" wrote:

I need some help with this formular. I am trying to figure our how to count
how many cells in a date column has May has the month and 2008 as the year.
Hence the
"--(MONTH('InSite Milestones'!$H$8:$H$7732)=MONTH(D$3)))),--(YEAR('InSite
Milestones'!$H$8:$H$7732)=YEAR(D$3))" in the formular below. But I am get
#VALUE! error for MONTH('InSite Milestones'!$H$8:$H$7732) and YEAR('InSite
Milestones'!$H$8:$H$7732), any ideas?

=(SUMPRODUCT(--('InSite Milestones'!$B$8:$B$7732=$B4),--('InSite
Milestones'!$D$8:$D$7732=$C4),--(MONTH('InSite
Milestones'!$H$8:$H$7732)=MONTH(D$3)),--(YEAR('InSite
Milestones'!$H$8:$H$7732)=YEAR(D$3))))