Hello,
What I want to do is if the number in column C is > 0, multiple it by the number in column D.
Here is my formula:
=SUMPRODUCT(--(C2:C19>0),(C2:C19*E2:E19))
My formula works fine if the range does not include blank cells, otherwise, I get a #value error. I have tried a few variables without success.
Any help is appreciated
C2=IF(A2="","",SUM(A2-B2))
What I want to do is if the number in column C is > 0, multiple it by the number in column D.
Here is my formula:
=SUMPRODUCT(--(C2:C19>0),(C2:C19*E2:E19))
My formula works fine if the range does not include blank cells, otherwise, I get a #value error. I have tried a few variables without success.
Any help is appreciated
C2=IF(A2="","",SUM(A2-B2))
Original | Actual | Difference | Cost | Diff |
23 | 23 | 0 | 26 | 0 |
24 | 24 | 0 | 27 | 0 |
25 | 26 | -1 | 33 | -33 |
22 | 27 | -5 | 44 | -220 |
1 | 0 | 1 | 55 | 55 |
77 | 77 | 0 | 66 | 0 |
46 | 46 | 0 | 127 | 0 |
53 | 52 | 1 | 231 | 231 |
32 | 32 | 0 | 59 | 0 |
13 | 12 | 1 | 12 | 12 |