This wikiHow teaches you how to use the Power Query feature in Excel 2016 on a Windows and Mac computer. Power Query is an Excel function that allows you to import data from a variety of sources (Excel tables, CSV files, online database, etc.), and easily reconfigure the data into a pivot table in a spreadsheet.[1] Microsoft released Power Query and Power Pivot as Excel Add-ons in 2010 but these features are now standard in Excel 2016 under the "Get and Transform" function.[2]

Steps

  1. 1
    Open Excel. It's the app icon that resembles a green spreadsheet with a white "X" on the cover.
  2. 2
    Open a new document. To open a new document, either click "New" in the green sidebar of the opening screen—or if you have an existing document open—click "File" and then click "New."
    Advertisement
  3. 3
    Click the Data tab. It's in the menu bar at the top of Excel 2016.
  4. 4
    Click Get Data. It's next to an icon that resembles a table in front of a battery in the "Get and Transform" box. This displays a drop-down menu with a variety of source types you can import data from.
    • On Mac, click either "From HTML", "From Text", or click "New Database Query."
  5. 5
    Select a data source. The "New Query" drop-down menu contains a variety of sub-menus that allow you to import data from a variety of data source types. This opens a browser menu to browse source files. Click a file to select it, and then click "Import". The source type menus include:
    • From File: This menu allows you to import data from another Excel worksheet, a CSV file, XML file, JSON, and more.
    • From Database: This menu allows you to import data from a database such as MySQL or Oracle.
    • From Online Service: This menu allows you to import data from online sources, such as SharePoint, Microsoft Exchange, Salesforce, and Facebook.
    • From Other Sources: This menu allows you to import data from other sources, such as the web, Active Directory, OData, Hadoop files, ODBC, OLEDB, and a blank query.
  6. 6
    Select the data you want to import. When you import data from an external file or source, a window pops up that allows you to select specific data from your source. Click the data type you want to load in the sidebar to the right. Then click "Load" in the lower-right hand corner of the window. This loads the data and creates a connection to the data source.
  7. 7
    Double-click a query to edit it. All queries are listed under the "Workbook Queries" sidebar to the right. Double-clicking a query opens the query editor.
    • If the "Workbook Queries" sidebar isn't showing on-screen, click the "Data" tab and then click "Queries & Connections" in the "Get and Transform" section. On Mac, click the "Connections" button to list the current connections.
  8. 8
    Edit and transform your data. The query editor has a ton of tools you can use to edit and transform your data. You can add or remove columns and rows, merge or append queries, and transform data in various ways.
    • If you are merging two data queries together, click "Merge Queries". Then you will need to select a common data field that the two queries will be merged together by. Then use the "Join Kind" drop-down menu to select what information will be included after they are merged.
  9. 9
    In the Query Editor, click Close and Load. It's the button that has an icon of a purple disk in front of a sheet of paper. It's on the far-left under the "Home" tab. This exports the data from the query editor into the Excel worksheet.
  10. Advertisement

About This Article

Travis Boylls
Written by:
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, Travis Boylls. Travis Boylls is a Technology Writer and Editor for wikiHow. Travis has experience writing technology-related articles, providing software customer service, and in graphic design. He specializes in Windows, macOS, Android, iOS, and Linux platforms. He studied graphic design at Pikes Peak Community College. This article has been viewed 43,692 times.
How helpful is this?
Co-authors: 6
Updated: May 4, 2021
Views: 43,692
Categories: Microsoft Excel
Article SummaryX

1. Click the Data tab.
2. Click Get Data.
3. Select a data source and select your data to import.
4. Double-click a query to edit it.
5. Click Close and Load.

Did this summary help you?
Advertisement