I want to find the sum of the range within the sector within the zone but only summing unique values. For example, I want to find the sum of the Codes within Sector Ice Cream, Zone 1. However I don't want to count duplicates within that range. $63 Dollars should be the total of Sector Ice Cream, Zone 1 because it removes duplicate values within that range. $103 should be the total of Sector Ice Cream, Zone 5. What formula would be the best way to do this. Thank you in advance for your help!
[TABLE="width: 785"]
<colgroup><col span="5" style="text-align: center;"></colgroup><tbody>[TR]
[TD="align: center"][TABLE="width: 785"]
<colgroup><col span="5"></colgroup><tbody>[TR]
[TD]Sector[/TD]
[TD]Zone[/TD]
[TD]Code 1 $[/TD]
[TD]Code 2 $[/TD]
[TD]Code 3 $[/TD]
[/TR]
[TR]
[TD]Ice Cream[/TD]
[TD]1[/TD]
[TD]$30[/TD]
[TD]$20[/TD]
[TD]$5[/TD]
[/TR]
[TR]
[TD]Ice Cream[/TD]
[TD]1[/TD]
[TD]$20[/TD]
[TD]$30[/TD]
[TD]$8[/TD]
[/TR]
[TR]
[TD]Ice Cream[/TD]
[TD]2[/TD]
[TD]$40[/TD]
[TD]$26[/TD]
[TD]$46[/TD]
[/TR]
[TR]
[TD]Ice Cream[/TD]
[TD]3[/TD]
[TD]$24[/TD]
[TD]$74[/TD]
[TD]$27[/TD]
[/TR]
[TR]
[TD]Ice Cream[/TD]
[TD]4[/TD]
[TD]$94[/TD]
[TD]$27[/TD]
[TD]$83[/TD]
[/TR]
[TR]
[TD]Ice Cream[/TD]
[TD]5[/TD]
[TD]$55[/TD]
[TD]$5[/TD]
[TD]$43[/TD]
[/TR]
[TR]
[TD]Ice Cream[/TD]
[TD]5[/TD]
[TD]$5[/TD]
[TD]$55[/TD]
[TD]$5[/TD]
[/TR]
[TR]
[TD]Ice Cream[/TD]
[TD]5[/TD]
[TD]$43[/TD]
[TD]$5[/TD]
[TD]$55[/TD]
[/TR]
[TR]
[TD]Frozen Yogurt[/TD]
[TD]1[/TD]
[TD]$3[/TD]
[TD]$2[/TD]
[TD]$1[/TD]
[/TR]
[TR]
[TD]Frozen Yogurt[/TD]
[TD]1[/TD]
[TD]$3[/TD]
[TD]$4[/TD]
[TD]$5[/TD]
[/TR]
[TR]
[TD]Frozen Yogurt[/TD]
[TD]2[/TD]
[TD]$4[/TD]
[TD]$3[/TD]
[TD]$2[/TD]
[/TR]
[TR]
[TD]Frozen Yogurt[/TD]
[TD]3[/TD]
[TD]$5[/TD]
[TD]$6[/TD]
[TD]$8[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 785"]
<colgroup><col span="5" style="text-align: center;"></colgroup><tbody>[TR]
[TD="align: center"][TABLE="width: 785"]
<colgroup><col span="5"></colgroup><tbody>[TR]
[TD]Sector[/TD]
[TD]Zone[/TD]
[TD]Code 1 $[/TD]
[TD]Code 2 $[/TD]
[TD]Code 3 $[/TD]
[/TR]
[TR]
[TD]Ice Cream[/TD]
[TD]1[/TD]
[TD]$30[/TD]
[TD]$20[/TD]
[TD]$5[/TD]
[/TR]
[TR]
[TD]Ice Cream[/TD]
[TD]1[/TD]
[TD]$20[/TD]
[TD]$30[/TD]
[TD]$8[/TD]
[/TR]
[TR]
[TD]Ice Cream[/TD]
[TD]2[/TD]
[TD]$40[/TD]
[TD]$26[/TD]
[TD]$46[/TD]
[/TR]
[TR]
[TD]Ice Cream[/TD]
[TD]3[/TD]
[TD]$24[/TD]
[TD]$74[/TD]
[TD]$27[/TD]
[/TR]
[TR]
[TD]Ice Cream[/TD]
[TD]4[/TD]
[TD]$94[/TD]
[TD]$27[/TD]
[TD]$83[/TD]
[/TR]
[TR]
[TD]Ice Cream[/TD]
[TD]5[/TD]
[TD]$55[/TD]
[TD]$5[/TD]
[TD]$43[/TD]
[/TR]
[TR]
[TD]Ice Cream[/TD]
[TD]5[/TD]
[TD]$5[/TD]
[TD]$55[/TD]
[TD]$5[/TD]
[/TR]
[TR]
[TD]Ice Cream[/TD]
[TD]5[/TD]
[TD]$43[/TD]
[TD]$5[/TD]
[TD]$55[/TD]
[/TR]
[TR]
[TD]Frozen Yogurt[/TD]
[TD]1[/TD]
[TD]$3[/TD]
[TD]$2[/TD]
[TD]$1[/TD]
[/TR]
[TR]
[TD]Frozen Yogurt[/TD]
[TD]1[/TD]
[TD]$3[/TD]
[TD]$4[/TD]
[TD]$5[/TD]
[/TR]
[TR]
[TD]Frozen Yogurt[/TD]
[TD]2[/TD]
[TD]$4[/TD]
[TD]$3[/TD]
[TD]$2[/TD]
[/TR]
[TR]
[TD]Frozen Yogurt[/TD]
[TD]3[/TD]
[TD]$5[/TD]
[TD]$6[/TD]
[TD]$8[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]