0

In this blog post I’m going to show you how to use one of the new add-ins from Excel (Power Query) to quickly pull in your data from Facebook and then summarize it.

Note that if you have found this useful that I cover both pivot tables and Power Query in my book Your Excel Survival Kit – a Guide to surviving and thriving in an Excel world (available at Amazon.co.uk and Amazon.com)

First of all you will need to download Power Query (only available for versions 2010 and later in Excel).  You can download it here.  Full installation instructions are available here at that link as well.

It will now appear in your Ribbon.

Power_query_snapshot

 

 

 

 

 

Step 1 – getting your data from Facebook into Excel.

You can also view a video below

. (note that in the video I include a bit extra on cleaning up your dates)

  1. Click on Power Query
  2. Click on From Other Sources.
  3. Click on From Facebook 
  4. You will now be prompted for your Facebook username and password. When you have entered this you will also receive a request about allowing a BI (Business Intelligence) app to access your data.
  5. When you have accepted this, then you will see a screen like the following. From the lower drop down box, choose the data set you want to analyse.

FB_logon

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  1. I’ve chosen Likes for the demo in the video below but you could obviously choose whatever you want to analyse.
  2. Then click on Load.
  3. This pulls the data into Excel. You now have your data in Excel.

Step 2 – Analysing your data in Excel

For this step, we are now going to use Excel’s primary analysis tool : Pivot Tables.

Click anywhere in the Facebook data you have just imported.

Click on Design – then click on Summarize with Pivot Table.  Accept the default setting it gives you in the next setting (just click OK)

Table_ribbon_pivot_table

 

 

 

 

You will get the following screens:

  1. Drag ID down to Values (you enter whatever it is you want to add/get the average of etc) in the Values part of the pivot table
  2. Drag Category down to Rows

Pivot_field_setup

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

If you look on the left hand side you will now see your data has been summarized….

Pivot_summary_Power_query_and_facebook

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

You can also add a chart to that by clicking in the pivot table, then clicking on Pivot Chart. (Note that this ribbon will NOT be visible unless you have clicked in the pivot table)

Pivot_chart

 

 

 

 

Final_summary_PQ_and_FB

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I have not included the file with this because it’s my own Facebook data but if you want to get a picture of your interactions on Facebook, this is a great tool to start with.

In the video I’ve also added a bit about how you could summarize your interactions across time as well…

As always if you have any ideas or suggestions, please feel free to add them…

Leave a Reply