Hi all,
I'm trying to build a worksheet for our office manager to report on the average number of hours worked on each completed task, each week. It has two sheets - one has the numbers she's looking for, and one has the raw data from the timesheet program.
The data I get from my timesheet software is just raw
Project . Date completed . Hours worked
I'm trying to get an AVERAGE, by project, of the hours worked LAST WEEK
If I add a column to the raw data that has the Weeknum, then I can easily use AverageIF to get the number. I'm trying to AVOID adding that column however and just putting the formula for the weeknumber directly into the Average if function, so she just has to look at a table of data and not deal with the raw data sheet aside from pasting it in there.
This works, when I put the week number into the Export sheet in column D:
=AVERAGEIFS(Export!C:C,Export!A:A,Numbers!A4,Export!D:D,WEEKNUM(TODAY())-1)
But I'm trying to get to something like this:
=AVERAGEIFS(Export!C:C,Export!A:A,Numbers!A4,Export!C:C,WEEKNUM(TODAY())-1)
i.e., Average IF (RawData!C:C, If Project = e.g., "Project 1", If Date completed was last week (e.g., week number = 41).
Anyone know how I can get this? Thanks!
I'm trying to build a worksheet for our office manager to report on the average number of hours worked on each completed task, each week. It has two sheets - one has the numbers she's looking for, and one has the raw data from the timesheet program.
The data I get from my timesheet software is just raw
Project . Date completed . Hours worked
I'm trying to get an AVERAGE, by project, of the hours worked LAST WEEK
If I add a column to the raw data that has the Weeknum, then I can easily use AverageIF to get the number. I'm trying to AVOID adding that column however and just putting the formula for the weeknumber directly into the Average if function, so she just has to look at a table of data and not deal with the raw data sheet aside from pasting it in there.
This works, when I put the week number into the Export sheet in column D:
=AVERAGEIFS(Export!C:C,Export!A:A,Numbers!A4,Export!D:D,WEEKNUM(TODAY())-1)
But I'm trying to get to something like this:
=AVERAGEIFS(Export!C:C,Export!A:A,Numbers!A4,Export!C:C,WEEKNUM(TODAY())-1)
i.e., Average IF (RawData!C:C, If Project = e.g., "Project 1", If Date completed was last week (e.g., week number = 41).
Anyone know how I can get this? Thanks!