I am using Excel 2007 on Windows 7.
I have a sheet that I use to track employees and their sales numbers.
On sheet 1, I have:
column A - year (e.g. 2013) (column named YEAR)
column B - week (e.g. Jun 3 - Jun 9) (column named WEEK)
column C - region (North America, South America, Europe, Asia, Australia) (column named REGION)
column D - employee name (lastname, firstname) (column named EMPLOYEE)
column E - sales in $ for that week. (column named SALES)
All employees are listed on the same sheet. The sheet is sorted by the year then week, so new values are added to the bottom.
On sheet 2, I have:
column A - year
column B - region
column C - employee name
column D - total sales on year
column E - average sales/week on year
column F - average sales/week on last 5 weeks.
The problem I'm having is with the formula for column E in calculating the average on the last 5 weeks per employee.
For column E, I used, =AVERAGEIFS(SALES,YEAR,$A3,REGION,$B3,EMPLOYEE,$C3)
I'm not sure if I am able to adapt this formula to column F or if a different formula is needed. Most employees have more than 5 weeks of sales so far this year, but we do also have a few new employees with less than 5 weeks of sales. The formula for column F should also be able to adjust for employees with less than 5 weeks.
Any help with this formula would be appreciated. Thank you!
Bookmarks