{"id":316,"date":"2022-01-28T03:54:29","date_gmt":"2022-01-28T03:54:29","guid":{"rendered":"http:\/\/miriamposner.com\/classes\/is270s23\/?page_id=316"},"modified":"2022-01-28T04:01:58","modified_gmt":"2022-01-28T04:01:58","slug":"make-a-pivot-table-in-excel","status":"publish","type":"page","link":"http:\/\/miriamposner.com\/classes\/is270s23\/organizing-data\/make-a-pivot-table-in-excel\/","title":{"rendered":"Make a pivot table in Excel"},"content":{"rendered":"\n<p><em>You can <a href=\"https:\/\/share.descript.com\/view\/NBrWGYC2uDs?t=2\" target=\"_blank\" rel=\"noreferrer noopener\">watch me do this on video<\/a>.<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"1-tell-excel-you-want-to-make-a-pivot-table\">1. Tell Excel you want to make a pivot table<\/h2>\n\n\n\n<p>To begin your pivot table, first click ANYWHERE in the data table on your spreadsheet. Next, select the <strong>Insert<\/strong> tab near the top of your Excel window (1). (Remember that your version of Excel may look a little different!) Then, click on the <strong>Pivot Table <\/strong>button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"858\" height=\"876\" src=\"http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/tell-excel-you-want-to-make-a-pivot-table.png\" alt=\"\" class=\"wp-image-317\" srcset=\"http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/tell-excel-you-want-to-make-a-pivot-table.png 858w, http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/tell-excel-you-want-to-make-a-pivot-table-294x300.png 294w, http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/tell-excel-you-want-to-make-a-pivot-table-768x784.png 768w, http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/tell-excel-you-want-to-make-a-pivot-table-114x116.png 114w\" sizes=\"auto, (max-width: 858px) 100vw, 858px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"2-select-some-options-for-your-pivot-table\">2. Select some options for your pivot table.<\/h2>\n\n\n\n<p>Next, you&#8217;ll see a pop-up window. First, when the pop-up asks you which data you want to analyze, leave the answer just as it is. It should read <strong>Table1<\/strong>. This means that you want the pivot table to include all the categories in your table.<\/p>\n\n\n\n<p>Second, you&#8217;ll be asked where you want to put your pivot table. You can create a pivot table on the same worksheet your data is on, or you can create a pivot table on a new worksheet. I find it less confusing to work with a pivot table on a new worksheet. So select <strong>New Worksheet<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"764\" src=\"http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/select-some-options-for-your-pivot-table-1024x764.png\" alt=\"\" class=\"wp-image-318\" srcset=\"http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/select-some-options-for-your-pivot-table-1024x764.png 1024w, http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/select-some-options-for-your-pivot-table-300x224.png 300w, http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/select-some-options-for-your-pivot-table-768x573.png 768w, http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/select-some-options-for-your-pivot-table-156x116.png 156w, http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/select-some-options-for-your-pivot-table.png 1140w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"3-learning-about-the-pivot-table-workspace\">3. Learning about the pivot table workspace<\/h2>\n\n\n\n<p>Excel adds a new worksheet and you will see a number of options related to the creation of your pivot table. The <strong>PivotTable Fields<\/strong> options are the most important. You will create your pivot table by dragging field names into the blank boxes below.<\/p>\n\n\n\n<p>On the left, you&#8217;ll notice a box that reads, &#8220;To build a report, choose fields&#8230;&#8221; That&#8217;s where your pivot table will appear.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"863\" src=\"http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/learning-about-the-pivot-table-workspace-1024x863.png\" alt=\"\" class=\"wp-image-319\" srcset=\"http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/learning-about-the-pivot-table-workspace-1024x863.png 1024w, http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/learning-about-the-pivot-table-workspace-300x253.png 300w, http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/learning-about-the-pivot-table-workspace-768x647.png 768w, http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/learning-about-the-pivot-table-workspace-138x116.png 138w, http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/learning-about-the-pivot-table-workspace.png 1452w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"4-columns-rows-filters-values\">4. Columns, rows, filters, values??<\/h2>\n\n\n\n<p>Let&#8217;s take a little detour to talk about those confusing-sounding labels on your pivot table workspace. It will take a little bit of trial and error for you to get comfortable using them; it can be confusing to figure out which field name should go where.<\/p>\n\n\n\n<p>The <strong>Field Names<\/strong> correspond to the columns in your dataset.<\/p>\n\n\n\n<p>In general, <strong>Rows<\/strong> are best for time increments, like months, years, etc. In the <strong>Columns<\/strong> box, you&#8217;ll usually put the categories you want to distinguish among your records. For example, I&#8217;m interested in knowing how many records I have in each color. So in the next step, <strong>Color<\/strong> is the field name I&#8217;ll drag into the <strong>Columns <\/strong>box. <strong>Values<\/strong> are the metrics you&#8217;re measuring: in this case, the number of records for each color.<\/p>\n\n\n\n<p>If you&#8217;re having trouble getting your head around this, don&#8217;t worry! Everyone finds it confusing, and everyone agrees that you&#8217;ll need to practice and play with the options in order to figure out the best configuration.<\/p>\n\n\n\n<p>It&#8217;s a little easier to see what I mean when you try it yourself, which you&#8217;ll do in the next step.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"650\" height=\"1024\" src=\"http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/columns-rows-filters-values--650x1024.png\" alt=\"\" class=\"wp-image-320\" srcset=\"http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/columns-rows-filters-values--650x1024.png 650w, http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/columns-rows-filters-values--190x300.png 190w, http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/columns-rows-filters-values--768x1210.png 768w, http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/columns-rows-filters-values--74x116.png 74w, http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/columns-rows-filters-values-.png 796w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"5-drag-field-names-into-the-boxes\">5. Drag field names into the boxes<\/h2>\n\n\n\n<p>We have date information, so let&#8217;s put that in the <strong>Rows<\/strong> box. To do that, click on the <strong>Date<\/strong> field name and drag it into the <strong>Rows<\/strong> box. Our categories are the <strong>Colors<\/strong>, so let&#8217;s drag the <strong>Colors <\/strong>field name into the <strong>Columns <\/strong>box.<\/p>\n\n\n\n<p>And we&#8217;ll do one more thing: We need to tell the pivot table what it should count. So let&#8217;s click on the <strong>Colors<\/strong> field name a SECOND time and drag it again, this time into the <strong>Values<\/strong> box. This tells Excel that you want to count up the number of records in each <strong>Color<\/strong> category.<\/p>\n\n\n\n<p>Side note: If you want to delete a field name from one of the boxes, uncheck the box next to its name in the list of field names.<\/p>\n\n\n\n\n\n<h2 class=\"wp-block-heading\" id=\"6-you-have-a-pivot-table\">6. You have a pivot table!<\/h2>\n\n\n\n<p>Now, you&#8217;ll see that Excel has neatly summarized all of your values, showing you how many colors occurred by year. It was even smart enough to subdivide the data by quarter, as you&#8217;ll see if you click on the tiny plus signs just to the right of the year labels.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"738\" height=\"450\" src=\"http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/you-have-a-pivot-table-.png\" alt=\"\" class=\"wp-image-321\" srcset=\"http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/you-have-a-pivot-table-.png 738w, http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/you-have-a-pivot-table--300x183.png 300w, http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/you-have-a-pivot-table--190x116.png 190w\" sizes=\"auto, (max-width: 738px) 100vw, 738px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"7-let-s-make-a-quick-chart-1\">7. Let&#8217;s make a quick chart (1)<\/h2>\n\n\n\n<p>Now that you&#8217;ve made a pivot table, it&#8217;s easy to compare values on a chart! First you need to select the contents of your table. You can do that efficiently by clicking on the cell containing 2016 (on my computer, it&#8217;s cell A5), holding down the shift key, and clicking on the number above the grand total on the bottom right of your table.<\/p>\n\n\n\n<p>Make sure you don&#8217;t include the grand total row or column in your chart.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"828\" height=\"408\" src=\"http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/let-s-make-a-quick-chart-1-.png\" alt=\"\" class=\"wp-image-322\" srcset=\"http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/let-s-make-a-quick-chart-1-.png 828w, http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/let-s-make-a-quick-chart-1--300x148.png 300w, http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/let-s-make-a-quick-chart-1--768x378.png 768w, http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/let-s-make-a-quick-chart-1--228x112.png 228w\" sizes=\"auto, (max-width: 828px) 100vw, 828px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"8-let-s-make-a-quick-chart-2\">8. Let&#8217;s make a quick chart (2)<\/h2>\n\n\n\n<p>Now that you&#8217;ve selected the values in your table, click on the <strong>Insert<\/strong> tab within the Excel window and click on the <strong>Column<\/strong> chart type. From the drop-down menu, select the <strong>2D Clustered Column<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"705\" src=\"http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/let-s-make-a-quick-chart-2--1024x705.png\" alt=\"\" class=\"wp-image-323\" srcset=\"http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/let-s-make-a-quick-chart-2--1024x705.png 1024w, http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/let-s-make-a-quick-chart-2--300x207.png 300w, http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/let-s-make-a-quick-chart-2--768x529.png 768w, http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/let-s-make-a-quick-chart-2--169x116.png 169w, http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/let-s-make-a-quick-chart-2-.png 1258w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"9-admire-your-chart\">9. Admire your chart<\/h2>\n\n\n\n<p>Now it&#8217;s easy to see how many of which color appear in your data each year. (Of course, the graph&#8217;s colors are nonsensical, but you can change those by double-clicking on the color names in the legend and then changing the column colors in the <strong>Format chart area <\/strong>tab on the left.)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"584\" src=\"http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/admire-your-chart-1024x584.png\" alt=\"\" class=\"wp-image-324\" srcset=\"http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/admire-your-chart-1024x584.png 1024w, http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/admire-your-chart-300x171.png 300w, http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/admire-your-chart-768x438.png 768w, http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/admire-your-chart-203x116.png 203w, http:\/\/miriamposner.com\/classes\/is270s23\/wp-content\/uploads\/sites\/23\/2022\/01\/admire-your-chart.png 1416w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"10-see-if-you-can\">10. See if you can&#8230;<\/h2>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li>alter the chart so that each column represents a year and the colors appear on the X (horizontal) axis<\/li><li>create a table that shows the sum of sales per color, by year<\/li><li>create a table that displays the regions on the X axis and the years as columns<\/li><li>create a filter that allows you to display results by color<\/li><\/ol>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can watch me do this on video. 1. Tell Excel you want to make a pivot table To begin your pivot table, first click ANYWHERE in the data table&hellip; <a class=\"more-link\" href=\"http:\/\/miriamposner.com\/classes\/is270s23\/organizing-data\/make-a-pivot-table-in-excel\/\">Continue reading <span class=\"screen-reader-text\">Make a pivot table in Excel<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":328,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_eb_attr":"","footnotes":""},"class_list":["post-316","page","type-page","status-publish","hentry","entry"],"_links":{"self":[{"href":"http:\/\/miriamposner.com\/classes\/is270s23\/wp-json\/wp\/v2\/pages\/316","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/miriamposner.com\/classes\/is270s23\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/miriamposner.com\/classes\/is270s23\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/miriamposner.com\/classes\/is270s23\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/miriamposner.com\/classes\/is270s23\/wp-json\/wp\/v2\/comments?post=316"}],"version-history":[{"count":0,"href":"http:\/\/miriamposner.com\/classes\/is270s23\/wp-json\/wp\/v2\/pages\/316\/revisions"}],"up":[{"embeddable":true,"href":"http:\/\/miriamposner.com\/classes\/is270s23\/wp-json\/wp\/v2\/pages\/328"}],"wp:attachment":[{"href":"http:\/\/miriamposner.com\/classes\/is270s23\/wp-json\/wp\/v2\/media?parent=316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}