Finding average in a single range with multiple criteria

bwatkiss

New Member
Hello, i’m trying to do a formula that gives me the average of scores from one column based on the group the individuals are in in another column. For example, let’s say I have 20 groups with four or five people in each of those groups designated in their column by their group number. In another column each of those individuals has a score, how would I then add up each of those scores for those in the same group and get the average for that group put into another column using a formula?

thank you!

bwatkiss

New Member
Here is a snippet of my sheet, each of these rows contains an individual, I need a formula to input into the cells of the Mean column that calculates the average from the Pts column based on the group from the Grp column. For example, the result for the first 4 rows of the Mean column would be the result of the average from the Pts column 23+34+39+45=141 divided by 4 = 35.3

However the groups won't always be in sequential order like my snippet, the group column could read like this.
1
3
5
1
6

 Grp Mean Pts 1 23 1 34 1 39 1 45 2 28 2 30 2 40 2 44 3 45 3 39 3 35 3 29 4 26 4 35 4 38 4 41 5 29 5 30 5 32 5 36 6 15 6 27 6 32 6 45

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

bwatkiss

New Member
Works perfect, thanks so much!!

Fluff

MrExcel MVP, Moderator
You're welcome & thanks for the feedback.

Replies
7
Views
185
Replies
4
Views
191
Replies
3
Views
215
Replies
3
Views
388
Replies
21
Views
295

Threads
1,140,922
Messages
5,703,176
Members
421,280
Latest member
Jaycee01

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back