Create a PivotTable to analyze worksheet data

Create a PivotTable to analyze worksheet data Being able to quickly analyze data can help you make better business decisions....

Create a PivotTable to analyze worksheet data

Being able to quickly analyze data can help you make better business decisions. But sometimes it's hard to know where to start, especially when you have a lot of data. PivotTables are a great way to summarize, analyze, explore, and present your data, and you can create them with just a few clicks. PivotTables are highly flexible and can be quickly adjusted depending on how you need to display your results. You can also create PivotCharts based on PivotTables that will automatically update when your PivotTables do.

Note: Some of the screen shots in this article were taken in Excel 2016. If you have a different version your view might be slightly different, but unless otherwise noted, the functionality is the same.

For example, here's a simple list of household expenses, and a PivotTable based on it:

Household expense data

Corresponding PivotTable

  Create a PivotTable to analyze worksheet data   Create a PivotTable to analyze worksheet data



  Create a PivotTable to analyze worksheet data   Create a PivotTable to analyze worksheet data

Next, here's a PivotChart:

  Create a PivotTable to analyze worksheet data   Create a PivotTable to analyze worksheet data

Before you get started:

  • Your data should be organized in a tabular format, and not have any blank rows or columns. Ideally, you can use an Excel table like in our example above.

  • Tables are a great PivotTable data source, because rows added to a table are automatically included in the PivotTable when you refresh the data, and any new columns will be included in the PivotTable Fields List. Otherwise, you need to either manually update the data source range, or use a dynamic named range formula.

  • Data types in columns should be the same. For example, you shouldn't mix dates and text in the same column.

  • PivotTables work on a snapshot of your data, called the cache, so your actual data doesn't get altered in any way.

Create a PivotTable

If you have limited experience with PivotTables, or are not sure how to get started, a Recommended PivotTable is a good choice. When you use this feature, Excel determines a meaningful layout by matching the data with the most suitable areas in the PivotTable. This helps give you a starting point for additional experimentation. After a recommended PivotTable is created, you can explore different orientations and rearrange fields to achieve your specific results. The Recommended PivotTables feature was added in Excel 2013, so if you have an earlier version, follow the instructions below for how to manually create a PivotTable instead.

You can also download our interactive Make your first PivotTable tutorial.

Recommended PivotTable

Manually create a PivotTable

  1. Click a cell in the source data or table range.

  2. Go to Insert > Tables > Recommended PivotTable.

      Create a PivotTable to analyze worksheet data   Create a PivotTable to analyze worksheet data

  3. Excel analyzes your data and presents you with several options, like in this example using the household expense data.

      Create a PivotTable to analyze worksheet data   Create a PivotTable to analyze worksheet data
  4. Select the PivotTable that looks best to you and press OK. Excel will create a PivotTable on a new sheet, and display the PivotTable Fields List.

  1. Click a cell in the source data or table range.

  2. Go to Insert > Tables > PivotTable.

      Create a PivotTable to analyze worksheet data   Create a PivotTable to analyze worksheet data
  3. Excel will display the Create PivotTable dialog with your range or table name selected. In this case, we're using a table called "tbl_HouseholdExpenses".

      Create a PivotTable to analyze worksheet data   Create a PivotTable to analyze worksheet data
  4. In the Choose where you want the PivotTable report to be placed section, select New Worksheet, or Existing Worksheet. For Existing Worksheet, you'll need to select both the worksheet and the cell where you want the PivotTable placed.

  5. If you want to include multiple tables or data sources in your PivotTable, click the Add this data to the Data Model check box.

  6. Click OK, and Excel will create a blank PivotTable, and display the PivotTable Fields list.

In the Field Name area at the top, select the check box for any field you want to add to your PivotTable. By default, non-numeric fields are added to the Row area, date and time fields are added to the Column area, and numeric fields are added to the Values area. You can also manually drag-and-drop any available item into any of the PivotTable fields, or if you no longer want an item in your PivotTable, simply drag it out of the Fields list or uncheck it. Being able to rearrange Field items is one of the PivotTable features that makes it so easy to quickly change its appearance.

PivotTable Fields list

Corresponding fields in a PivotTable

  Create a PivotTable to analyze worksheet data   Create a PivotTable to analyze worksheet data



  Create a PivotTable to analyze worksheet data   Create a PivotTable to analyze worksheet data

  • Summarize Values By

    By default, PivotTable fields that are placed in the Values area will be displayed as a SUM. If Excel interprets your data as text, it will be displayed as a COUNT. This is why it's so important to make sure you don't mix data types for value fields. You can change the default calculation by first clicking on the arrow to the right of the field name, then select the Value Field Settings option.

      Create a PivotTable to analyze worksheet data   Create a PivotTable to analyze worksheet data

    Next, change the calculation in the Summarize Values By section. Note that when you change the calculation method, Excel will automatically append it in the Custom Name section, like "Sum of FieldName", but you can change it. If you click the Number Format button, you can change the number format for the entire field.

      Create a PivotTable to analyze worksheet data   Create a PivotTable to analyze worksheet data

    Tip: Since the changing the calculation in the Summarize Values By section will change the PivotTable field name, it's best not to rename your PivotTable fields until you're done setting up your PivotTable. One trick is to use Find & Replace (Ctrl+H) >Find what > "Sum of", then Replace with > leave blank to replace everything at once instead of manually retyping.

  • Show Values As

    Instead of using a calculation to summarize the data, you can also display it as a percentage of a field. In the following example, we changed our household expense amounts to display as a % of Grand Total instead of the sum of the values.

      Create a PivotTable to analyze worksheet data   Create a PivotTable to analyze worksheet data

    Once you've opened the Value Field Setting dialog, you can make your selections from the Show Values As tab.

      Create a PivotTable to analyze worksheet data   Create a PivotTable to analyze worksheet data
  • Display a value as both a calculation and percentage.

    Simply drag the item into the Values section twice, then set the Summarize Values By and Show Values As options for each one.

If you add new data to your PivotTable data source, any PivotTables that were built on that data source need to be refreshed. To refresh just one PivotTable you can right-click anywhere in the PivotTable range, then select Refresh. If you have multiple PivotTables, first select any cell in any PivotTable, then on the Ribbon go to PivotTable Tools > Analyze > Data > click the arrow under the Refresh button and select Refresh All.

  Create a PivotTable to analyze worksheet data   Create a PivotTable to analyze worksheet data

If you created a PivotTable and decide you no longer want it, you can simply select the entire PivotTable range, then press Delete. It won't have any affect on other data or PivotTables or charts around it. If your PivotTable is on a separate sheet that has no other data you want to keep, deleting that sheet is a fast way to remove the PivotTable.

Before you get started

  • Your data should be organized in a tabular format, and not have any blank rows or columns. Ideally, you can use an Excel table like in our example above.

  • Tables are a great PivotTable data source, because rows added to a table are automatically included in the PivotTable when you refresh the data, and any new columns will be included in the PivotTable Fields List. Otherwise, you need to either manually update the data source range, or use a dynamic named range formula.

  • Data types in columns should be the same. For example, you shouldn't mix dates and text in the same column.

  • PivotTables work on a snapshot of your data, called the cache, so your actual data doesn't get altered in any way.

Create a PivotTable

If you have limited experience with PivotTables, or are not sure how to get started, a Recommended PivotTable is a good choice. When you use this feature, Excel determines a meaningful layout by matching the data with the most suitable areas in the PivotTable. This helps give you a starting point for additional experimentation. After a recommended PivotTable is created, you can explore different orientations and rearrange fields to achieve your specific results.

You can also download our interactive Make your first PivotTable tutorial.

Recommended PivotTable

Manually create a PivotTable

  1. Click a cell in the source data or table range.

  2. Go to Insert > Recommended PivotTable.

      Create a PivotTable to analyze worksheet data   Create a PivotTable to analyze worksheet data

  3. Excel analyzes your data and presents you with several options, like in this example using the household expense data.

      Create a PivotTable to analyze worksheet data   Create a PivotTable to analyze worksheet data
  4. Select the PivotTable that looks best to you and press OK. Excel will create a PivotTable on a new sheet, and display the PivotTable Fields List.

  1. Click a cell in the source data or table range.

  2. Go to Insert > PivotTable.

    If you're using Excel for Mac 2011 and earlier, the PivotTable button is on the Data tab in the Analysis group.

      Create a PivotTable to analyze worksheet data   Create a PivotTable to analyze worksheet data

  3. Excel will display the Create PivotTable dialog with your range or table name selected. In this case, we're using a table called "tbl_HouseholdExpenses".

  4. In the Choose where you want the PivotTable report to be placed section, select New Worksheet, or Existing Worksheet. For Existing Worksheet, select the cell where you want the PivotTable placed.

  5. Click OK, and Excel will create a blank PivotTable, and display the PivotTable Fields list.

In the Field Name area at the top, select the check box for any field you want to add to your PivotTable. By default, non-numeric fields are added to the Row area, date and time fields are added to the Column area, and numeric fields are added to the Values area. You can also manually drag-and-drop any available item into any of the PivotTable fields, or if you no longer want an item in your PivotTable, simply drag it out of the Fields list or uncheck it. Being able to rearrange Field items is one of the PivotTable features that makes it so easy to quickly change its appearance.

PivotTable Fields list

Corresponding fields in a PivotTable

  Create a PivotTable to analyze worksheet data   Create a PivotTable to analyze worksheet data



  Create a PivotTable to analyze worksheet data   Create a PivotTable to analyze worksheet data

  • Summarize by

    By default, PivotTable fields that are placed in the Values area will be displayed as a SUM. If Excel interprets your data as text, it will be displayed as a COUNT. This is why it's so important to make sure you don't mix data types for value fields. You can change the default calculation by first clicking on the arrow to the right of the field name, then select the Field Settings option.

    Next, change the calculation in the Summarize by section. Note that when you change the calculation method, Excel will automatically append it in the Custom Name section, like "Sum of FieldName", but you can change it. If you click the Number... button, you can change the number format for the entire field.

    Tip: Since the changing the calculation in the Summarize by section will change the PivotTable field name, it's best not to rename your PivotTable fields until you're done setting up your PivotTable. One trick is to click Replace (on the Edit menu) >Find what > "Sum of", then Replace with > leave blank to replace everything at once instead of manually retyping.

  • Show data as

    Instead of using a calculation to summarize the data, you can also display it as a percentage of a field. In the following example, we changed our household expense amounts to display as a % of Grand Total instead of the sum of the values.

      Create a PivotTable to analyze worksheet data   Create a PivotTable to analyze worksheet data

    Once you've opened the Field Settings dialog, you can make your selections from the Show data as tab.

  • Display a value as both a calculation and percentage.

    Simply drag the item into the Values section twice, right-click the value and select Field Settings, then set the Summarize by and Show data as options for each one.

If you add new data to your PivotTable data source, any PivotTables that were built on that data source need to be refreshed. To refresh just one PivotTable you can right-click anywhere in the PivotTable range, then select Refresh. If you have multiple PivotTables, first select any cell in any PivotTable, then on the Ribbon go to PivotTable Analyze > click the arrow under the Refresh button and select Refresh All.

If you created a PivotTable and decide you no longer want it, you can simply select the entire PivotTable range, then press Delete. It won't have any affect on other data or PivotTables or charts around it. If your PivotTable is on a separate sheet that has no other data you want to keep, deleting that sheet is a fast way to remove the PivotTable.

You can now insert a PivotTable in your spreadsheet in Excel Online.

Important: Creating or working on PivotTables is not recommended in a spreadsheet when other users are working in it at the same time.

  1. Select the table or range in your spreadsheet.

  2. Go to Insert > PivotTable.

  3. Excel will display the Create PivotTable dialog with your range or table name selected.

      Create a PivotTable to analyze worksheet data   Create a PivotTable to analyze worksheet data
  4. In the Choose where you want the PivotTable report to be placed section, select New Worksheet, or Existing Worksheet. For Existing Worksheet, select the cell where you want the PivotTable placed.

    Note: The cell you refer to should be outside the table or the range.

  5. Click OK, and Excel will create a blank PivotTable, and display the PivotTable Fields list.

In the PivotTable Fields area at the top, select the check box for any field you want to add to your PivotTable. By default, non-numeric fields are added to the Rows area, date and time fields are added to the Columns area, and numeric fields are added to the Values area. You can also manually drag-and-drop any available item into any of the PivotTable fields, or if you no longer want an item in your PivotTable, simply drag it out of the Fields list or uncheck it. Being able to rearrange Field items is one of the PivotTable features that makes it so easy to quickly change its appearance.

PivotTable Fields list

Corresponding fields in a PivotTable

  Create a PivotTable to analyze worksheet data   Create a PivotTable to analyze worksheet data



  Create a PivotTable to analyze worksheet data   Create a PivotTable to analyze worksheet data

  • Summarize Values By

    By default, PivotTable fields that are placed in the Values area will be displayed as a SUM. If Excel interprets your data as text, it will be displayed as a COUNT. This is why it's so important to make sure you don't mix data types for value fields. You can change the default calculation by first clicking on the arrow to the right of the field name, then select the Value Field Settings option.

      Create a PivotTable to analyze worksheet data   Create a PivotTable to analyze worksheet data

    Next, change the calculation in the Summarize Values By section. Note that when you change the calculation method, Excel will automatically append it in the Custom Name section, like "Sum of FieldName", but you can change it. If you click the Number Format button, you can change the number format for the entire field.

      Create a PivotTable to analyze worksheet data   Create a PivotTable to analyze worksheet data

    Tip: Since the changing the calculation in the Summarize Values By section will change the PivotTable field name, it's best not to rename your PivotTable fields until you're done setting up your PivotTable. One trick is to use Find & Replace (Ctrl+H) >Find what > "Sum of", then Replace with > leave blank to replace everything at once instead of manually retyping.

  • Show Values As

    Instead of using a calculation to summarize the data, you can also display it as a percentage of a field. In the following example, we changed our household expense amounts to display as a % of Grand Total instead of the sum of the values.

      Create a PivotTable to analyze worksheet data   Create a PivotTable to analyze worksheet data

    Once you've opened the Value Field Setting dialog, you can make your selections from the Show Values As tab.

      Create a PivotTable to analyze worksheet data   Create a PivotTable to analyze worksheet data
  • Display a value as both a calculation and percentage.

    Simply drag the item into the Values section twice, then set the Summarize Values By and Show Values As options for each one.

If you add new data to your PivotTable data source, any PivotTables that were built on that data source need to be refreshed. To refresh the PivotTable, you can right-click anywhere in the PivotTable range, then select Refresh.

  Create a PivotTable to analyze worksheet data   Create a PivotTable to analyze worksheet data

If you created a PivotTable and decide you no longer want it, you can simply select the entire PivotTable range, then press Delete. It won't have any affect on other data or PivotTables or charts around it. If your PivotTable is on a separate sheet that has no other data you want to keep, deleting that sheet is a fast way to remove the PivotTable.

Training

  Create a PivotTable to analyze worksheet data   Create a PivotTable to analyze worksheet data

Discover more Excel training at LinkedIn Learning

Need more help?

You can always ask an expert in the Excel Tech Community, get support in the Answers community, or suggest a new feature or improvement on Excel User Voice.

Related Topics

Download our Make your first PivotTable tutorial.

Create a PivotChart

Use slicers to filter PivotTable data 

Create a PivotTable timeline to filter dates

Create a PivotTable with the Data Model to analyze data in multiple tables

Use the Field List to arrange fields in a PivotTable

Change the source data for a PivotTable

Calculate values in a PivotTable

Delete a PivotTable

Disclaimer : All images and content that you find here are believed to be in the "public domain". We do not intend to violate legitimate intellectual property, artistic rights or copyright. If you are the legitimate owner of one of the images and content posted on this site, and do not want to be displayed or if you need an appropriate credit, please contact us and we will immediately do whatever is needed by deleting or giving credit to the content displayed.

COMMENTS

Name

Google Aррѕ,1,lainnya,7522,Microsoft Access,1,Microsoft Excel,59,Microsoft Office,13,Microsoft Office 2003,4,Microsoft Office 2007,1,Microsoft Outlook,1,Microsoft Word,71,Mісrоѕоft Office Training,1,Mісrоѕоft Offісе 365,2,Office 2007,3,Power Map,1,PowerPoint,14,Windows Accessibility Options,1,
ltr
item
Microsoft Office Online: Create a PivotTable to analyze worksheet data
Create a PivotTable to analyze worksheet data
https://support.content.office.net/en-us/media/195a25ed-8156-4b27-bda6-ca7a367c5c28.png
Microsoft Office Online
https://promisestoread.blogspot.com/2018/05/create-pivottable-to-analyze-worksheet.html
https://promisestoread.blogspot.com/
https://promisestoread.blogspot.com/
https://promisestoread.blogspot.com/2018/05/create-pivottable-to-analyze-worksheet.html
true
593202333244584315
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share. STEP 2: Click the link you shared to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy