Pivot Tables and Weighted Averages

Pivot Tables are a very useful feature in Spreadsheets, they allow you to do things that might otherwise require code to iterate around on.  My mental model of them is not great though I find there is a great deal of trial and error to get them working for me.

Anyway I recently had to calculate a weighted average and found this web page:

https://excel.tips.net/T002900_Weighted_Averages_in_a_PivotTable.html

very useful.  Essentially you need to add an extra column in your data with an intermediate step of weight*value that you can then sum in the pivot table.

Although the tutorial example there is done in Excel I actual used Libreoffice as despite the fact I now mainly fill out electronic paperwork I have clung onto my Linux box 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s