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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,225,739
Messages
6,186,743
Members
453,370
Latest member
juliewar

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