Sum Unique Values based on Criteria

Starrbuckk

New Member
Joined
Mar 24, 2016
Messages
19
Hi everyone,

I need help summing values that may repeat themselves and have a criteria that may repeat itself also.


[TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl65, width: 64"]X[/TD]
[TD="class: xl65, width: 64"]Y[/TD]
[/TR]
[TR]
[TD="class: xl66"]a[/TD]
[TD="class: xl66"]10[/TD]
[/TR]
[TR]
[TD="class: xl67"]b[/TD]
[TD="class: xl67"]10[/TD]
[/TR]
[TR]
[TD="class: xl67"]c[/TD]
[TD="class: xl67"]20[/TD]
[/TR]
[TR]
[TD="class: xl68"]a[/TD]
[TD="class: xl68"]20[/TD]
[/TR]
[TR]
[TD="class: xl67"]b[/TD]
[TD="class: xl67"]30[/TD]
[/TR]
[TR]
[TD="class: xl66"]a[/TD]
[TD="class: xl66"]10[/TD]
[/TR]
[TR]
[TD="class: xl67"]c[/TD]
[TD="class: xl67"]40[/TD]
[/TR]
[TR]
[TD="class: xl67"]c[/TD]
[TD="class: xl67"]30[/TD]
[/TR]
[TR]
[TD="class: xl66"]d[/TD]
[TD="class: xl66"]20[/TD]
[/TR]
[TR]
[TD="class: xl68"]d[/TD]
[TD="class: xl68"]50[/TD]
[/TR]
[TR]
[TD="class: xl68"]e[/TD]
[TD="class: xl68"]30[/TD]
[/TR]
[TR]
[TD="class: xl66"]d[/TD]
[TD="class: xl66"]20[/TD]
[/TR]
[TR]
[TD="class: xl66"]e[/TD]
[TD="class: xl66"]10[/TD]
[/TR]
[TR]
[TD="class: xl66"]e[/TD]
[TD="class: xl66"]10[/TD]
[/TR]
</tbody>[/TABLE]


The idea is to sum only unique values based on the specified criteria. Example of desired result:

[TABLE="width: 163"]
<tbody>[TR]
[TD]Condition X[/TD]
[TD]Sum Value Y[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]30[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]40[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD="align: right"]90[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD="align: right"]70[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD="align: right"]40[/TD]
[/TR]
</tbody>[/TABLE]

For some reason i can't upload any attachment to the post, but i hope i've explained myself well enough.:)
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,225,760
Messages
6,186,870
Members
453,380
Latest member
ShaeJ73

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top