Thread: #VALUE! Problem
View Single Post
  #5   Report Post  
andyp161
 
Posts: n/a
Default


This works great - thanks.

=SUM(IF(Log!$A$2:$A$200<"",(MONTH(Log!$A$2:$A$200 )=MONTH(Stats!B1))*(Log!$D$2:$D$200=Stats!$A3)))

However, I am trying to extend the formula so that if the conditions
are met, the formula goes on to count the values in a final column. I
have tried the following:

=SUM(IF(Log!$A$2:$A$200<"",(MONTH(Log!$A$2:$A$200 )=MONTH(Stats!B1))*(Log!$D$2:$D$200=Stats!$A3)*Log !$G$2:$G$200))

However, the above does not work; rather than counting the values in
Log!$G$2:$G$200 if the previous conditions are met, it counts all
values??

Many thanks

Andy


--
andyp161
------------------------------------------------------------------------
andyp161's Profile: http://www.excelforum.com/member.php...o&userid=11654
View this thread: http://www.excelforum.com/showthread...hreadid=383154