{"id":192603,"date":"2015-12-15T09:00:16","date_gmt":"2015-12-15T17:00:16","guid":{"rendered":"http:\/\/www.microsoft.com\/?p=192603"},"modified":"2024-08-30T13:35:40","modified_gmt":"2024-08-30T20:35:40","slug":"learn-how-to-unpivot-static-tables-in-excel-2016","status":"publish","type":"post","link":"https:\/\/www.microsoft.com\/en-us\/microsoft-365\/blog\/2015\/12\/15\/learn-how-to-unpivot-static-tables-in-excel-2016\/","title":{"rendered":"Learn how to unpivot static tables in Excel 2016"},"content":{"rendered":"
With the new Get & Transform capabilities in Excel 2016, you can now import, transform and combine data from different sources\u2014thanks to the integrated Power Query technology in Excel. Today we are going to focus on one of the most useful capabilities that Get & Transform offers\u2014the ability to unpivot to transform ANY table in your workbook to make it ready for powerful analysis using PivotTables and PivotCharts.<\/p>\n
<\/p>\n
<\/a><\/p>\n <\/p>\n Transform a static table into a PivotTable ready for deep analysis.<\/em><\/p>\n\n Turn data into insights.<\/p>\n\t\t\t\t\t<\/div>\n\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t<\/div>\n\n\t\t\t\t\t<\/div>\n\t<\/div>\n<\/div>\n\n\n\n Let’s start with a common scenario. You have an Excel workbook that is dedicated for manual data entry to record the hours you put in for each relevant project:<\/p>\n <\/p>\n But analyzing this data is not easy and sometimes you wish you could easily create charts on this data, or even better\u2014PivotCharts.<\/p>\n <\/p>\n Here is a common, yet challenging scenario\u2014challenging, because it would take a lot of effort to get to the point you can gain insights from this data in the current format.\u00a0Fortunately, through the new Get & Transform<\/strong> section in the Data<\/strong> tab of Excel 2016, the challenge is over.<\/p>\n Simply select any cell inside an existing table or range and in the Get & Transform<\/strong> section, click From Table<\/strong>.<\/p>\n <\/p>\n You will see a preview of your data inside the Query Editor<\/strong> window. From this window, you can start transforming your data in powerful, yet simple ways. Each change you make is recorded as a transformation step that is saved with your workbook. All the steps are kept as a sequence that can be performed again and again each time you refresh your data.<\/p>\n In the Query Editor, you will usually need the help of the Unpivot<\/strong> transformation to change your table into a format that can be used by PivotTable.<\/p>\n In the example below, I can select the first column that includes project names and click Unpivot Other Columns<\/strong> to transform my data from columns of Project Name \/ 2010 \/ 2011 \/ 2012\u2026<\/strong> to the desired column structure of Project \/ Year \/ Duration<\/strong>.<\/p>\n <\/p>\n And here are the results in the Query Editor<\/strong>:<\/p>\n <\/p>\n I can now rename the columns to Project<\/strong>, Year<\/strong> and Duration <\/strong>inside the Query Editor and then load the data into a PivotTable or PivotChart.<\/p>\n We recently published a series of blog posts on our TechNet blog, beginning with Get & Transform Data in Excel 2016<\/a>, that walk you through a variety of scenarios and magical transformations that can take ANY kind of a table or range in Excel and unpivot it into the desired structure for PivotTables and PivotCharts.<\/p>\n If you are familiar with the Unpivot functionality and want to test your skills, read this post<\/a>. Even simple tables such as a class schedule may require some cunning approach.<\/p>\n <\/p>\n The most common scenario includes nested tables with hierarchical date information such as years, quarters and months. Read here<\/a> how to transform these tables.<\/p>\n <\/p>\n And if you wish to apply your magic on ANY nested table, read this post<\/a> that will first show you how to unpivot three levels of nested rows and columns. It is so simple.<\/p>\n <\/p>\n On many occasions your data contains comma-separated values, like a table of events in which all participants are listed on a single column. You can learn here<\/a> how to split such data and unpivot it.<\/p>\n <\/p>\nMicrosoft Excel<\/h2>\n\n\t\t\t\t\t
Learn more<\/h3>\n