SUMIF for Unique Values

Dmcnich15

New Member
Joined
Feb 14, 2015
Messages
8
Hi Guys,

Ive tried playing around and I cant get it to work correctly. I have the original formula below but now I need it to sum if column A is unique. I tried with frequency but i cant seem to get it to work.

=SUMIFS('Nego Stats'!$AM:$AM,'Nego Stats'!$F:$F,"New SA",'Nego Stats'!$Q:$Q,"CM")

I want it to be the below
If column F = New SA
If Column Q = CM
if Column A is unique
then add cell in column AM to sum

Let me know if you have any questions and thank you!
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Is a helper column acceptable? If so, try


Excel 2010
ABCDEFG
1Column AColumn B (F)Column C (Q)Sum column (AM)Helper columnSum with criteria
2abcOld SAAB123 556
3sweNew SACM456Unique
4abcNew SAAB789
5defNew SACM100Unique
6dreOld SACM200Unique
7ghiOld SACM300Unique
Sheet2
Cell Formulas
RangeFormula
G2=SUMIFS(D:D,B:B,"New SA",C:C,"CM",E:E,"Unique")
E2=IF(COUNTIF(A:A,A2)=1,"Unique","")


Obviously, you will have to change the ranges to fit your data.
 
Last edited:
Upvote 0
If a helper column is not acceptable, try

=SUMPRODUCT((COUNTIF(A2:A7,A2:A7)=1)*(B2:B7="New SA")*(C2:C7="CM")*(D2:D7))

Note that this formula refers to the table in post #2.
 
Upvote 0

Forum statistics

Threads
1,216,252
Messages
6,129,717
Members
449,529
Latest member
SCONWAY

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