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]
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: