Removing Duplicate Values when using SumIF

Jongo1

New Member
Joined
Aug 8, 2016
Messages
24
As you can see in the column sumif I have duplicate values for in row 2 and 3. What I am looking to do is remove that duplicate value so I can get an average of the Sum total for each document number. I need to leave all data intact for a pivot table. Running the pivot table in rows as Item/Document #/Work Center in Columns Type and in values work time, but using the average function averages each individual workcenter rather then the Document as a whole.

I am using the sumif based on =SUMIFS(E:E,B:B,B2,C:C,C2). PS how do you make your tables look pretty on this forum?



[TABLE="width: 649"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD] E[/TD]
[TD] F[/TD]
[/TR]
[TR]
[TD]Work Center[/TD]
[TD]Type[/TD]
[TD]Item[/TD]
[TD]Document Number[/TD]
[TD] Work Time (Hour)[/TD]
[TD] sumif[/TD]
[/TR]
[TR]
[TD]YL[/TD]
[TD]Jewel[/TD]
[TD]Forest[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]4.12[/TD]
[TD="align: right"]4.12[/TD]
[/TR]
[TR]
[TD]CA[/TD]
[TD]Pol[/TD]
[TD]Forest[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]1.25[/TD]
[TD="align: right"]1.97[/TD]
[/TR]
[TR]
[TD]CV[/TD]
[TD]Pol[/TD]
[TD]Forest[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.72[/TD]
[TD="align: right"]1.97[/TD]
[/TR]
[TR]
[TD]KY[/TD]
[TD]Set[/TD]
[TD]Forest[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.83[/TD]
[TD="align: right"]0.83[/TD]
[/TR]
[TR]
[TD]NA[/TD]
[TD]Eng[/TD]
[TD]Forest[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.9[/TD]
[TD="align: right"]0.9[/TD]
[/TR]
[TR]
[TD]CR[/TD]
[TD]Rep[/TD]
[TD]Forest[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]1.25[/TD]
[TD="align: right"]1.25[/TD]
[/TR]
[TR]
[TD]DL[/TD]
[TD]Jewel[/TD]
[TD]Sun[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]3.3[/TD]
[TD="align: right"]17.07[/TD]
[/TR]
[TR]
[TD]JG[/TD]
[TD]Pol[/TD]
[TD]Sun[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]8.43[/TD]
[/TR]
[TR]
[TD]AT[/TD]
[TD]Set[/TD]
[TD]Sun[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]2.82[/TD]
[TD="align: right"]5.6[/TD]
[/TR]
[TR]
[TD]CZ[/TD]
[TD]Jewel[/TD]
[TD]Sun[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]3.75[/TD]
[TD="align: right"]17.07[/TD]
[/TR]
[TR]
[TD]AD[/TD]
[TD]Pol[/TD]
[TD]Sun[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]1.38[/TD]
[TD="align: right"]8.43[/TD]
[/TR]
[TR]
[TD]CR[/TD]
[TD]Rep[/TD]
[TD]Sun[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]3.33[/TD]
[TD="align: right"]8.51[/TD]
[/TR]
[TR]
[TD]CZ[/TD]
[TD]Jewel[/TD]
[TD]Sun[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]3.7[/TD]
[TD="align: right"]17.07[/TD]
[/TR]
[TR]
[TD]AD[/TD]
[TD]Pol[/TD]
[TD]Sun[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]2.6[/TD]
[TD="align: right"]8.43[/TD]
[/TR]
[TR]
[TD]DL[/TD]
[TD]Jewel[/TD]
[TD]Sun[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]17.07[/TD]
[/TR]
[TR]
[TD]AT[/TD]
[TD]Set[/TD]
[TD]Sun[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]1.8[/TD]
[TD="align: right"]5.6[/TD]
[/TR]
[TR]
[TD]CR[/TD]
[TD]Rep[/TD]
[TD]Sun[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]5.18[/TD]
[TD="align: right"]8.51[/TD]
[/TR]
[TR]
[TD]CZ[/TD]
[TD]Jewel[/TD]
[TD]Sun[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]2.32[/TD]
[TD="align: right"]17.07[/TD]
[/TR]
[TR]
[TD]AD[/TD]
[TD]Pol[/TD]
[TD]Sun[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]2.45[/TD]
[TD="align: right"]8.43[/TD]
[/TR]
[TR]
[TD]NA[/TD]
[TD]Eng[/TD]
[TD]Sun[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]0.57[/TD]
[TD="align: right"]0.57[/TD]
[/TR]
[TR]
[TD]AT[/TD]
[TD]Set[/TD]
[TD]Sun[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]0.98[/TD]
[TD="align: right"]5.6[/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
What version of Excel are you using? If it's Excel 365 Fast Insider, there are new functions just created by Excel that will make quick work of this type of task. Otherwise, the task is more complex.

If you wish to make purdier posts in this forum, you need to download and install add-in (see my signature below for a link). I sue HTML Maker, which makes posts like these:


Book1
ABCDEF
1Work CenterTypeItemDocument NumberWork Time (Hour)sumif
2YLJewelForest14.124.12
3CAPolForest11.251.97
4CVPolForest10.721.97
5KYSetForest10.830.83
6NAEngForest10.90.9
7CRRepForest11.251.25
8DLJewelSun23.317.07
9JGPolSun228.43
10ATSetSun22.825.6
11CZJewelSun23.7517.07
12ADPolSun21.388.43
13CRRepSun23.338.51
14CZJewelSun33.717.07
15ADPolSun32.68.43
16DLJewelSun3417.07
17ATSetSun31.85.6
18CRRepSun35.188.51
19CZJewelSun42.3217.07
20ADPolSun42.458.43
21NAEngSun40.570.57
22ATSetSun40.985.6
Sheet37
Cell Formulas
RangeFormula
F2=SUMIFS(E:E,B:B,B2,C:C,C2)
 
Upvote 0
Thank you, but it's version 2016 and work won't install an update.


What version of Excel are you using? If it's Excel 365 Fast Insider, there are new functions just created by Excel that will make quick work of this type of task. Otherwise, the task is more complex.

If you wish to make purdier posts in this forum, you need to download and install add-in (see my signature below for a link). I sue HTML Maker, which makes posts like these:

ABCDEF
YLJewelForest
CAPolForest
CVPolForest
KYSetForest
NAEngForest
CRRepForest
DLJewelSun
JGPolSun
ATSetSun
CZJewelSun
ADPolSun
CRRepSun
CZJewelSun
ADPolSun
DLJewelSun
ATSetSun
CRRepSun
CZJewelSun
ADPolSun
NAEngSun
ATSetSun

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="bgcolor: #FFF2CC"]Work Center[/TD]
[TD="bgcolor: #FFF2CC"]Type[/TD]
[TD="bgcolor: #FFF2CC"]Item[/TD]
[TD="bgcolor: #FFF2CC"]Document Number[/TD]
[TD="bgcolor: #FFF2CC"]Work Time (Hour)[/TD]
[TD="bgcolor: #FFF2CC"]sumif[/TD]

[TD="align: center"]2[/TD]

[TD="align: right"]1[/TD]
[TD="align: right"]4.12[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E2EFDA]#E2EFDA[/URL] , align: right"]4.12[/TD]

[TD="align: center"]3[/TD]

[TD="align: right"]1[/TD]
[TD="align: right"]1.25[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E2EFDA]#E2EFDA[/URL] , align: right"]1.97[/TD]

[TD="align: center"]4[/TD]

[TD="align: right"]1[/TD]
[TD="align: right"]0.72[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E2EFDA]#E2EFDA[/URL] , align: right"]1.97[/TD]

[TD="align: center"]5[/TD]

[TD="align: right"]1[/TD]
[TD="align: right"]0.83[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E2EFDA]#E2EFDA[/URL] , align: right"]0.83[/TD]

[TD="align: center"]6[/TD]

[TD="align: right"]1[/TD]
[TD="align: right"]0.9[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E2EFDA]#E2EFDA[/URL] , align: right"]0.9[/TD]

[TD="align: center"]7[/TD]

[TD="align: right"]1[/TD]
[TD="align: right"]1.25[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E2EFDA]#E2EFDA[/URL] , align: right"]1.25[/TD]

[TD="align: center"]8[/TD]

[TD="align: right"]2[/TD]
[TD="align: right"]3.3[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E2EFDA]#E2EFDA[/URL] , align: right"]17.07[/TD]

[TD="align: center"]9[/TD]

[TD="align: right"]2[/TD]
[TD="align: right"]2[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E2EFDA]#E2EFDA[/URL] , align: right"]8.43[/TD]

[TD="align: center"]10[/TD]

[TD="align: right"]2[/TD]
[TD="align: right"]2.82[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E2EFDA]#E2EFDA[/URL] , align: right"]5.6[/TD]

[TD="align: center"]11[/TD]

[TD="align: right"]2[/TD]
[TD="align: right"]3.75[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E2EFDA]#E2EFDA[/URL] , align: right"]17.07[/TD]

[TD="align: center"]12[/TD]

[TD="align: right"]2[/TD]
[TD="align: right"]1.38[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E2EFDA]#E2EFDA[/URL] , align: right"]8.43[/TD]

[TD="align: center"]13[/TD]

[TD="align: right"]2[/TD]
[TD="align: right"]3.33[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E2EFDA]#E2EFDA[/URL] , align: right"]8.51[/TD]

[TD="align: center"]14[/TD]

[TD="align: right"]3[/TD]
[TD="align: right"]3.7[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E2EFDA]#E2EFDA[/URL] , align: right"]17.07[/TD]

[TD="align: center"]15[/TD]

[TD="align: right"]3[/TD]
[TD="align: right"]2.6[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E2EFDA]#E2EFDA[/URL] , align: right"]8.43[/TD]

[TD="align: center"]16[/TD]

[TD="align: right"]3[/TD]
[TD="align: right"]4[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E2EFDA]#E2EFDA[/URL] , align: right"]17.07[/TD]

[TD="align: center"]17[/TD]

[TD="align: right"]3[/TD]
[TD="align: right"]1.8[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E2EFDA]#E2EFDA[/URL] , align: right"]5.6[/TD]

[TD="align: center"]18[/TD]

[TD="align: right"]3[/TD]
[TD="align: right"]5.18[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E2EFDA]#E2EFDA[/URL] , align: right"]8.51[/TD]

[TD="align: center"]19[/TD]

[TD="align: right"]4[/TD]
[TD="align: right"]2.32[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E2EFDA]#E2EFDA[/URL] , align: right"]17.07[/TD]

[TD="align: center"]20[/TD]

[TD="align: right"]4[/TD]
[TD="align: right"]2.45[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E2EFDA]#E2EFDA[/URL] , align: right"]8.43[/TD]

[TD="align: center"]21[/TD]

[TD="align: right"]4[/TD]
[TD="align: right"]0.57[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E2EFDA]#E2EFDA[/URL] , align: right"]0.57[/TD]

[TD="align: center"]22[/TD]

[TD="align: right"]4[/TD]
[TD="align: right"]0.98[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E2EFDA]#E2EFDA[/URL] , align: right"]5.6[/TD]

</tbody>
Sheet37

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]F2[/TH]
[TD="align: left"]=SUMIFS(E:E,B:B,B2,C:C,C2)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,155
Members
453,021
Latest member
Justyna P

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