Transform an Excel Table with Power Query in Excel 2019
Question details
The user wants to transform an Excel table into a different layout using Power Query.

- Product
- Microsoft Excel 2019, Office Home and Student 2019
- Device & OS
- not provided
- Scenario
- Reshape an existing Excel table and return the transformed result to a worksheet.
- Observed behavior
- The desired result is a table in a different layout, produced through Power Query transformations.
Open the workbook and identify the source table and the layout you want to create. Check whether a Table1 query already exists under Data > Queries & Connections.
Edit the existing Table1 query in Power Query
Use this method if the workbook already contains a Table1 query.
In Excel, select Data > Queries & Connections, then double-click Table1 to open it in the Power Query Editor.
In Query Settings, select entries under Applied Steps to see how each step changes the table. Use the gear icon beside a step, when available, to inspect its settings.
Select the relevant columns and use commands on the Transform tab, such as Unpivot Columns, Pivot Column, or Transpose, to create the desired layout.
Select Home > Close & Load to return the transformed table to Excel. To choose a destination, use the Close & Load menu and select Close & Load To.

Create a new query from the source table
Use this method if there is no existing query for the table.
Work with Excel Tables in WPS Spreadsheets
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and Excel format compatibility for a smooth move between office suites. Power Query editing and refresh are Excel-specific, so use Excel when you need to maintain the query.

Frequently Asked Questions
Where can I find an existing Power Query in Excel 2019?
Select Data > Queries & Connections. Double-click the query name, such as Table1, to open it in the Power Query Editor.
How can I see which transformations were already applied?
Open the query and inspect Applied Steps in the Query Settings pane. Select a step to see its result, or use its gear icon, if available, to inspect its settings.
How do I turn several columns into rows?
In the Power Query Editor, select the columns to reshape, then use Transform > Unpivot Columns. Choose the appropriate unpivot option based on which columns you want to keep as identifiers.
How do I choose where the transformed table is loaded?
In the Power Query Editor, open the Home > Close & Load menu and select Close & Load To. Choose the available destination options in the dialog.
Can WPS Spreadsheets edit or refresh an Excel Power Query?
Use Excel to edit or refresh the Power Query. WPS Spreadsheets can open Excel-format workbooks and work with table data, but it should not be relied on to maintain the query.




