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?



ABCD E F
Work CenterTypeItemDocument Number Work Time (Hour) sumif
YLJewelForest14.124.12
CAPolForest11.251.97
CVPolForest10.721.97
KYSetForest10.830.83
NAEngForest10.90.9
CRRepForest11.251.25
DLJewelSun23.317.07
JGPolSun228.43
ATSetSun22.825.6
CZJewelSun23.7517.07
ADPolSun21.388.43
CRRepSun23.338.51
CZJewelSun33.717.07
ADPolSun32.68.43
DLJewelSun3417.07
ATSetSun31.85.6
CRRepSun35.188.51
CZJewelSun42.3217.07
ADPolSun42.458.43
NAEngSun40.570.57
ATSetSun40.985.6

<tbody>
</tbody>
 
Last edited:

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
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
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

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet37

Worksheet Formulas
CellFormula
F2=SUMIFS(E:E,B:B,B2,C:C,C2)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,597
Messages
6,125,738
Members
449,255
Latest member
whatdoido

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