Applying calculated values from a pivot table to individual records

mcannally

New Member
Joined
Mar 24, 2013
Messages
13
I have 2 columns of data (see example below):

A 10
B 5
A 20
A 30
B 15
C 10

I need a 3rd column which displays the average of each group for each record in that group, to get the following 3rd column results:

20 (which is the average of A)
10 (which is the average of B)
20
20
10
10 (which is the average of C)

Pivot table to calculate the averages? What then? Thanks.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
maybe something like...

=AVERAGEIF($A$2:$A$7,A2,$B$2:$B$7)

assuming your data starts in a2, copied down
 
Upvote 0

Forum statistics

Threads
1,196,235
Messages
6,014,158
Members
441,807
Latest member
sjkenjalo

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

Which adblocker are you using?

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
Back
Top