Hi, so my problem is fairly simple im just struggling to get the right result.
My data is effectively something like this
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]6[/TD]
[/TR]
</tbody>[/TABLE]
What i want to do is do a sumproduct of the two columns for only the rows when A is greater than zero, (i.e. only rows 2,3 and 6 in the example)
The formula i have found to do this on other forums is something like:
=sumproduct(--(A2:A6=">0"),A2:A6,B2:B6))
But this just comes up with zero.
If anyone has any ideas i would mega appreciate it!
Thanks
My data is effectively something like this
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]6[/TD]
[/TR]
</tbody>[/TABLE]
What i want to do is do a sumproduct of the two columns for only the rows when A is greater than zero, (i.e. only rows 2,3 and 6 in the example)
The formula i have found to do this on other forums is something like:
=sumproduct(--(A2:A6=">0"),A2:A6,B2:B6))
But this just comes up with zero.
If anyone has any ideas i would mega appreciate it!
Thanks