Hi,
Formula trouble! Can anyone advise on how to change the following formula to count ONLY ONCE if both columns Q and U are <> ""?
=SUMPRODUCT((master!C3:C2002="Rx")*(master!R3:R2002="NA")*(master!A3:A2002<>"5")*(master!Q3:Q2002<>"")*(master!W3:W2002="")*(master!AQ3:AQ2002="1"))+SUMPRODUCT((master!C3:C2002="Rx")*(master!R3:R2002<>"NA")*(master!A3:A2002<>"5")*(master!AQ3:AQ2002="1")*(master!W3:W2002="")*(((master!Q3:Q2002<>"")+(master!U3:U2002<>""))>=1))
The first part is working correctly:
SUMPRODUCT((master!C3:C2002="Rx")*(master!R3:R2002="NA")*(master!A3:A2002<>"5")*(master!Q3:Q2002<>"")*(master!W3:W2002="")*(master!AQ3:AQ2002="1"))
But the second part is giving the wrong values:
+SUMPRODUCT((master!C3:C2002="Rx")*(master!R3:R2002<>"NA")*(master!A3:A2002<>"5")*(master!AQ3:AQ2002="1")*(master!W3:W2002="")*(((master!Q3:Q2002<>"")+(master!U3:U2002<>""))>=1))
Any advice would be much appreciated.
Thanks,
K
Formula trouble! Can anyone advise on how to change the following formula to count ONLY ONCE if both columns Q and U are <> ""?
=SUMPRODUCT((master!C3:C2002="Rx")*(master!R3:R2002="NA")*(master!A3:A2002<>"5")*(master!Q3:Q2002<>"")*(master!W3:W2002="")*(master!AQ3:AQ2002="1"))+SUMPRODUCT((master!C3:C2002="Rx")*(master!R3:R2002<>"NA")*(master!A3:A2002<>"5")*(master!AQ3:AQ2002="1")*(master!W3:W2002="")*(((master!Q3:Q2002<>"")+(master!U3:U2002<>""))>=1))
The first part is working correctly:
SUMPRODUCT((master!C3:C2002="Rx")*(master!R3:R2002="NA")*(master!A3:A2002<>"5")*(master!Q3:Q2002<>"")*(master!W3:W2002="")*(master!AQ3:AQ2002="1"))
But the second part is giving the wrong values:
+SUMPRODUCT((master!C3:C2002="Rx")*(master!R3:R2002<>"NA")*(master!A3:A2002<>"5")*(master!AQ3:AQ2002="1")*(master!W3:W2002="")*(((master!Q3:Q2002<>"")+(master!U3:U2002<>""))>=1))
Any advice would be much appreciated.
Thanks,
K