This post has been republished via RSS; it originally appeared at: Excel Blog articles.
Excel 2016 for Windows introduced a powerful set of Get & Transform Data tools. These tools, based on Power Query technology, enable you to easily connect, combine, and shape data coming from a variety of sources.
Today, we are excited to announce the first step in a journey to support Power Query in Excel for Mac. This is by far the most popular idea on Excel UserVoice under Excel for Mac category. In this release, you can refresh your Power Query queries on Mac from Text, CSV, XLSX, XML and JSON files, and you can author queries with VBA.
- To use Power Query, just click the Data tab in Excel 2016 or newer, called “Get and Transform Data”. Learn more If you’re using Excel 2010/2013, download the Microsoft Power Query add-in to get started.
- Use VBA to author Power Query queries. Although authoring in the Power Query Editor is not yet available in Excel for Mac, VBA does support Power Query authoring. Here is some basic code you can adapt and use. Create a query and load its data. Here is a simple sample that adds a query that creates a list with values from 1 to 100.
Getting Started
Power Query Update Download
Power Query is a new add-in that was introduced in Excel 2013 by Microsoft and was that popular that they made it backward compatible with Excel 2010. Read the tutorial on how to install Power Query in Excel 2010 here. Even though worldwide mac user adoption is 8% (close to 94 million users) - there are a lot of data scientist and data analyst who use excel on mac and hardly anyone knows about Power BI! I think the best way to introduce them to this amazing world is via enabling Power Query in excel for them and most of influence million dollar analytics tools budget on a regular basis which would help.
Power Query For Excel 2013
The new functionality is live for all Office 365 subscribers in Excel for Mac running version 16.29 (19090802) and later. If you are running an earlier version, find out how to update your Office for Mac.
Refreshing Power Query Queries
You can now refresh the Power Query queries in your workbook that pull data from Text, CSV, XLSX, XML or JSON files. Triggering the refresh command is done the same way that you've been doing it so far. For example:
- Click on the Data tab of the ribbon > then choose Refresh All
- Right-click on your query table > then click Refresh
- Right click on your PivotTable > then click Refresh Data
- Use a VBA script
- And more...
Please note that upon the first time you try to refresh your workbook queries, you may need to update the location of the data source so that it works on your Mac. Click the Data tab on the ribbon > Connections > select the desired connection > and click Change File Path button to update it.
Authoring Power Query Queries
With this update, you can also create and manage Power Query queries in your workbook using VBA. Any existing macros and VBA scripts that reference Workbook.Queries and WorkbookQuery entities in the Excel's object model will work in Excel for Mac as expected.
Note: You may still need to adjust your scripts to reflect the notion of a file path on Mac (e.g., /Users/USERNAME/Desktop/data.csv) that is different than a file path on Windows (e.g., C:UsersUSERNAMEDesktopdata.csv).
Sharing your feedback
Let us know what you think and submit your feedback using Send a Smile/Frown (Send us a Smile or Frown button at the top right)!
Stay tuned for more updates!
Guy Hunkin
Add Power Query To Excel 2013
Program Manager, Excel