Hi, I'm trying to sum a list of values if two criteria are met in two different columns. See below for example:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Invoice ID (Criteria 1)[/TD]
[TD]TRUE/FALSE (Criteria 2)[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]True[/TD]
[TD]$60[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]False[/TD]
[TD]$10[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]True[/TD]
[TD]$50[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]False[/TD]
[TD]$50[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]False[/TD]
[TD]$30[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]True[/TD]
[TD]$30[/TD]
[/TR]
</tbody>[/TABLE]
What I'm do is come up with a formula that will only add the amount in column C if the invoice ID (column A) is unique AND the value is "TRUE" in column B.
So for instance, the desired outcome for the formula based on the data above would be $60 + $50 + $30 = $140.
Any help would be greatly appreciated.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Invoice ID (Criteria 1)[/TD]
[TD]TRUE/FALSE (Criteria 2)[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]True[/TD]
[TD]$60[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]False[/TD]
[TD]$10[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]True[/TD]
[TD]$50[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]False[/TD]
[TD]$50[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]False[/TD]
[TD]$30[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]True[/TD]
[TD]$30[/TD]
[/TR]
</tbody>[/TABLE]
What I'm do is come up with a formula that will only add the amount in column C if the invoice ID (column A) is unique AND the value is "TRUE" in column B.
So for instance, the desired outcome for the formula based on the data above would be $60 + $50 + $30 = $140.
Any help would be greatly appreciated.