Compare hours worked to hours expected for period

shawnw

New Member
Joined
Apr 6, 2016
Messages
34
I have a worksheet ("Effort") which has one row for each task worked. It includes the date, the worker's name, the task name, and the number of hours of effort. Over the course of a week or a month, for example, I can see who worked on what and for how long. Something like this:

ABCD
1DATENAMETASKHOURS
21/1/2016JoePaint2
31/1/2016MaryPaint3
41/2/2016FredBake6
51/2/2016JoePrep7
61/2/2016MaryPrep7
71/4/2016FredPrime8

<tbody>
</tbody>

To be clear, I have data for many months and many people. More data than in the sample above.

I want to see all the effort during a time-box and compare it to the number of work hours in that timebox. Basically, I want to know what percentage f the hours are being being worked.

For example, January:

in January 2016 there were 6 weeks (20 work days) totaling 160 work hours:
  • Week 1 has 0 workdays
  • Week 2 has 5 workdays x 8 hours = 40 hours
  • Week 3 has 5 workdays x 8 hours = 40 hours
  • Week 4 has 5 workdays x 8 hours = 40 hours
  • Week 5 has 5 workdays x 8 hours = 40 hours
  • Week 6 has 0 workdays

Each month may have a different headcount of people (and different people) working varying hours of effort.

I have another worksheet that shows the number of hours I expect from each person in a typical work day. For example:

AB
1NameHours per Day
2Joe8
3Mary2
4Fred8
5Bill8
6George4

<tbody>
</tbody>

Let's assume that these five people (above) worked in January.

Joe = 20 x 8 = 160 hours expected in Jan
Mary = 20 x 2 = 40 hours expected in Jan
Fred =20 x 8 = 160 hours expected in Jan
Bill = 20 x 8 = 160 hours expected in Jan
George = 20 x 4 = 80 hours expected in Jan

Since these are the only people who logged hours in Jan, the total hours expected in Jan is 160+40+160+160+80=600

Now I want to compare the expected hours to the actual hours, by person individually and for the month as a whole. For example:

Joe = 100 hours actual in Jan (vs. 160 expected)
Mary = 40 hours actual in Jan (vs. 40 expected)
Fred = 180 hours actual in Jan (vs. 160 expected)
Bill = 80 hours actual in Jan (vs. 160 expected)
George = 80 hours actual in Jan (vs. 80 hours expected)

Again, the number of work hours expected of each person in Feb or Mar or Apr will be different, because there are a different number of work days in each month and each person has his or her own contract terms. Also, the mix of people who work in any particular month will be different as people roll onto and off of the various tasks.

I will complicate it further by indicating that some typical workdays and holidays and should not be counted in the expected" hours total for the week or the month they're in.

Okay... so now...

It was easy to create a chart that shows the actual effort by work week or month. What I am struggling with is how to show the actual versus the expected for whatever time-box the graph is displaying. For example, I may filter the pivot chart by month or week - or by person - and I need the "expected" hours to adjust dynamically.

How can I do this?

Thanks!
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,215,432
Messages
6,124,858
Members
449,194
Latest member
HellScout

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