Hi All,
Below is a sample of the information that I'm trying to evaluate:
Sheet 1 - Weekly Breakdown of Employees by Department
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]W/B[/TD]
[TD]1[/TD]
[TD][/TD]
[TD]6Jun[/TD]
[TD]13Jun[/TD]
[TD]20Jun[/TD]
[TD]27Jun[/TD]
[TD]4Jul[/TD]
[TD]11Jul[/TD]
[TD]18Jul[/TD]
[TD]25Jul[/TD]
[/TR]
[TR]
[TD]Month[/TD]
[TD]2[/TD]
[TD][/TD]
[TD]1Jun[/TD]
[TD]1Jun[/TD]
[TD]1Jun[/TD]
[TD]1Jun[/TD]
[TD]1Jul[/TD]
[TD]1Jul[/TD]
[TD]1Jul[/TD]
[TD]1Jul[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]3[/TD]
[TD]HR[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]4[/TD]
[TD]Finance[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]4[/TD]
[TD]4[/TD]
[TD]4[/TD]
[TD]4[/TD]
[TD]4[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]5[/TD]
[TD]IT[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
Sheet 2 - Average Monthly Breakdown of Employees by Department
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]should be[/TD]
[TD]should be[/TD]
[/TR]
[TR]
[TD]Month[/TD]
[TD]1[/TD]
[TD][/TD]
[TD]1Jun[/TD]
[TD]1Jul[/TD]
[TD]1Jun[/TD]
[TD]1Jul[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2[/TD]
[TD]HR[/TD]
[TD]1[/TD]
[TD]3[/TD]
[TD]2.25[/TD]
[TD]3.5[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2[/TD]
[TD]Finance[/TD]
[TD]2[/TD]
[TD]4[/TD]
[TD]3[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]4[/TD]
[TD]IT[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]1.25[/TD]
[TD]1.75[/TD]
[/TR]
</tbody>[/TABLE]
I am trying to show the average employee count per department. I have tried using the following formula: AVERAGEIF('Sheet1'!$A$3:$A$5,$A2,INDEX('Sheet1'!$B$3:$I$5,0,MATCH(B$1,'Sheet1'!$B$2:$I$2,0)))
But it gives me the above incorrect averages (as shown above). What the averages actually should be is also shown above. It seems to just take the first week or the month value instead of averaging all of the weeks that belong in the month.
Any help would be greatly appreciated.
Thanks in advance!
Below is a sample of the information that I'm trying to evaluate:
Sheet 1 - Weekly Breakdown of Employees by Department
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]W/B[/TD]
[TD]1[/TD]
[TD][/TD]
[TD]6Jun[/TD]
[TD]13Jun[/TD]
[TD]20Jun[/TD]
[TD]27Jun[/TD]
[TD]4Jul[/TD]
[TD]11Jul[/TD]
[TD]18Jul[/TD]
[TD]25Jul[/TD]
[/TR]
[TR]
[TD]Month[/TD]
[TD]2[/TD]
[TD][/TD]
[TD]1Jun[/TD]
[TD]1Jun[/TD]
[TD]1Jun[/TD]
[TD]1Jun[/TD]
[TD]1Jul[/TD]
[TD]1Jul[/TD]
[TD]1Jul[/TD]
[TD]1Jul[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]3[/TD]
[TD]HR[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]4[/TD]
[TD]Finance[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]4[/TD]
[TD]4[/TD]
[TD]4[/TD]
[TD]4[/TD]
[TD]4[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]5[/TD]
[TD]IT[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
Sheet 2 - Average Monthly Breakdown of Employees by Department
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]should be[/TD]
[TD]should be[/TD]
[/TR]
[TR]
[TD]Month[/TD]
[TD]1[/TD]
[TD][/TD]
[TD]1Jun[/TD]
[TD]1Jul[/TD]
[TD]1Jun[/TD]
[TD]1Jul[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2[/TD]
[TD]HR[/TD]
[TD]1[/TD]
[TD]3[/TD]
[TD]2.25[/TD]
[TD]3.5[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2[/TD]
[TD]Finance[/TD]
[TD]2[/TD]
[TD]4[/TD]
[TD]3[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]4[/TD]
[TD]IT[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]1.25[/TD]
[TD]1.75[/TD]
[/TR]
</tbody>[/TABLE]
I am trying to show the average employee count per department. I have tried using the following formula: AVERAGEIF('Sheet1'!$A$3:$A$5,$A2,INDEX('Sheet1'!$B$3:$I$5,0,MATCH(B$1,'Sheet1'!$B$2:$I$2,0)))
But it gives me the above incorrect averages (as shown above). What the averages actually should be is also shown above. It seems to just take the first week or the month value instead of averaging all of the weeks that belong in the month.
Any help would be greatly appreciated.
Thanks in advance!