I have a data table that lists payments to my researchers, with income source, month, and salary.
I'm trying to create a pivot table that shows the average monthly income of each of my researchers.
Is there a way to create a function that will calculate the average monthly income of my researchers, when more than one grant can pay for one researcher's salary in any given month?
Average monthly salary from multiple income source?
-
- 4StarLounger
- Posts: 437
- Joined: 05 Nov 2012, 20:02
-
- Administrator
- Posts: 78549
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Average monthly salary from multiple income source?
You cannot do that in a pivot table. If you set the summary function to average, Excel will average over the source data, not over the monthly totals, resulting in incorrect results.
You'd have to create an ordinary list/table that calculates the monthly totals per researcher, and use that as data source for the pivot table that calculates the monthly averages.
You'd have to create an ordinary list/table that calculates the monthly totals per researcher, and use that as data source for the pivot table that calculates the monthly averages.
Best wishes,
Hans
Hans
-
- 4StarLounger
- Posts: 437
- Joined: 05 Nov 2012, 20:02
Re: Average monthly salary from multiple income source?
How do you do that? That sounds like something that a pivot table is built to do.HansV wrote:You'd have to create an ordinary list/table that calculates the monthly totals per researcher,
-
- Administrator
- Posts: 78549
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Average monthly salary from multiple income source?
That's possible, for example like this:
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans
Hans
-
- 4StarLounger
- Posts: 437
- Joined: 05 Nov 2012, 20:02
Re: Average monthly salary from multiple income source?
Thanks! I think I can work off of those pivot tables to calculate the average salary.HansV wrote:That's possible, for example like this: