Workshop 11 - Notes Student Version
Workshop 11 - Notes Student Version
Task 1
You should see the data and it should look something like this:
Task 2
Task 3
We have discussed databases and how they need Primary &/or Foreign keys to join the text. We are
told that
Task 4 this data was taken from two sources.
Here is an example:
This is the full data that we were working with a few weeks ago, but before we start we need to
make sure that all columns are named, and there are no duplicate rows or blank cells.
Fields
These are all called “field” the PivotTable function uses the word “field” a lot.
If we wanted to we could create a PivotTable with this data, and one of the simplest things to do is a
Sum. So if we wanted to know the total price of all the bikes we would do the following:
1. Click “Insert” from the ribbon
2. Click “PivotTable”
1. Select range
2. Check location
3. Click OK
You can play around with what excel calculates, so you do not have to just calculate the sum. You
can include the following:
Sum
Count
Average
Max
Min
Product
Count Number
Standard Deviation
Standard Deviation of Population
VAR (Variance)
Task 6
1. On your new tab, change the value of the CPI and Happiness Index to Max
You can add the same field in again and have a different number. So for example we could have the
Sum of £ Price and the Average £ Price by selecting the same figure twice. Like this:
1. In your pivot table add the Min for both CPI and Happiness
2. Have a play around with what data you can get from this chart
In addition to doing PivotTables you can also do PivotCharts. Under <Insert> go to <Charts> and click
on <PivotChart> but remember to put your mouse on the PivotTable which you want to make into a
chart.
Task 8
Task 9
3. You need to find the CPI and Happiness Indices in columns E and F (hint: use a VLOOKUP to do this
for the first one, stick the range in the formula and copy down)
4. You have been told that the Happiness Index was incorrect for 2015, so you need to add on 1 to all
observations from 2015 – use CPI corrected column. You can do this in one step but if you need to do
2 steps feel free to insert a working column (hint: Use If function).
Now do a PivotTable showing the average score for CPI and Happiness for each continent.
5. Which has the highest average score for each?