The Looker-Excel Connector lets you export queries from a Looker Explore to a format that Microsoft Excel recognizes. When the Looker-Excel Connector is enabled, Looker Explores display the Open in Exceloption in the Explore gear menu. When you select this option, Looker exports the Explore query to an ODC file on your Windows PC. If you have the ODBC driver installed , you can open the ODC file in Microsoft Excel for Windows.
Before you begin
To use the Looker-Excel Connector, you must have the following:
- A Windows 64-bit or 32-bit PC.
- A Looker instance that meets the following requirements:
- Running Looker 25.8 or later.
- Enabled for the Microsoft ExcelBI connector. A Looker admin must enable the Microsoft Exceltoggle on the Looker BI Connectors page.
- A Looker account with a user role
that includes the
explore
permission on the LookML model that the user wants to access with Looker-Excel Connector.
You must also install the ODBC driver , as described in the following section.
Installing the ODBC driver
The Looker ODBC driver is a piece of software that must be installed on the local machine of each user of the Looker-Excel Connector. The ODBC driver allows ODBC compatible clients to connect to your Looker instance as if the instance were a SQL database.
To use an ODBC driver, you need to have an ODBC manager program installed. Windows typically comes pre-installed with a program called ODBC Data Sourcesas the management tool. For more information, see the Microsoft documentation on the ODBC Data Source Administrator .
To install the ODBC driver, follow these steps:
-
Use the following links to download the latest ODBC installer for your Windows system's architecture (64-bit or 32-bit):
-
Open the ODBC installer file and follow the on-screen instructions.
-
You may see a Windows dialog that says Windows protected your PC. If you see this dialog, click the More infolink and then click the Run anywaybutton.
The first time you open an ODC file after installing the ODBC driver on your Windows PC, Windows prompts you to create a Data Source Name (DSN) to enable you to use the ODBC driver with ODBC clients such as Excel. The DSN is a saved configuration that contains your Looker instance information and authentication credentials.
Using the Looker-Excel Connector
Once the prerequisites are met and the ODBC driver is installed on your computer, you can open Looker data in Microsoft Excel by following these steps:
- On your Windows PC, open your Looker instance in a browser.
- Open an Explore and run a query.
- Click the Explore gear menu and select the Open in Exceloption.
-
In the Open in Exceldialog, select one of the following options for Number of rows and columns to include:
- Current result table: Select this option to include all the rows and columns that are in the current result table in the Explore. The number of rows is limited by the Row Limitvalue of the Explore.
- All results: Select this option to include all the results that are returned by the query to your database. The All resultsoption is typically disabled for queries that have Row Totals enabled, or that retrieve data from a database dialect that cannot stream results percent of total , or that contain the following types of measures: percent of previous or running totals . Warning: Even when the All resultsoption is available, you should still use caution when downloading all results. Some queries are very large, containing thousands or millions of rows, which can overwhelm most spreadsheet programs — or even your Looker instance.
- Custom: Select this option to manually specify the number of rows and columns to include in the ODC file download.
- Users who have
download_without_limit
permission can enter a row size up to 100,000 and column size up to 200. - Users who have
download_with_limit
permission can enter a row size up to 5,000 rows and column size up to 200. - For users with neither
download_with_limit
ordownload_without_limit
permission, the Open In Exceloption will not be displayed.
-
In the Open in Exceldialog, click Download. An ODC file will be downloaded to your computer.
-
Open the ODC file with Microsoft Excel.
-
Microsoft Excel presents a security notice about blocked data connections. Click Enableto enable the data connection.
-
Windows presents a dialog for configuring the Google Looker DSN. Configure the DSN by performing the following steps:
- In the Auth Typedrop-down menu, select OAuth. Although OAuth is the preferred option, you can instead select Basic Authif required. If you select Basic Auth, you will need to input the Looker API credentials. See the Authenticating using basic auth section on this page.
- Click Login. This will open a web browser that authenticates into your Looker account. After the web browser shows a successful login, close the web browser and go back to the DSN dialog.
- Click OKin the DSNdialog.
- If prompted, click OKto agree to overwrite the DSN.
Excel runs the query and inserts the data into a new pivot table object. From here, you can use the data in calculations and visualizations.
If you want to retrieve fresh data, you can do one of the following:
- To re-run the same query to get the latest data from Looker, click the Refreshbutton in the Excel ribbon.
- To modify the query, use the Looker Explore UI to update the query and then select the Open in ExploreExplore option to download a new ODC file (in other words, start over from step 1 of this procedure). By default, Excel will open a new ODC file in a new Excel workbook. If you want to move a pivot table from one workbook to another, you can click-and-drag the sheet between Excel workbooks, or you can copy and paste the pivot table from work workbook to another.
Limitations
The Looker-Excel Connector is supported only on Windows, not on Mac or Linux computers.
The following Explore query features aren't supported with the Looker-Excel Connector:
If you want to open an Explore query in Microsoft Excel, remove the table calculations and pivoted columns before selecting Open in Excelfrom the Explore gear menu.
Troubleshooting
The following sections provide information on troubleshooting procedures and tools:
Manually adding a DSN
When you open an ODC file with Excel, Windows will prompt you to create the DSN. If you need to manually create or edit the DSN, you can use the Windows ODBC Driver Data Source Administrator.
To manually create or edit the DSN, follow these steps:
- From the control panel of your Windows PC, open the ODBC Data Sourcesapplication (before Windows 8, this application was called ODBC Driver Data Source Administrator).
- Click the Addbutton.
- Double-click on Google Looker ODBC Driver.
- In the Configure Google Looker DSNdialog, fill in the following fields:
- Data Source Name * : (Optional) Enter a name for your data source to help you recognize this DSN in the future.
- Host: Enter the URL for your Looker instance.
- Port: Enter the port to connect to on the Looker instance. The default is 443.
- In the Auth Typedrop-down menu, select OAuth. Although OAuth is the preferred option, you can instead select Basic Authif required. If you select Basic Auth, you will need to input the Looker API credentials. See the Authenticating using basic auth section on this page.
- Click Login. This will open a web browser that authenticates into your Looker account. After the web browser shows a successful login, close the web browser and go back to the DSN dialog.
- Click Testto verify the connection.
- Click OKin the DSNdialog.
- If prompted, click OKto agree to overwrite the DSN.
Authenticating using basic auth
OAuth is the preferred way to authenticate to Looker. Alternatively, if you select Basic Authas the Auth Typein the DSN dialog, you can authenticate using the API key Client IDand Client Secret. See the Admin settings - Users documentation page for information about creating API keys.
Installer logs
If you need to access the installer logs to troubleshoot the Looker-Excel Connector, you can access them in the directory C:\Users\<username>\lookerODBCLogs
. The installer log names use the following format:
Google_Looker_ODBC_<32/64>-bit_Driver_<timestamp>
Upgrading the Microsoft Visual C++ Redistributable (MSVC)
The Microsoft Visual C++ Redistributable (MSVC) Package version 14 is installed automatically if it's not already present.
If the MSVC Package is already installed, the Google Looker ODBC driver installer won't upgrade it. To use the MSVC version that is included with the driver, uninstall the existing MSVC package before running the installer.
After you uninstall the driver, the MSVC package remains installed to support other applications. You can manually uninstall it if you no longer need it.