#VALUE! Problem

A

andyp161

Using the below formula, #VALUE! is returned:

=SUMPRODUCT(--(MONTH(Log!$A$2:$A$200)=MONTH(Stats!$D1)),--(Log!$D$2:$D$200=(Stats!$A3)))

I think it is because Log! is linked to a 3rd sheet and contains
ISBLANK as below:

=IF(ISBLANK(Benefit_Plan_Review_Log.csv!$N2),"",Benefit_Plan_Review_Log.csv!$N2)

Is there anything I can do?

Many thanks

Andy
 
K

KL

Hi Andy,

Check all the ranges involved just in case they already contain the VALUE
error.
Check the ranges [Log!$A$2:$A$200] and [Stats!$D1] - potentially one of them
or both contain values that appear as dates, but are in reality text
strings.

Regards,
KL
 
D

Domenic

andyp161 said:
Using the below formula, #VALUE! is returned:

=SUMPRODUCT(--(MONTH(Log!$A$2:$A$200)=MONTH(Stats!$D1)),--(Log!$D$2:$D$200=(Stats!$A3)))

I think it is because Log! is linked to a 3rd sheet and contain
ISBLANK as below:

=IF(ISBLANK(Benefit_Plan_Review_Log.csv!$N2),"",Benefit_Plan_Review_Log.csv!$N2)

Is there anything I can do?

Many thanks

Andy

Are the dates in Colmn N true date values?

Hope this helps
 
D

Domenic

andyp161 said:
Using the below formula, #VALUE! is returned:

=SUMPRODUCT(--(MONTH(Log!$A$2:$A$200)=MONTH(Stats!$D1)),--(Log!$D$2:$D$200=(Stats!$A3)))

I think it is because Log! is linked to a 3rd sheet and contains
ISBLANK as below:

=IF(ISBLANK(Benefit_Plan_Review_Log.csv!$N2),"",Benefit_Plan_Review_Log.csv!$N2)

Is there anything I can do?

Many thanks

Andy

Sorry Andy! I just re-read your post and it looks like I misunderstood
the situation. Try the following formula instead...

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

...confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

Hope this helps!
 
A

andyp161

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
 
D

Domenic

Does Column A contain 0 (zero) values?
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 condition
are met, the formula goes on to count the values in a final column.
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 i
Log!$G$2:$G$200 if the previous conditions are met, it counts al
values??

Many thanks

And
 
Top