C
CJ
I want to get a weighted average for rows that have "X" in column M OR
rows that have both a "Y" in column A and a value greater than 95 in
column D. Column E contains values in the range of 4.625 to 15.75 and
column B contains values in the range of 10,000 to 612,500.
=SUMPRODUCT(((M2:M3693 = "X")+((A2:A3693 =
"Y")*(D23693>95)))*(E2:E3693),B2:B3693)
The results are close to the expected value but definitely off.
8.453 - result of sumproduct formula w/no conditions; sorted rows that
met the criteria above and referenced just those rows in the formula
8.333 - result of sumproduct formula w/conditions as shown above.
rows that have both a "Y" in column A and a value greater than 95 in
column D. Column E contains values in the range of 4.625 to 15.75 and
column B contains values in the range of 10,000 to 612,500.
=SUMPRODUCT(((M2:M3693 = "X")+((A2:A3693 =
"Y")*(D23693>95)))*(E2:E3693),B2:B3693)
The results are close to the expected value but definitely off.
8.453 - result of sumproduct formula w/no conditions; sorted rows that
met the criteria above and referenced just those rows in the formula
8.333 - result of sumproduct formula w/conditions as shown above.