![]() |
VOOZH | about |
The CData ODBC Driver for Excel Online enables you to link to Excel Online data in Microsoft Power Query, ensuring that you see any updates. This article details how to use the ODBC driver to import Excel Online data into Microsoft Power Query.
If you have not already, first specify connection properties in an ODBC DSN (data source name). This is the last step of the driver installation. You can use the Microsoft ODBC Data Source Administrator to create and configure ODBC DSNs.
You can connect to a workbook by providing authentication to Excel Online and then setting the following properties:
: Set this to the name or Id of the workbook.
If you want to view a list of information about the available workbooks, execute a query to the Workbooks view after you authenticate.
You use the OAuth authentication standard to authenticate to Excel Online. See the Getting Started section in the help documentation for a guide. Getting Started also guides you through executing SQL to worksheets and ranges.
Follow the steps below to import Excel Online data using standard SQL:
From the ribbon in Excel, click Power Query -> From Other Data Sources -> From ODBC.
Provider=MSDASQL.1;Persist Security Info=False;DSN=CData ExcelOnline Source
Enter the SELECT statement to import data with. For example:
SELECT Id, Column1 FROM Test_xlsx_Sheet1👁 The ODBC connection string and SELECT query. (Salesforce is shown.)
Enter credentials, if required, and click Connect. The results of the query are displayed in the Query Editor Preview. You can combine queries from other data sources or refine the data with Power Query formulas. To load the query to the worksheet, click the Close and Load button.
👁 Tables loaded in Power Query. (Salesforce is shown.)Download a free trial of the Excel Online ODBC Driver to get started:
Download NowLearn more:
👁 Excel Online IconThe Excel Online ODBC Driver is a powerful tool that allows you to connect with live Excel Online data, directly from any applications that support ODBC connectivity.
Access Excel Online Spreadsheet data like you would a database - read, write, and update data through a standard ODBC Driver interface.