Inside The Web
    Facebook Twitter Instagram
    Inside The Web
    • Office
      • Excel
      • Ms Word
      • OneDrive
      • Google Docs
      • Google Sheets
      • Google Drive
    • Email
      • Gmail
      • Outlook
      • Emal Etiquette
    • Office Etiquette
    • Productivity
    Inside The Web
    Home»Office»Excel»How to Unpivot Data on Excel

    How to Unpivot Data on Excel

    Asmi DhakalBy Asmi DhakalApril 18, 2023 Excel 3 Mins Read

    While pivoting data makes it look concise, you may not always find the range easier to analyze. In case of a larger data range, manually unpivoting data can take you quite a while. Fortunately, Excel can automate this task for you using the Power Query.

    The Power Query is a powerful tool in Excel used specifically to automate tasks. The Power Query is available from the Excel version 2016 and later. You can unpivot columns in the Power Query interface, then load the data to your Excel sheet.

    We have divided the methods into three easy steps, so follow along with this guide and unpivot your data in no time!

    Step 1: Convert Range to Table

    You will first have to transform your range into a table before you can load it to Power Query. Select your range, then use the Excel shortcut Ctrl + T to convert it to a table. You can also navigate through the ribbon to change the range to a table:

    1. Select the range.
    2. Head to Insert.
    3. From the Tables section, click Table.
      Convert to Table Excel

    Step 2: Load Data in Power Query

    After you have converted your range to a data table, you can load the table to Power Query.

    1. Select any cell from the table.
    2. From the menu bar, click on Data.
    3. Select From Table in the Get and Transform section.
      New Query from Table Excel

    Step 3: Unpivot Columns from Power Query

    When your data loads in the Power Query editor, you can go ahead and unpivot your values. 

    1. Select the column you wish to unpivot. If you wish to unpivot multiple columns, hold down on the SHIFT key and click on each column.
    2. Right-click on the column header and select Unpivot Columns.
      Unpivot columns in power query
    3. Optional: Change the column header by double-clicking on it. 

    Step 4: Load Data Back to Worksheet

    You will need to close and load the data in the Excel window, once you unpivot your data.

    1. Head to the Home tab.
    2. Select the fly-out under Close and Load > Load to.
      Close and Load Table to Sheet
    3. From the Load To window, select the box next to Table.
    4. If you want Excel to create a new worksheet for your data, select New worksheet. Else, specify the range after choosing Existing worksheet.
      Load to spreadsheet Excel
    5. Click Load.
      Unpivot Data Table Excel

    Other Unpivoting Options

    In Power Query, you could’ve noticed two other options excluding the Unpivot Columns option. These options are no different, they only differ in terms of selection. Here’s a little breakdown of each of the two options if you’re curious:

    • Unpivot Other Columns: This will prompt the Power Query to unpivot the unselected columns. For example, if you’ve selected the first column, every column except the first one will get unpivoted.
    • Unpivot Only Selected Columns: When you select this option, Excel will unpivot only the selected columns.

    Conclusion

    Although using Power Query might sound a bit intimidating when you’re just starting our Excel, it is actually pretty simple. The simple interface of the Power Query makes it extremely easy to navigate.

    What I love most about using Power Query is that it is dynamic. For any data you add more to the data table, Excel automatically pivots it once you refresh your data.

    1. After making changes in the table, head to the Data tab.
    2. Select Connections from the Connection section.
    3. Choose your table from the Workbook Connections window.
    4. On your right, click on Refresh.
      Refresh Connections Excel
    Advanced Excel
    Asmi Dhakal

      Asmi is a content writer specializing in MS Office. She loves writing Excel-related content to assist other users to learn their way around the program. She started using Excel when she first entered the industry as a marketing intern. Soon, she realized that learning the often-overlooked spreadsheet program was no piece of cake. In her articles, she attempts to brief out complex topics to help beginner to intermediate-level Excel users. Asmi uses Excel for everything, including creating a grocery list to managing her personal finance. She’s a bit dramatic when it comes to the Flash Fill feature; so much so that could write a eulogy out of it. When she’s not working, you’ll find her learning a new recipe, or cleaning up her mess (out of the failed recipe).

      Related Posts

      Excel By Nisha Gurung

      How to Compare Two Columns in Excel Using VLOOKUP

      Excel By Nisha Gurung

      How to Share Excel Files with Multiple Users

      Excel By Nisha Gurung

      How to Filter Based on a List in Excel

      Add A Comment
      Table of ContentsToggle Table of ContentToggle
      • Step 1: Convert Range to Table
      • Step 2: Load Data in Power Query
      • Step 3: Unpivot Columns from Power Query
      • Step 4: Load Data Back to Worksheet
      • Other Unpivoting Options
      • Conclusion
      • Home
      • About Us
      • Privacy Policy
      © 2025 Inside The Web

      Type above and press Enter to search. Press Esc to cancel.