Beginning PivotTables in Excel 2007 will introduce you to the exciting new pivot table features in Excel 2007. Create quick summaries and pivot charts, add impact with traffic light icons, design calculated fields, group dates and numbers.

Categories

Archives

Learn how to create Excel dashboards.

Excel Pivot Tables At the Olympics

Are you too old to compete in the Olympics? Maybe you’re not as bendy as those 16-year-old figure skaters, but there might be other sports with athletes about your age.

Athlete bios are posted on the Vancouver 2010 Winter Games website, and I compiled that data, then created a few Excel pivot tables, to analyze the athletes’ ages.

  • Which Winter Olympic sports have the oldest athletes?
  • Which countries send the youngest participants?
  • Do similar age groups compete in different sports?
  • Who wears the wildest pants?

With our Excel pivot tables, and some pivot table grouping, we can find the answers to those pressing questions. Well, maybe not the pants issue, but let’s look at the age questions.

Show Maximum Values in a Pivot Table

Using the Olympic athlete biographical data, I created an Excel pivot table with Sport in the Row Labels area, and Age in the Values area. The default is to show the Sum of Age, which isn’t too helpful.

Olympic2010Age01

Instead of a sum, I’d like to see the maximum age for athletes in each sport.

  • To change the summary function in an Excel pivot table Values field, right-click on one of the values in that field.
  • Click Summarize Data By, then click a different summary function. I’ll click Max, to see the highest age in each sport.

Olympic2010Age02

Then, I can sort the list in descending order by Age, to highlight the sports with the oldest competitors.

Olympic2010Age03

Alpine skiing is a surprising winner, and as I expected, figure skating and short track have a much lower maximum age.

Show a Count of Athletes

Maybe there’s only one Alpine skiier, and s/he’s really old. To compare the number of athletes in each sport, I’ll add the athlete’s name field to the Values area, and it will appear as Count of Name.

Olympic2010Age04

Except for the last two items, there’s a good number of athletes in each sport, with Alpine Skiing as the second largest group.

See Athlete Age by Country

If we replace Sport with Nationality in the Row Labels area, we can see the maximum age and athlete count for each country.

Olympic2010Age05

That 51-year-old alpine skier is from Mexico, and is the only athlete from that country. Coincidentally, Great Britain sent 51 athletes, but the oldest is 45.

To see the average age per country, you can change the summary function to Average, then sort the ages in ascending order. The lowest average ages are from countries with a small number of athletes.

Olympic2010Age06

To see the average ages for the larger contingents, we can filter the countries by the Count of Name value. Click the drop down arrow for the Nationality field, click Value Filters, then click Top 10. I selected to see the Top 10 items by Count of Name.

Olympic2010Age07

The pivot table now shows only the countries with the largest number of participants, sort by average age. There’s not much difference in the average ages among countries in the top 10 list.

Olympic2010Age08

That’s not too encouraging! If I want to compete in the next Winter Olympics, I should move to Mexico, and take up alpine skiing.

Age Range in Selected Sports

Finally, let’s see the age range in a few of the ice sports.  I removed Nationality from the Row Labels, and added Sports. Then, I filtered the list, to show only four of the sports – curling, figure skating, ice hockey and speed skating.

Olympic2010Age09

Figure skating has the narrowest age range, and curling has the widest. Maybe I can stay in Canada, and learn how to curl.

Instead of showing the individual ages on the chart, I can group the ages into 5 year bands. Right-click on an Age, and click Group. Then enter 5 in the By box, and click OK.

Olympic2010Age10

The chart looks less like the Rocky Mountains, and it’s easier to see the age ranges for each sport.

Olympic2010Age11

Download the Data

I’ve saved the athlete bio data in a zipped text file that you can download, and use it to create your own pivot table. Let me know if you make any surprising discoveries.

Download the athlete data

Excel Pivot Table Tutorials

___________

7 comments to Excel Pivot Tables At the Olympics

  1. Jon Peltier
    February 19th, 2010 at 12:07 pm

    I think you could participate in curling up to the age of 90. I also think you need to be almost 90 to watch it, other than for laughs.

    Of course I watch figure skating, half pipe, and short track for laughs as well. But then, that's me and my demented family.

  2. James
    February 19th, 2010 at 1:54 pm

    How do you create a table showing the sport, maximum age and the nationality of the sportsperson?

  3. Debra Dalgleish
    February 19th, 2010 at 3:49 pm

    Jon, you can curl well into your 90s, but probably wouldn't make the Olympic team, now that there's a time limit on the matches. (Yes, it just seems like the games last forever.)

    James, in the pivot table that shows max age per sport, add nationality in the row labels area, below Sport.
    Then, right-click on one of the country names
    Click Filter, then click Top 10
    Change the Top 10 settings to show top 1 Items by Max of Age.
    Click OK
    Then you can change the report layout to tablular and hide the subtotals.

  4. James
    February 20th, 2010 at 2:22 pm

    Debra Dalgleish
    Thank you very much

  5. Bob Ryan
    February 22nd, 2010 at 1:00 pm

    Debra - Theoretically, I would have wanted to see median to provide the age indication of various sports. I also think that would have to be computed separately.

  6. Debra Dalgleish
    February 22nd, 2010 at 10:27 pm

    Thanks Bob, and it's too bad that we can't calculate medians in a pivot table.

  7. henry
    March 3rd, 2010 at 3:07 am

    I am exploring Pivot tables and the Vancouver file makes the effort much more fun and interesting.
    I try to extend your example on 'max age per sport', I want to show the difference of "Min" and "Max".
    Do I need "Calculated fields" ?

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>