It can be done with Power Pivot but I don't think that is possible in your Excel Version
You need to use Power query to unpivot your original data in order to have AA1, AA2 as records in row. After that you need to create a measure as ratio between values and "n" column and create a Pivot Table from PowerPivot data model.
The query:
and the measure:HTML Code:
Formula:
ratio:=sum([value])/sum([n])
Bookmarks