A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Put this formula and drag down -
=AVERAGEIF($A$1:$A$11,A1,$B$1:$B$11)
It will populate all rows with average.
If you want to show it only once for a value -
=IF(A1=A2,"",AVERAGEIF($A$1:$A$11,A1,$B$1:$B$11))