Skip to main content

Set up the Databricks Excel Add-in

Preview

This feature is in Public Preview.

The Databricks Excel Add-in connects your Databricks workspace to Microsoft Excel, bringing governed Lakehouse data directly into your spreadsheets to help you move from data to decisions faster. The add-in is fully supported across Excel for the web and desktop versions for both Windows and macOS.

This page describes the two methods available to set up the Databricks Excel Add-in in Microsoft Excel. This add-in uses single sign-on (SSO) authentication to connect to your Databricks workspace and supports Unity Catalog for data governance and access control.

Prerequisites

Before you install the Excel Add-in, verify that you have the following:

  • Access to a Databricks workspace with Unity Catalog enabled.
  • Access to a running SQL warehouse.
  • Permissions to read data from Unity Catalog tables in your workspace.
  • If you use a firewall or a cloud security platform, allowlist the Databricks workspace URLs included in the add-in file.

Set up the add-in file

The add-in file is a small connector file that tells Excel exactly how to securely connect to Databricks. It acts as the digital handshake that ensures the add-in loads correctly and stays up to date every time you open Excel.

  1. Click the following link to instantly download the file:

    Link to automatically download the add-in file

  2. Edit the add-in file by specifying your workspace URL as an <AppDomain> within the AppDomains section. Your workspace URL is the base URL you use to access your Databricks workspace in a browser. To switch between multiple Databricks workspaces, add each workspace URL to the add-in file.

    XML
    <AppDomains>
    <!-- DO NOT CHANGE -->
    <AppDomain>https://www.databricks.com</AppDomain>
    <AppDomain>https://login.databricks.com</AppDomain>
    <!-- ADD WORKSPACE URLS AS SHOWN BELOW; PUT EACH WORKSPACE URL IN ITS OWN <AppDomain> TAG -->
    <!-- EXAMPLE -->
    <AppDomain>https://<instance1-id>.<region>.gcp.databricks.com</AppDomain>
    <AppDomain>https://<instance2-id>.<region>.gcp.databricks.com</AppDomain>
    </AppDomains>
    note

    Paste your workspace URL as plain text (without formatting) by pressing Ctrl+Shift+V or Command+Shift+V.

  3. Save the file. Verify that it's properly formatted as an .xml file.

Option 1: Admin managed

As a global admin, you can download and configure the Databricks Excel Add-in and deploy it to other users in your organization.

To install the Databricks Excel Add-in as a Microsoft 365 Admin, you must have the global admin permission. As an admin, you can determine which users in your organization can use add-ins. For more about global admins on Microsoft 365, see the Microsoft documentation.

Step 1: Register the add-in

Office admins must first add the add-in to the tenant to register the product ID in the admin center.

  1. In the Microsoft 365 admin center, go to Settings > Integrated apps and click the Add-ins link.
  2. Click Deploy Add-in and click Next.
  3. Select Upload custom apps as the option to deploy a new add-in.
  4. Select the option to upload a manifest, click Choose File, and upload the add-in file.
  5. On the Configure add-in page, under Assign Users select Just me.
  6. Click Deploy to finish the initial registration.

Step 2: Configure workspace domains

Configures the workspace URLs as AppDomains:

  1. Install Microsoft PowerShell if it is not already installed.

  2. Install the Microsoft PowerShell module O365CentralizedAddInDeployment.

  3. Open PowerShell and connect to your Office 365 tenant:

    PowerShell
    Connect-OrganizationAddInService
  4. Sign in with your Microsoft 365 admin user.

  5. Register all workspace domains by running the following command:

    PowerShell
    Set-OrganizationAddInOverrides -ProductId 8a512e2b-c04e-4c06-9235-11b6cd59f584 -AppDomains "[https://workspace-1.databricks.com](https://workspace-1.databricks.com)", "[https://workspace-2.databricks.com](https://workspace-2.databricks.com)", "[https://workspace-3.databricks.com](https://workspace-3.databricks.com)", "[https://workspace-4.databricks.com](https://workspace-4.databricks.com)"

Step 3: Deploy to the organization

After configuring the domains, assign the add-in to other users in your organization.

  1. Return to the Settings > Integrated apps > Add-ins page in the Microsoft 365 admin center.
  2. Select the Databricks add-in from the list.
  3. Edit the assigned users.
  4. Change the assignment from Just me and specify Specific users/groups or select Entire organization.
  5. Click Save.

Option 2: Self-service

Installation steps vary depending on your Excel platform. Download and set up the add-in file provided in the Prerequisites.

To install and connect to the Excel Add-in in Excel for the web do the following:

  1. Open Excel for the web and create or open a workbook.
  2. Under the Home tab, click Add-ins > Advanced.
  3. Click Upload My Add-in.
  4. Upload the add-in file.
  5. Click Upload.
  6. Find and click the Databricks Add-in from the Add-ins menu.
  7. Sign in to your Databricks account. If there is an error, make sure to enable pop-up dialogs.
  8. If you configured multiple workspace URLs, select the desired Databricks account name. You only need to select a specific workspace if the URLs are within the same account. For more information on account names, see Locate your account ID.

Change Databricks workspace

If your add-in file specifies multiple Databricks workspaces, you can switch between those workspaces. For more information, see Set up the add-in file.

To connect to a different Databricks workspace, do the following:

  1. In the upper-right of the Databricks Add-in pane, click the three-dot menu next to the compute selector.
  2. Click Change workspace.
  3. Select the account your workspace is in, the workspace if prompted, and sign in.

Next steps