Calculate Average Number of Tasks Per day, productivity

eddiegnz1

New Member
Joined
Jun 5, 2012
Messages
40
We’re trying to calculate the average number of tasks per day for each employee. The goal is to measure productivity of employees. This needs to be measured everyday.
<o:p> </o:p>
So our goal is to report it as follows (for example);
<o:p> </o:p>
The average tasks per day over the last 14 days for Mike was 3.79.
Mikes average was 4.03 for the last 90 days. But this must only take into account the day on which they actually completed at least one task so that days with zero tasks are not measured into their average because they didn't work that day.
<o:p> </o:p>
The data is as follows (not actual data, example only);
<o:p> </o:p>
A<o:p></o:p>
B<o:p></o:p>
C<o:p></o:p>
1<o:p></o:p>
Name<o:p></o:p>
Date<o:p></o:p>
Task<o:p></o:p>
2<o:p></o:p>
Mike<o:p></o:p>
8/1/2012<o:p></o:p>
billing<o:p></o:p>
3<o:p></o:p>
Cindy<o:p></o:p>
8/1/2012<o:p></o:p>
payments<o:p></o:p>
4<o:p></o:p>
Andy<o:p></o:p>
8/1/2012<o:p></o:p>
billing<o:p></o:p>
5<o:p></o:p>
Mike<o:p></o:p>
8/1/2012<o:p></o:p>
billing<o:p></o:p>
6<o:p></o:p>
Mike<o:p></o:p>
8/1/2012<o:p></o:p>
modify<o:p></o:p>
7<o:p></o:p>
Cindy<o:p></o:p>
8/1/2012<o:p></o:p>
modify<o:p></o:p>
8<o:p></o:p>
Cindy<o:p></o:p>
8/2/2012<o:p></o:p>
payments<o:p></o:p>
9<o:p></o:p>
Andy<o:p></o:p>
8/2/2012<o:p></o:p>
payments<o:p></o:p>
10<o:p></o:p>
Cindy<o:p></o:p>
8/2/2012<o:p></o:p>
modify<o:p></o:p>

<TBODY>
</TBODY>
<o:p> </o:p>
Notice that on any given day, an employee might do any number of tasks or none. But if they do none, then it should not be included in the calculation of their average because they didn't work that day. The dates are always in ascending order. In the above example, Cindy did only two tasks on 08-01-12 while Andy only did one. But Andy's 90 day average might be 2.89 tasks per day.
<o:p> </o:p>
Kind Thanks,
Eddie
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
You might want to try a Pivot Table first, especially as your data is set up to support one.
 
Upvote 0
We’re trying to calculate the average number of tasks per day for each employee. The goal is to measure productivity of employees. This needs to be measured everyday.
<o:p></o:p>
So our goal is to report it as follows (for example);
<o:p></o:p>
The average tasks per day over the last 14 days for Mike was 3.79.
Mikes average was 4.03 for the last 90 days. But this must only take into account the day on which they actually completed at least one task so that days with zero tasks are not measured into their average because they didn't work that day.
<o:p></o:p>
The data is as follows (not actual data, example only);

<o:p></o:p>

A<o:p></o:p>

B<o:p></o:p>

C<o:p></o:p>

1<o:p></o:p>
Name<o:p></o:p>
Date<o:p></o:p>
Task<o:p></o:p>

2<o:p></o:p>
Mike<o:p></o:p>

8/1/2012<o:p></o:p>
billing<o:p></o:p>

3<o:p></o:p>
Cindy<o:p></o:p>

8/1/2012<o:p></o:p>
payments<o:p></o:p>

4<o:p></o:p>
Andy<o:p></o:p>

8/1/2012<o:p></o:p>
billing<o:p></o:p>

5<o:p></o:p>
Mike<o:p></o:p>

8/1/2012<o:p></o:p>
billing<o:p></o:p>

6<o:p></o:p>
Mike<o:p></o:p>

8/1/2012<o:p></o:p>
modify<o:p></o:p>

7<o:p></o:p>
Cindy<o:p></o:p>

8/1/2012<o:p></o:p>
modify<o:p></o:p>

8<o:p></o:p>
Cindy<o:p></o:p>

8/2/2012<o:p></o:p>
payments<o:p></o:p>

9<o:p></o:p>
Andy<o:p></o:p>

8/2/2012<o:p></o:p>
payments<o:p></o:p>

10<o:p></o:p>
Cindy<o:p></o:p>

8/2/2012<o:p></o:p>
modify<o:p></o:p>

<tbody>
</tbody>
<o:p></o:p>
Notice that on any given day, an employee might do any number of tasks or none. But if they do none, then it should not be included in the calculation of their average because they didn't work that day. The dates are always in ascending order. In the above example, Cindy did only two tasks on 08-01-12 while Andy only did one. But Andy's 90 day average might be 2.89 tasks per day.
<o:p></o:p>
Kind Thanks,
Eddie

Not entirely clear. I could calculate an average of 0.14 for Mike based on the last 14 workdays (not 14 days) using the above sample. Can you verify the figure?
 
Upvote 0
the table in my post is not actual data. it's just an example of how it's formated. The actual data will result in an average of 3 to 5 tasks per day per employee. The actual data has seven thousand rows and each date has about 50 tasks per date from all the employees combined.
 
Upvote 0
the table in my post is not actual data. it's just an example of how it's formated. The actual data will result in an average of 3 to 5 tasks per day per employee. The actual data has seven thousand rows and each date has about 50 tasks per date from all the employees combined.

Try to verify the posted Mike figure though for the sample you provided and the last 14 workdays (without holidays if any).
 
Upvote 0
I'm looking to achieve the following logic;
* out of the last 14 unique dates in the table, how many unique dates did mikes name occur
* in the last 14 dates in the table, how many tasks have mikes name next to it
* then divide the number of mikes tasks by the number of unique dates
 
Last edited:
Upvote 0
Cindy's average is 2.00 over the last two days. The sample data I provided only has two dates so the 14 day average can not be calculated from the sample data I provided. You'd have to imagine a table that has thousands of dates on it and each and every weekday is included in the actual data.

I was asking for Mike...

So I'm looking to achieve the following logic;
* in the last 14 days, how many dates did mikes name occur
* in the last 14 days, how many tasks have mikes name next to it
* then divide the number of mikes tasks by the number of dates

That's exactly the logic I followed. The difference: I use 14 working days, not 14 days. Any comment on the latter point?
 
Upvote 0
it is not based on working days rather it's based on the dates that appear on the table. In other words, it's based on the last 14 unique dates that appear on the table.

I'm looking to achieve the following logic;
* out of the last 14 unique dates in the table, how many unique dates did mikes name occur
* in the last 14 dates in the table, how many tasks have mikes name next to it
* then divide the number of mikes tasks by the number of unique dates
 
Upvote 0
it is not based on working days rather it's based on the dates that appear on the table. In other words, it's based on the last 14 unique dates that appear on the table.

I'm looking to achieve the following logic;
* out of the last 14 unique dates in the table, how many unique dates did mikes name occur
* in the last 14 dates in the table, how many tasks have mikes name next to it
* then divide the number of mikes tasks by the number of unique dates

Precision is essential...

Average needs a denominator. Possibilities are:

a) last 14 days, this will include weekends and possibly holidays;
b) last 14 workdays, this excludes weekends and possibly holidays;
c) last 14 unique days the data table records.

You want the (c) option, one that requires a bit more processing. What follows is the sample you poste with an additional record for Cindy

0 14
NameDateTaskDistinct Date NameAvg
Mike8/1/2012billing1 Mike0.142857143
Cindy8/1/2012payments1 Cindy0.214285714
Andy8/1/2012billing1 Andy0.142857143
Mike8/1/2012billing1
Mike8/1/2012modify1
Cindy8/1/2012modify1
Cindy8/2/2012payments2
Cindy8/2/2012savings2
Andy8/2/2012payments2
Cindy8/2/2012modify2

<colgroup><col style="width: 48pt;" width="64"> <col style="width: 63pt; mso-width-source: userset; mso-width-alt: 2986;" width="84"> <col style="width: 96pt; mso-width-source: userset; mso-width-alt: 4551;" width="128"> <col style="width: 103pt; mso-width-source: userset; mso-width-alt: 4864;" width="137"> <col style="width: 48pt;" width="64"> <col style="width: 53pt; mso-width-source: userset; mso-width-alt: 2503;" width="70"> <col style="width: 66pt; mso-width-source: userset; mso-width-alt: 3128;" width="88"> <tbody>
</tbody>

A2:C12 houses the sample, the headers included.

D1 must house a 0.

D3, just enter and copy down:
Rich (BB code):
=IF(ISNUMBER(MATCH($B3,$B$2:B2,0)),VLOOKUP($B3,$B2:$D2,3,0),LOOKUP(9.99E+307,$D$1:$D2)+1)

The foregoing tags the unique dates.

The employee names are located in the range in F.

G1: 14 (a size, i.e., a window for the last unique days)

G3, control+shift+enter, not just enter, and copy down:
Rich (BB code):
=SUM(IF(FREQUENCY(IF($C$3:$C$12<>"",IF($A$3:$A$12=$F3,IF($D$3:$D$12<=$G$1,
  MATCH($C$3:$C$12,$C$3:$C$12,0)))),ROW($A$3:$A$12)-ROW($A$3)+1),1))/$G$1
 
Upvote 0
Aladin, would you please accept my apology for not being clear. I am not very good at putting this stuff into words. But now I know that you’re clear that it is possibility C from your list of three.
<o:p></o:p>
But there’s still a bit more that I must try to clarify. For Cindy, in the above sample, her average will be 2.50 not 0.214285. That’s because she completed 5 tasks in two days. So 5 divided by 2 equals 2.5.
<o:p></o:p>
The actual data set will definitely have more than 14 unique dates. It will have hundreds of unique dates.
<o:p></o:p>
So for the last 14 unique dates in which Cindy completed at least one task, she might have completed 30 tasks. So 30 divided by 14 would be 2.14.

Kind thanks,
Eddie
 
Upvote 0

Forum statistics

Threads
1,218,161
Messages
6,140,855
Members
450,318
Latest member
Xyphus

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