Calculate Average Based on Pivot Table

mazcarate

New Member
Joined
May 18, 2017
Messages
4
I would like to ask for your help to calculate the average hours it takes to complete an Assignment Task (O Draft, F Draft, DD Draft)
My source data is a timesheet. The user will input their hours and tasks. They can work on a task multiples times during the day and on multiples days.
The formula should divided the Total Hours spend on an Assignment Task by the number of different Assignment Names.


Example for F Draft:
Date / Project / Assignment Name / Course Duration / Assignment Type / Assignment Task / Total Hours
4/6/2017 / Project 2 / Assignment Blue / 30 min / IL / F Draft / 8.00
4/7/2017 / Project 2 / Assignment Indigo / 15 min / IL / F Draft / 7.00
4/8/2017 / Project 3 / Assignment Lime / 45 min / IL F Draft / 8.00
4/9/2017 / Project 3 / Assignment Lime / 45 min / IL F Draft / 9.00


Report!B8=(8+7+(8+9))/3=10.66
It's divided by 3 because there are three distinctive Assignments (Blue, Indigo, Lime). My Pivot Tables uses SUM of Total Hours.
If I change it to Average of Total hours, the result is wrong. Report!B8=(((8+7)/2)+((8+9)/2))/2=8.0


Thank you
 

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).

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