<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="/assets/rss.xsl" type="text/xsl"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"

>
<channel>
	<title>Sacha Chua - tag - pivot</title>
	<atom:link href="https://sachachua.com/blog/tag/pivot/feed/index.xml" rel="self" type="application/rss+xml" />
	<atom:link href="https://sachachua.com/blog/tag/pivot" rel="alternate" type="text/html" />
	<link>https://sachachua.com/blog/tag/pivot/feed/index.xml</link>
	<description>Emacs, sketches, and life</description>
  
	<lastBuildDate>Mon, 06 Jul 2026 16:20:27 GMT</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>daily</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>11ty</generator>
  <item>
		<title>Microsoft Excel: Converting a summary table / crosstab back into data rows</title>
		<link>https://sachachua.com/blog/2014/10/microsoft-excel-converting-summary-table-crosstab-back-data-rows/</link>
		<dc:creator><![CDATA[Sacha Chua]]></dc:creator>
		<pubDate>Mon, 20 Oct 2014 12:00:55 GMT</pubDate>
    <category>geek</category>
		<guid isPermaLink="false">https://sachachua.com/blog/?p=27543</guid>
		<description><![CDATA[<p>I recently wanted to transform a summary table of the form:</p>
<p><a href="https://sachachua.com/blog/wp-content/uploads/2014/10/2014-10-15-20_36_58-Microsoft-Excel-Book2.png"><img loading="lazy" class="alignnone size-medium wp-image-27544" src="https://sachachua.com/blog/wp-content/uploads/2014/10/2014-10-15-20_36_58-Microsoft-Excel-Book2-640x143.png" alt="2014-10-15 20_36_58-Microsoft Excel - Book2" width="640" height="143" srcset="https://sachachua.com/blog/wp-content/uploads/2014/10/2014-10-15-20_36_58-Microsoft-Excel-Book2-640x143.png 640w, https://sachachua.com/blog/wp-content/uploads/2014/10/2014-10-15-20_36_58-Microsoft-Excel-Book2-280x62.png 280w, https://sachachua.com/blog/wp-content/uploads/2014/10/2014-10-15-20_36_58-Microsoft-Excel-Book2.png 948w" sizes="(max-width: 640px) 100vw, 640px"></a></p>
<p>into a table with rows of (activity, date, value) so that I could add columns for year and month and then analyze the data using a pivot table.</p>
<p>It turns out that you can do this with another pivot table, yay! I followed <a href="http://stackoverflow.com/questions/11674964/how-can-i-transform-rows-into-repeated-column-based-data/11676403#11676403">this tutorial</a> to convert my summary columns into data rows using Microsoft Excel 2010.</p>
<ol>
<li>Press <strong>Alt-D, P</strong> to get to the secret pivot table wizard that's different from the one you get from Insert &gt; Pivot table.</li>
<li>Choose <strong>Multiple consolidation ranges. </strong>Click <strong>Next.</strong></li>
<li>Choose <strong>I will create the page fields. </strong>Click <strong>Next.</strong></li>
<li>Select the range and add it. Go through the rest of the wizard to create a pivot table.</li>
<li>Remove the row and column fields.</li>
<li>Double-click on the total.</li>
</ol>
<p>You should now see a table with the data from your crosstab.</p>
<p><a href="https://sachachua.com/blog/wp-content/uploads/2014/10/2014-10-15-20_43_25-Microsoft-Excel-Book2.png"><img loading="lazy" class="alignnone size-full wp-image-27545" src="https://sachachua.com/blog/wp-content/uploads/2014/10/2014-10-15-20_43_25-Microsoft-Excel-Book2.png" alt="2014-10-15 20_43_25-Microsoft Excel - Book2" width="420" height="135" srcset="https://sachachua.com/blog/wp-content/uploads/2014/10/2014-10-15-20_43_25-Microsoft-Excel-Book2.png 420w, https://sachachua.com/blog/wp-content/uploads/2014/10/2014-10-15-20_43_25-Microsoft-Excel-Book2-280x90.png 280w" sizes="(max-width: 420px) 100vw, 420px"></a></p>
<p>Neato! Pivot tables are even cooler than I thought.</p>

<p>You can <a href="https://sachachua.com/blog/2014/10/microsoft-excel-converting-summary-table-crosstab-back-data-rows/#comment">view 17 comments</a> or <a href="mailto:sacha@sachachua.com?subject=Comment%20on%20https%3A%2F%2Fsachachua.com%2Fblog%2F2014%2F10%2Fmicrosoft-excel-converting-summary-table-crosstab-back-data-rows%2F&body=Name%20you%20want%20to%20be%20credited%20by%20(if%20any)%3A%20%0AMessage%3A%20%0ACan%20I%20share%20your%20comment%20so%20other%20people%20can%20learn%20from%20it%3F%20Yes%2FNo%0A">e-mail me at sacha@sachachua.com</a>.</p>]]></description>
		</item>
	</channel>
</rss>