Skip to main content

Extending the Pivot Table

- This lesson follows on from the previous one.
We're now going to put the Students button on the Pivot Table. So do the following:
  • Locate the Student button on the Pivot Table toolbar, as in the image below:
Drag the Student button
  • Hold down your left mouse button on the Student button
  • Keep the left mouse button held down
  • Drag the Student button to the top of the Pivot table, where it says "Drag Page Fields Here."
  • Let go of the left mouse button
  • Excel adds the Student field to the pivot table
  • The two images below show the process in action
Drag the Student button to the top of the Pivot table
Drag the Student button to the top of the Pivot table
Release the left mouse button and Excel adds the Student Field
Release the left mouse button and Excel adds the Student Field
We're almost there, now. Only a couple more things left to do. First, take a look at the scores. What the Pivot table is doing is adding all the scores up. That's because of cell A3. Notice that it says "Sum of Score". We don't want it to do that. An Average is much better for our purposes.
To change the Scores to Averages, do this:
  • On the Pivot Table toolbar, click on the Pivot Table button
  • A menu pops up like the one below:
  • To change the Scores to Averages, click on Field Settings
  • The following dialogue box appears:
Field Settings
There are not too many functions to choose from in the Summarize by list, but Average is on there. So click on Average, and then click OK. The scores will change on the spreadsheet.
Some of the scores in the Grand Total Row and Grand Total column will be a bit long. But you can format the numbers to in the usual way.
  • So highlight the Grand Total row
  • From the Excel Menu Bar, click on Format
  • From the drop down menu, click on Cells
  • When the dialogue box appears, select the Number tab strip
  • Format to 1 decimal place
  • Do the same for the Grand Total row
  • Your Pivot Table should now be looking like the one below:
We can now take a look at those drop down boxes. We'll start with the Student box.
At the moment, the Student box says All. Click the black down arrow to see the list of students.
Click the black down arrow
Our two Students are listed there. Click on Elisa, then click the OK button. Notice how your spreadsheet has changed. It should now only be showing you Elisa's results. Click the black down arrow in cell B1 again, and click on Mary. Then click the OK button. Your spreadsheet will change to show only Mary's results.
Try clicking the black down arrow of Subject, in cell B3. You should see this:
The list of subjects
All the Subjects have ticks in them. Click on a tick and it will disappear. Try un-ticking a few of the subjects. Then click the OK button to see what happens.
The Month list in cell A4 shows a similar list with ticks in them. Un-tick a month and see the results when you click OK.
You can add comments to pivot tables. The one below shows a Comment about Elisa's English scores:
A comment has been added
Another thing you can do is change the type of Pivot Table Report. From the Pivot Table toolbar, click the Pivot Table button. From the menu that pops up, select Format Report. Click on any of the formats you like then click OK to see what happens. If you don't like what you see, click Edit > Undo AutoFormat to get back to your Pivot Table.

And that wraps up this short introduction on Pivot Tables. But they are a good way to summarise long lists of data. In the next section, we take a look at Excel Forms, and see how to download data from a web page straight into Excel.

Comments

Popular posts from this blog

Beginners PHP  -This is a complete and free PHP programming course for beginners. It's assumed that you already have some HTML skills. But you don't need to be a guru, by any means. If you need a refresher on HTML, then click the link for the Web Design course on the left of this page. Everything you need to get started with this PHP course is set out in section one below. Good luck! Home Page > PHP Section One - An Introduction to PHP 1. What is PHP and Why do I need it? 2. What you need to get started 3. Installing and testing Wampserver 4. Troubleshooting > PHP Two - Getting Started With Variables 1. What is a Variable? 2. Putting text into variables 3. Variables - some practice 4. More variable practice 5. Joining direct text and variable data 6. Adding up in PHP 7. Subtraction 8. Multiplication 9. Division 10. Floating point numbers > PHP Three - Conditional Logic 1. If Statements 2. Using If Statements 3....
Visual Basic .NET Contents Page   -This computer course is an introduction to Visual Basic.NET programming for beginners. This course assumes that you have no programming experience whatsoever. It's a lot easier than you think, and can be a very rewarding hobby! You don't need to buy any software for this course! You can use the new FREE Visual Basic Express Edition from Microsoft. To see which version you need, click below: Getting the free Visual Studio Express - Which version do I need? > VB .NET One - Getting Started   1. Getting started with VB.NET 2. Visual Basic .NET Forms 3. Adding Controls using the Toolbox Home Page 4. Adding a Textbox to the Form 5. Visual Basic .NET and Properties 6. The Text Property 7. Adding a splash of colour 8. Saving your work 9. Create a New Project >   VB .NET Two - Write your first .NET code   1. What is a Variable? 2. Add a coding button to the Form 3. Writing y...
The Excel SumIF Function  - Another useful Excel function is SumIF. This function is like CountIf, except it adds one more argument: SUMIF( range ,  criteria ,  sum_range ) Range and criteria are the same as with  CountIF  - the range of cells to search, and what you want Excel to look for. The Sum_Range is like range, but it searches a new range of cells. To clarify all that, here's what we'll use SumIF for. (Start a new spreadsheet for this.) Five people have ordered goods from us. Some have paid us, but some haven't. The five people are Elisa, Kelly, Steven, Euan, and Holly. We'll use SumIF to calculate how much in total has been paid to us, and how much is still owed. So in Column A, enter the names: In Column B enter how much each person owes: In Column C, enter TRUE or FALSE values. TRUE means they have paid up, and FALSE means they haven't: Add two more labels: Total Paid, and Still Owed. Your spreadsheet should look something li...