Hi,
I have an Excel 2010 document that gives the average occupancy of each agent over a given number of weeks. I am using the following calculation
=AVERAGE(SUMIF(A$2:A$200,L3,B$2:B$200),SUMIF(D$2:D$200,L3,E$2:E$200),SUMIF(H$2:H$200,L3,I$2:I$200),SUMIF(L$2:L$200,L3,M$2:M$200))
This seems to work well if each agent is in every week. When the agent does not appear in one of the weeks, it still divides by 4 instead of the actual number of weeks they were here (e.g. 3). Agent 5 in the attached has an average 4 week occupancy of 60 = (90+72+76+0)/4 when it should be 79 = (90+72+76)/3. Is anyone able to advise of a better calculation I could use?
thanks in advance
Bookmarks