Average while removing duplicate values

Jongo1

New Member
Joined
Aug 8, 2016
Messages
24
I have the following data, but much longer. What I want to do is take the average of the total summed hours. I have categories with sub categories with sub categories below that. In the pivot example below when I select average it averages by person. What I want is the average by the total amount of hours by Bar while having the names on the pivot. So instead of 27.946 average by name I would like the average of the bars 125.76 (140.33+111.19)/2.

Maybe I have to add another column to the raw data, but if I do a sumif, averageif, or countif etc. it will have duplicates.

[TABLE="width: 548"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 238"]
<tbody>[TR]
[TD]Row Labels[/TD]
[TD]Manufacturing[/TD]
[/TR]
[TR]
[TD]Soap[/TD]
[TD="align: right"]251.52[/TD]
[/TR]
[TR]
[TD]Bar 1[/TD]
[TD="align: right"]140.33[/TD]
[/TR]
[TR]
[TD]Tim[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Jim[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Jon[/TD]
[TD="align: right"]21.91[/TD]
[/TR]
[TR]
[TD]Sebby[/TD]
[TD="align: right"]118.42[/TD]
[/TR]
[TR]
[TD]Ralph[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Bar 2[/TD]
[TD="align: right"]111.19[/TD]
[/TR]
[TR]
[TD]Ralph[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sebby[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tim[/TD]
[TD="align: right"]67.76[/TD]
[/TR]
[TR]
[TD]Jon[/TD]
[TD="align: right"]43.43[/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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