How to Create a Pivot Table in 5 Easy Steps

The pivot table is one of Microsoft Excel’s most powerful — and intimidating — functions. Powerful because it can help you summarize and make sense of large data sets.

Intimidating because you’re not exactly an Excel expert, and pivot tables have always had a reputation for being complicated.

The good news: Learning how to create a pivot table in Excel is much easier than you might’ve been led to believe.

How to build a pivot table: A case study

You get it—pivot tables are awesome. However, that doesn’t change the fact that you have no clue how to build one.

Well, have no fear! We’ll walk you through it step by step. And, since there’s nothing like an example to add some clarity, let’s look at a specific scenario when a pivot table could be helpful.

Meet Jason. Jason brews and sells craft beer in a quaint brewery in his hometown. In order to better manage his inventory and brewing schedule, he wants to see if there are any trends in terms of the type of beer that sells most each quarter.

For example, do people drink more dark beer in the wintertime? Getting a better grasp on any seasonality would help him a lot, but to start he only has a spreadsheet that breaks down his sales of each type of beer (stout, pilsner, IPA, and an amber) per quarter in 2016 and 2017.

pivot-table-tutorial-data-set

So, to make this easier, Jason has decided he’s going to build a pivot table to see which beer he sold the most of during each quarter.

Let’s walk through the steps along with Jason.

1. Clean your data

Before you start building anything in Excel, it’s smart to take a quick look at your data to ensure that everything looks correct.

Spelling is something that you’ll want to pay especially close attention to when building a pivot table. For example, if Jason had a typo that said “Sout” instead of “Stout” somewhere in his spreadsheet, the pivot table would pull both of those into the data summary.

Want a quick way to check if there are any spelling errors? Highlight only the first row of your data, click on the “Data” tab of your ribbon, click “Filter,” and then click the arrow that appears on the column header to see all of the different items that are listed within that column. Obviously, this tip works best for more manageable data sets.

pivot-table-tutorial-filter-data

Finally, while we’re talking about column headers, it’s important to note that Excel will not create a pivot table unless each of your columns has a heading. So, make sure those are in place before you get started! Try using PowerPivot to clean large data sets quickly and easily.

2. Insert pivot  table

Believe it or not, we’re already to the point in the process when you can insert a pivot table into your workbook.

To do so, highlight your entire data set (including the column headers), click “Insert” on the ribbon, and then click the “Pivot Table” button.

pivot-table-tutorial-insert-pivot-table

3. Choose where to place your pivot table

After clicking that “Pivot Table” button, you’ll be met with a popup that asks where you’d like to place your pivot table. You have two options:

  • New Worksheet: Meaning it’ll appear on a separate tab from where your raw data lives
  • Existing Worksheet: Meaning it’ll be placed right within that same tab with your raw data

Ultimately, this comes down to personal preference. So, Jason is going to go ahead and choose to put his pivot table in a new worksheet. He selects that option, clicks “OK,” and then his pivot table and another popup will appear.

pivot-table-tutorial-place-pivot-table

4. Select what your pivot table should include

This is the part that gets the most confusing for people. In this step, you need to select the data that you want to pull into your pivot table.

So, in Jason’s case, he wants to see the different quarters, the types of beer, and the gallons sold of each during those quarters.

To pull them into the pivot table, Jason will simply drag them into the appropriate spots for rows, columns, and values.

There are obviously exceptions to this rule, but when you’re just getting started, this is a good way to think about each of these things:

  • Rows: Will be your time increments, whether that’s quarters (like Jason), months, years, etc.
  • Columns: Will be your identifiers—the different ways that you could ID the data. In Jason’s case, that’s the types of beers.
  • Values: Will be the metric that you’re measuring. Again, in Jason’s case, it’s gallons of beer sold.

After you’ve dragged those into the appropriate spots, close out of that pop-up and you’ll see your pivot table.

pivot-table-tutorial-choose-data

5. Do your analysis

Now, your pivot table will be populated. Before rolling up your sleeves and diving into the analysis, this is a good opportunity to double-check things. Are you seeing all of the elements that you selected? Does anything look off to you?

If not, you’re good to go—you’re ready to use your pivot table to identify trends!

For example, Jason can see that he sells far more stouts (which is a darker, heavier beer) in the first and fourth quarters—which makes sense, as those are the colder months. In contrast, he sells way more pilsners (a lighter, crisper beer) in the second and third quarters—which are the warmer months.

pivot-table-tutorial-finished-table

Now, he can leverage the information he discovered through his pivot table to better map out his brewing schedule and manage his inventory of craft beer.

Is your thirst not quenched with our beer example? Here’s another real-world case study from Microsoft on how to manage household expenses with pivot tables.

Add a Comment

Your email address will not be published.