I am getting #value or #NA
=SUMPRODUCT((MONTH(Activity!$C$3:$C$25)=7)*1,(Activity!$S:$S="Y")*1,(Activity!$G:$G,$A8,Activity!H:I)-(Activity!J:J,BS!$A$45,Activity!$K:$K),0)
In the first ( ) my column contains months or is BLANK and its is a date format
in the second ( ) my column contains Y or N or Blank
In the third ( ) I am simply multiplying amounts based on a condition
In the fourth ( ) I am simply multiplying amounts based on a condition
If I remove the Sumproduct and Month and us just an IF it works fine. I am using MONTH because I want to limit the condition to months.
=IF(Activity!$S:$S="Y",SUMIF(Activity!$G:$G,$A8,Activity!H:I)-SUMIF(Activity!J:J,BS!$A$45,Activity!$K:$K),0)
So if the month is in July AND the row has a Y then Sum values and subtract another Sum of values ELSE put a zero
=SUMPRODUCT((MONTH(Activity!$C$3:$C$25)=7)*1,(Activity!$S:$S="Y")*1,(Activity!$G:$G,$A8,Activity!H:I)-(Activity!J:J,BS!$A$45,Activity!$K:$K),0)
In the first ( ) my column contains months or is BLANK and its is a date format
in the second ( ) my column contains Y or N or Blank
In the third ( ) I am simply multiplying amounts based on a condition
In the fourth ( ) I am simply multiplying amounts based on a condition
If I remove the Sumproduct and Month and us just an IF it works fine. I am using MONTH because I want to limit the condition to months.
=IF(Activity!$S:$S="Y",SUMIF(Activity!$G:$G,$A8,Activity!H:I)-SUMIF(Activity!J:J,BS!$A$45,Activity!$K:$K),0)
So if the month is in July AND the row has a Y then Sum values and subtract another Sum of values ELSE put a zero