I am trying to find the cleanest way to sum the numbers in a column, but only if the corresponding row value in another column is found within a current table. Below is what I am working with.
I need to add up the subtotal column only if the value in the corresponding item column is found within a table "ListPrice". In this example, the first line item "W2430" would be in the table, while the second line item "man-pfg" would not be in the table.
[TABLE="width: 765"]
<colgroup><col span="3"><col span="3"></colgroup><tbody>[TR]
[TD]Item[/TD]
[TD]List Price[/TD]
[TD]Multiplier Price[/TD]
[TD="colspan: 3"]Subtotal[/TD]
[/TR]
[TR]
[TD]w2430[/TD]
[TD] $ 400.00[/TD]
[TD] $ 112.00[/TD]
[TD="colspan: 3"] $ 112.00[/TD]
[/TR]
[TR]
[TD]man-pfg[/TD]
[TD] $ 35.00[/TD]
[TD] $ 35.00[/TD]
[TD="colspan: 3"] $ 70.00
[/TD]
[/TR]
</tbody>[/TABLE]
I was thinking about using SumProducts, but could not get what I needed to working. Any ideas?
I need to add up the subtotal column only if the value in the corresponding item column is found within a table "ListPrice". In this example, the first line item "W2430" would be in the table, while the second line item "man-pfg" would not be in the table.
[TABLE="width: 765"]
<colgroup><col span="3"><col span="3"></colgroup><tbody>[TR]
[TD]Item[/TD]
[TD]List Price[/TD]
[TD]Multiplier Price[/TD]
[TD="colspan: 3"]Subtotal[/TD]
[/TR]
[TR]
[TD]w2430[/TD]
[TD] $ 400.00[/TD]
[TD] $ 112.00[/TD]
[TD="colspan: 3"] $ 112.00[/TD]
[/TR]
[TR]
[TD]man-pfg[/TD]
[TD] $ 35.00[/TD]
[TD] $ 35.00[/TD]
[TD="colspan: 3"] $ 70.00
[/TD]
[/TR]
</tbody>[/TABLE]
I was thinking about using SumProducts, but could not get what I needed to working. Any ideas?