Excluding Duplicate data in a SUMIF

brandybartz

New Member
Joined
Feb 28, 2017
Messages
14
My data source has duplicates in it that I need to only sum once and exclude the others. Below is my SUMIF that just sums everything but I need to add a portion that tells it to exclude the duplicates for each section of the formula.

=IFERROR(SUMIF('Item ST Weekly'!$C$1:$C$20164,CONCATENATE($D$8,"-",$B9,"-","Winner","-","Winner"),'Item ST Weekly'!$M$1:$M$20164)/(SUMIF('Item ST Weekly'!$C$1:$C$20164,CONCATENATE($D$8,"-",$B9,"-","Winner","-","Winner"),'Item ST Weekly'!$M$1:$M$20164)+SUMIF('Item ST Weekly'!$C$1:$C$20164,CONCATENATE($D$8,"-",$B9,"-","Winner","-","Winner"),'Item ST Weekly'!$N$1:$N$20164))," ")
<colgroup><col width="1790" style="width: 1343pt; mso-width-source: userset; mso-width-alt: 65462;"> <tbody> </tbody>

<colgroup><col width="64" style="width: 48pt;"> <tbody> </tbody>
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
If you only need a single record of duplicates, then we can look for the first record.

=IFERROR(VLOOKUP($D$8&"-"&$B9&"-"&"Winner-Winner",'Item ST Weekly'!C1:M20164,11,0)/ (VLOOKUP($D$8&"-"&$B9&"-"&"Winner-Winner",'Item ST Weekly'!C1:M20164,11,0)+VLOOKUP($D$8&"-"&$B9&"-"&"Winner-Winner",'Item ST Weekly'!C1:N20164,12,0))," ")
 
Upvote 0
I have more than one value that needs to be summed. Is there some kind of qualifier column I could add that would tag the first value as 1 and all other duplicates as 0. Then I could add that as part of my concat for summing??
 
Upvote 0
. Is there some kind of qualifier column I could add that would tag the first value as 1 and all other duplicates as 0. Then I could add that as part of my concat for summing??


Hoja5

AB
1
2data20
3data30
4data40
5data51
6data61
7data20
8data31
9data41
10data21

<tbody>
</tbody>

Formula
CellFormula
B2=IF(COUNTIF(A2:$A$10,A2)>1,0,1)

<tbody>
</tbody>

<tbody>
</tbody>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,464
Messages
6,124,967
Members
449,200
Latest member
Jamil ahmed

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