{"id":5966,"date":"2024-09-25T15:47:33","date_gmt":"2024-09-25T10:17:33","guid":{"rendered":"https:\/\/www.complianceprime.com\/blog\/?p=5966"},"modified":"2024-09-18T15:49:00","modified_gmt":"2024-09-18T10:19:00","slug":"how-to-edit-a-pivottable-in-microsoft-excel","status":"publish","type":"post","link":"https:\/\/www.complianceprime.com\/blog\/2024\/09\/25\/how-to-edit-a-pivottable-in-microsoft-excel\/","title":{"rendered":"How to Edit a PivotTable in Microsoft Excel"},"content":{"rendered":"\n<p><a href=\"https:\/\/www.complianceprime.com\/subject\/10\/microsoft-excel\">Microsoft Excel<\/a> is one of the most powerful and widely-used tools for managing, analyzing, and visualizing data. Whether you\u2019re keeping track of expenses, analyzing sales, or preparing detailed reports, Excel provides various features that make handling large data sets more manageable. Among its many tools, PivotTables stand out as an essential feature for summarizing and analyzing complex data quickly and effectively.<\/p>\n\n\n\n<div style=\"color:#0E1851;margin-top:20px;font-size:28px;font-weight:bold;\">Related Webinars<\/div><div style=\"width:100%;height:auto;overflow:hidden;overflow-x:auto;margin:20px 0;\"><div style=\"width:calc(3 * 260px);\"><div style=\"width:250px;height:350px;background-color:#D2E0FF;background:url(https:\/\/www.complianceprime.com\/assets\/images\/wdt-back.png);background-repeat:no-repeat;background-size:cover;border-radius:10px;margin-right:10px;float:left;text-align:center;padding:25px 10px 0 10px;cursor:pointer;\" onclick=\"location.href='https:\/\/www.complianceprime.com\/details\/137\/excel-formulas-functions?utm_source=cp_blog'\"><img decoding=\"async\" style=\"width:135px;height:135px;border-radius:50%;border:2px solid #2B58B5;padding:3px;\" src=\"https:\/\/www.complianceprime.com\/image.php?src=https:\/\/www.complianceprime.com\/uploads\/img_upload\/066d531fed667563909fbd5701eb1c5e.jpg&w=200&h=200&zc=1&s=1\" alt=\"Speaker\"><div style=\"color:#0E1851;margin-top:5px;font-size:18px;font-weight:bold;line-height:22px;max-height:65px;overflow:hidden;\">Advanced Excel Functions: Lookup and Logical Tools<\/div><div style=\"clear:both;\"><\/div><div style=\"height:45px;\"><\/div><div style=\"font-size:12px;color:#2B58B5;margin-top:-10px;\"><strong>Speaker: <\/strong>Neil Malek<\/div><div style=\"width:120px;text-transform:uppercase;font-size:12px;color:#FB0351;border:2px solid #FB0351;border-radius:30px;padding:1px 5px;margin:10px auto;\">Learn More<\/div><\/div><div style=\"width:250px;height:350px;background-color:#D2E0FF;background:url(https:\/\/www.complianceprime.com\/assets\/images\/wdt-back.png);background-repeat:no-repeat;background-size:cover;border-radius:10px;margin-right:10px;float:left;text-align:center;padding:25px 10px 0 10px;cursor:pointer;\" onclick=\"location.href='https:\/\/www.complianceprime.com\/details\/120\/excel-dashboard?utm_source=cp_blog'\"><img decoding=\"async\" style=\"width:135px;height:135px;border-radius:50%;border:2px solid #2B58B5;padding:3px;\" src=\"https:\/\/www.complianceprime.com\/image.php?src=https:\/\/www.complianceprime.com\/uploads\/img_upload\/1310fe063de4c0d9a43a9d19bcfe9739.jpg&w=200&h=200&zc=1&s=1\" alt=\"Speaker\"><div style=\"color:#0E1851;margin-top:5px;font-size:18px;font-weight:bold;line-height:22px;max-height:65px;overflow:hidden;\">Microsoft Excel: Creating an Interactive Dashboard<\/div><div style=\"clear:both;\"><\/div><div style=\"height:45px;\"><\/div><div style=\"font-size:12px;color:#2B58B5;margin-top:-10px;\"><strong>Speaker: <\/strong>Mike Thomas<\/div><div style=\"width:120px;text-transform:uppercase;font-size:12px;color:#FB0351;border:2px solid #FB0351;border-radius:30px;padding:1px 5px;margin:10px auto;\">Learn More<\/div><\/div><div style=\"width:250px;height:350px;background-color:#D2E0FF;background:url(https:\/\/www.complianceprime.com\/assets\/images\/wdt-back.png);background-repeat:no-repeat;background-size:cover;border-radius:10px;margin-right:10px;float:left;text-align:center;padding:25px 10px 0 10px;cursor:pointer;\" onclick=\"location.href='https:\/\/www.complianceprime.com\/details\/168\/excel-tips-shortcuts?utm_source=cp_blog'\"><img decoding=\"async\" style=\"width:135px;height:135px;border-radius:50%;border:2px solid #2B58B5;padding:3px;\" src=\"https:\/\/www.complianceprime.com\/image.php?src=https:\/\/www.complianceprime.com\/uploads\/img_upload\/1310fe063de4c0d9a43a9d19bcfe9739.jpg&w=200&h=200&zc=1&s=1\" alt=\"Speaker\"><div style=\"color:#0E1851;margin-top:5px;font-size:18px;font-weight:bold;line-height:22px;max-height:65px;overflow:hidden;\">Time-Saving Excel Tips, Tricks and Shortcuts<\/div><div style=\"clear:both;\"><\/div><div style=\"height:45px;\"><\/div><div style=\"font-size:12px;color:#2B58B5;margin-top:-10px;\"><strong>Speaker: <\/strong>Mike Thomas<\/div><div style=\"width:120px;text-transform:uppercase;font-size:12px;color:#FB0351;border:2px solid #FB0351;border-radius:30px;padding:1px 5px;margin:10px auto;\">Learn More<\/div><\/div><\/div><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>What is a PivotTable?<\/strong><\/h3>\n\n\n\n<p>A <a href=\"https:\/\/www.complianceprime.com\/blog\/2024\/03\/23\/what-is-the-purpose-of-a-pivot-table-in-excel\/\">PivotTable in Excel<\/a> is a dynamic tool that allows users to extract valuable insights from large datasets. By arranging data into meaningful summaries, PivotTables help users visualize patterns and trends. Whether you&#8217;re analyzing sales, profit margins, or customer demographics, PivotTables enable you to pivot data by rows, columns, filters, and values to get the most relevant information for your decision-making process.<\/p>\n\n\n\n<p><strong>In this blog, we will explain how to create and edit a PivotTable in Microsoft Excel using a practical example from a toy company.<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Create a PivotTable in Excel<\/strong><\/h2>\n\n\n\n<p>Let\u2019s say you manage the sales data of a toy company. You have data on various products, including the total number of sales, number of returns, discounts on each product, and the profitability of each item. Here\u2019s a step-by-step guide to creating a PivotTable based on this data.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Prepare the Data<\/strong><strong><br><\/strong><\/h4>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<p>Here&#8217;s an example of what your dataset might look like:<br><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Product<\/strong><\/td><td><strong>Unit Price&nbsp;<\/strong><\/td><td><strong>Total Sales<\/strong><\/td><td><strong>Cost of Manufacturing<\/strong><\/td><td><strong>Marketing Expense<\/strong><\/td><td><strong>Total Revenue (USD)<\/strong><\/td><td><strong>Total Cost (USD)<\/strong><\/td><td><strong>Profit (USD)<\/strong><\/td><\/tr><tr><td>Teddy Bear<\/td><td>20<\/td><td>500<\/td><td>5000<\/td><td>1000<\/td><td>10,000<\/td><td>6,000<\/td><td>4,000<\/td><\/tr><tr><td>Toy Car<\/td><td>15<\/td><td>350<\/td><td>3000<\/td><td>700<\/td><td>5,250<\/td><td>3,700<\/td><td>1,550<\/td><\/tr><tr><td>Doll House<\/td><td>50<\/td><td>200<\/td><td>4000<\/td><td>1200<\/td><td>10,000<\/td><td>5,200<\/td><td>4,800<\/td><\/tr><tr><td>Action Figure<\/td><td>25<\/td><td>400<\/td><td>6000<\/td><td>800<\/td><td>10,000<\/td><td>6,800<\/td><td>3,200<\/td><\/tr><tr><td>Building Blocks<\/td><td>30<\/td><td>300<\/td><td>4500<\/td><td>600<\/td><td>9,000<\/td><td>5,100<\/td><td>3,900<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Create a PivotTable<br><\/strong><\/h4>\n\n\n\n<p><strong><em>a) Select the Range:<\/em><\/strong><\/p>\n\n\n\n<p>Highlight the range of data you want to analyze, including the new columns: Product, Unit Price, Total Sales, Total Cost of Manufacturing, Marketing Expense, Total Revenue, Total Cost, and Profit.<br><\/p>\n\n\n\n<p><strong><em>b) Insert PivotTable:<\/em><\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click on the <strong>Insert<\/strong> tab in Excel.<\/li>\n\n\n\n<li>Select <strong>PivotTable<\/strong> from the options.<\/li>\n\n\n\n<li>Choose where you want the PivotTable to appear: on a new sheet or an existing one.<\/li>\n\n\n\n<li>Click <strong>OK<\/strong>. A blank PivotTable field list will appear on the right side of the worksheet.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Building the PivotTable<\/strong><\/h4>\n\n\n\n<p><strong><em>a) Configure Fields:<\/em><\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Drag the <strong>Product<\/strong> field into the <strong>Rows<\/strong> section.<\/li>\n\n\n\n<li>Drag <strong>Total Sales<\/strong>, <strong>Total Revenue<\/strong>, <strong>Total Cost<\/strong>, and <strong>Profit<\/strong> fields into the <strong>Values<\/strong> section.<br><\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Analyze by Categories:<\/strong><\/h4>\n\n\n\n<p>If you want to explore profit margins or other aspects, you might want to include <strong>Unit Price<\/strong> or <strong>Marketing Expense<\/strong>. Drag these fields into the <strong>Values<\/strong> section if needed.<br><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Summarize Data:<\/strong><strong><br><\/strong><\/h4>\n\n\n\n<p>This setup will provide a summarized view of each product\u2019s performance, including sales, revenue, costs, and profit, making it easy to compare different products and analyze profitability.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Edit a PivotTable<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXenYwlMRi5Z9fymtSbsWbrNSmliga9gNQysZklEZMnqJhVs19wiVFYUYmRxe5r-0zzyaNYO9ytM3uWEVou1grZgdbqHC08UgUflBI99AgZBBvTRd0jliSI4qaqy9zlDdKwR8i3jbeepuXijJQohgLggQWM7?key=cCydkJnCM8VuQu8-naPsQg\" alt=\"\" \/><\/figure>\n\n\n\n<p>With your PivotTable set up, editing it to better suit new data or insights is crucial. Let\u2019s continue with our toy company example and explore how to adjust your PivotTable.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Adding or Removing Fields<\/strong><strong><br><\/strong><strong><br><\/strong><strong><\/strong><\/h3>\n\n\n\n<p><strong>Add New Fields:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To include additional data, such as analyzing profit margins or marketing expenses, go to the PivotTable Field List.<\/li>\n\n\n\n<li>Drag the <strong>Unit Price<\/strong> or <strong>Marketing Expense<\/strong> field into the <strong>Values<\/strong> section or any other relevant section to include these metrics in your analysis.<\/li>\n<\/ul>\n\n\n\n<p><strong>Remove Unnecessary Fields:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To remove fields, such as <strong>Total Cost<\/strong>, if it\u2019s no longer needed, simply uncheck the box next to <strong>Total Cost<\/strong> in the field list. The PivotTable will automatically update to reflect this change.<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Changing the Calculation Type<\/strong><\/h3>\n\n\n\n<p><strong>Adjust Calculation Types:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>By default, PivotTables sum numerical data. To calculate averages of percentages, right-click any value in the PivotTable (e.g., Profit) and select <strong>Value Field Settings<\/strong>.<\/li>\n\n\n\n<li>In the pop-up window, choose the desired <a href=\"https:\/\/www.complianceprime.com\/blog\/2020\/10\/25\/how-to-change-the-pivot-table-calculations-in-excel\/\">calculation type<\/a>, such as <strong>Average<\/strong> or <strong>Percentage of Total<\/strong>, to get different insights.<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXczO0KL736sjtHGF_YV17o0aNCrXicoCEshYkU8cfqaVoXvjtugWWx4ArJkU5Qtzno1EOwIbNbFkafHCB6_SsLvkmtt2-Guk4o0xKY5schiSoMkW-BMv-2D3BuESl6sRTDB1SxU3cLmb3H693SvrMvNmlbA?key=cCydkJnCM8VuQu8-naPsQg\" alt=\"\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Sorting and Filtering Data<\/strong><\/h3>\n\n\n\n<p><a href=\"https:\/\/www.complianceprime.com\/blog\/2020\/10\/23\/how-to-filter-and-sort-the-data-in-a-pivot-table-in-excel\/\"><strong>Sort Data<\/strong><\/a><strong>:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To identify which product generated the highest profit, click the drop-down arrow next to the <strong>Product<\/strong> field.<\/li>\n\n\n\n<li>Choose <strong>Sort Largest to Smallest<\/strong> under the <strong>Profit<\/strong> column.<\/li>\n<\/ul>\n\n\n\n<p><strong>Filter Data:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Apply filters to show specific data ranges or products. For example, to view only products with high marketing expenses, drag <strong>Marketing Expense<\/strong> into the <strong>Filters<\/strong> section and set your filter criteria.<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Refreshing the PivotTable<\/strong><\/h3>\n\n\n\n<p><strong>Update Data:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If your source data changes (e.g., additional sales data), click anywhere in the PivotTable.<\/li>\n\n\n\n<li>Go to the <strong>PivotTable Analyze<\/strong> tab and select <strong>Refresh<\/strong> to update the table with the latest data.<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Formatting the PivotTable<\/strong><\/h4>\n\n\n\n<p><strong>Format Values:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To make your PivotTable more readable, format the values. Change the number format of the values to currency for better clarity.<\/li>\n\n\n\n<li>Apply PivotTable styles by highlighting rows, adding borders, or using other formatting options to enhance visual appeal.<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h4>\n\n\n\n<p>PivotTables are an incredibly powerful feature in Excel that allow you to <a href=\"https:\/\/www.complianceprime.com\/blog\/2023\/10\/20\/how-does-the-pivot-table-in-excel-help-in-data-analysis\/\">analyze and summarize large datasets<\/a> with ease. Knowing how to create and edit a PivotTable will make it much easier to draw insights and present data in a meaningful way. From sales figures to profit margins, you can use PivotTables to answer important business questions quickly and efficiently.<\/p>\n\n\n\n<p>By following the steps above, you can create a PivotTable using data from your own business or projects, edit it as your needs evolve, and make the most of this versatile tool in Excel. With practice, you&#8217;ll be able to manipulate your data effortlessly and make informed decisions based on your findings.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Microsoft Excel is one of the most powerful and widely-used tools for managing, analyzing, and visualizing data. Whether you\u2019re keeping track of expenses, analyzing sales, or preparing detailed reports, Excel&hellip;<\/p>\n","protected":false},"author":4,"featured_media":5968,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[6],"tags":[],"class_list":["post-5966","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-office"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.complianceprime.com\/blog\/wp-json\/wp\/v2\/posts\/5966","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.complianceprime.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.complianceprime.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.complianceprime.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.complianceprime.com\/blog\/wp-json\/wp\/v2\/comments?post=5966"}],"version-history":[{"count":4,"href":"https:\/\/www.complianceprime.com\/blog\/wp-json\/wp\/v2\/posts\/5966\/revisions"}],"predecessor-version":[{"id":5971,"href":"https:\/\/www.complianceprime.com\/blog\/wp-json\/wp\/v2\/posts\/5966\/revisions\/5971"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.complianceprime.com\/blog\/wp-json\/wp\/v2\/media\/5968"}],"wp:attachment":[{"href":"https:\/\/www.complianceprime.com\/blog\/wp-json\/wp\/v2\/media?parent=5966"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.complianceprime.com\/blog\/wp-json\/wp\/v2\/categories?post=5966"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.complianceprime.com\/blog\/wp-json\/wp\/v2\/tags?post=5966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}