{"id":1491,"date":"2020-10-23T21:00:05","date_gmt":"2020-10-23T15:30:05","guid":{"rendered":"https:\/\/www.complianceprime.com\/blog\/?p=1491"},"modified":"2024-02-08T13:12:12","modified_gmt":"2024-02-08T07:42:12","slug":"how-to-filter-and-sort-the-data-in-a-pivot-table-in-excel","status":"publish","type":"post","link":"https:\/\/www.complianceprime.com\/blog\/2020\/10\/23\/how-to-filter-and-sort-the-data-in-a-pivot-table-in-excel\/","title":{"rendered":"How to Filter and Sort the Data in a Pivot Table in Excel"},"content":{"rendered":"<p><span style=\"font-weight: 400\">While creating a new pivot table in Excel, you will see that Excel automatically adds drop-down keys to the Report Filter field, along with the labels for the row and column fields. These drop-down buttons<\/span> <span style=\"font-weight: 400\">in Excel are known as filter buttons, which enables you to filter all with specific entries in the field. The column and row fields sort the entries in the table.<\/span><\/p>\n<p><span style=\"font-weight: 400\">If more than one row or column field is added to the pivot table, then Excel adds collapse buttons that can be used to hide the subtotal values for a specific secondary field. After clicking on the collapse button in the table, it instantly becomes an expand button that can be clicked to redisplay the subtotals of that one secondary field.<\/span><\/p>\n<h2><span style=\"font-weight: 400\">Filtering Pivot Tables in Excel\u00a0<\/span><\/h2>\n<p><span style=\"font-weight: 400\">In the Excel pivot table, the most significant filter buttons are added to the field\/fields named as the pivot table FILTERS. On selecting a specific option from the drop-down lists that are attached to one of the filter buttons, the summary data for that selected subset displays in the pivot table.<\/span><\/p>\n<p><span style=\"font-weight: 400\">For instance, in the Excel pivot table that plies the Gender field from the Worker Data file as the Report Filter field, one can present the sum of the women\u2019s or men\u2019s salaries by department and position in the pivot table by doing either of the following:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click on the Gender field\u2019s filter key. Then click on M which is on the drop-down list before clicking on the OK button to see the sum total of the men\u2019s salaries by the department.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click on the Gender field\u2019s filter key. Then click on the F which is on the drop-down list before clicking on the OK button to see the sum total of the women\u2019s salaries by the department.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">Later, when you want to redisplay the salaries for all the employees, you can reselect the option All on the drop-down filter list of the Gender field before clicking OK.<\/span><\/p>\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<h2><span style=\"font-weight: 400\">Sorting Pivot Tables in Excel<\/span><\/h2>\n<p><span style=\"font-weight: 400\">The summary values in a pivot table can be instantly reordered by sorting the table on one or more than one of its row or column fields. To sort a pivot table, click on the filter button for the row or column field that you want to use in the categorizing. Then click on the Sort Z to A option or the Sort A to Z option that is at the top of the field\u2019s drop-down list.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">If you want the table to sort the labels in an alphabetical manner, or from the smallest to largest value or, from the oldest to newest date, click on the Sort A to Z option and the Sort Z to A option if you want vice-versa.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">Attend the Compliance Prime webinar to learn more about the Filtering and Sorting Pivot Table Data in Excel.\u00a0<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>While creating a new pivot table in Excel, you will see that Excel automatically adds drop-down keys to the Report Filter field, along with the labels for the row and&hellip;<\/p>\n","protected":false},"author":4,"featured_media":1492,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[6],"tags":[98],"class_list":["post-1491","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-office","tag-microsoft-excel"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.complianceprime.com\/blog\/wp-json\/wp\/v2\/posts\/1491","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=1491"}],"version-history":[{"count":1,"href":"https:\/\/www.complianceprime.com\/blog\/wp-json\/wp\/v2\/posts\/1491\/revisions"}],"predecessor-version":[{"id":4586,"href":"https:\/\/www.complianceprime.com\/blog\/wp-json\/wp\/v2\/posts\/1491\/revisions\/4586"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.complianceprime.com\/blog\/wp-json\/wp\/v2\/media\/1492"}],"wp:attachment":[{"href":"https:\/\/www.complianceprime.com\/blog\/wp-json\/wp\/v2\/media?parent=1491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.complianceprime.com\/blog\/wp-json\/wp\/v2\/categories?post=1491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.complianceprime.com\/blog\/wp-json\/wp\/v2\/tags?post=1491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}