I thnk this should be easy but I did not find it in a quick look through the archives.
I have an example where I want to find the state average (mean) but the way the state reports the data makes it more complicated. It does not tell me the state average but it does tell me the number of kids at each school and the average score of each school. While I would love to just add up all the schools' scores and find the average, I know that would give me the wrong answer b/c there are different numbers of kids in each school. So I school with 200 kids and a score of 50 cannot be counted the same as a school with 2000 kids and 100. I know the average is not 75 but 95.5.
What I currently do is add up the total number of students in a school and multiply that by the average score. I then add up all of these numbers for all of the schools and divide by the number of total students. Is there a more efficient way to do this through a pivot or a better formula?
Thanks!
I have an example where I want to find the state average (mean) but the way the state reports the data makes it more complicated. It does not tell me the state average but it does tell me the number of kids at each school and the average score of each school. While I would love to just add up all the schools' scores and find the average, I know that would give me the wrong answer b/c there are different numbers of kids in each school. So I school with 200 kids and a score of 50 cannot be counted the same as a school with 2000 kids and 100. I know the average is not 75 but 95.5.
What I currently do is add up the total number of students in a school and multiply that by the average score. I then add up all of these numbers for all of the schools and divide by the number of total students. Is there a more efficient way to do this through a pivot or a better formula?
Thanks!