Connect from Excel (Windows)

For M10+ clusters that have enabled the BI Connector for Atlas, the Connect dialog provides the details to connect via the BI Connector for Atlas.

Screeenshot of the Atlas BI connection dialog.


MongoDB ODBC Driver

Download and install the MongoDB ODBC Driver for BI Connector for your platform.

Create a System DSN


Open ODBC Data Source Administrator.

Windows ODBC Data Source Administrator

Select the System DSN tab and click the Add button.


Select MongoDB ODBC 1.0 ANSI Driver from the list of available drivers.

The Unicode driver supports a wider range of characters than the ANSI driver.

The following form fields are required:

Field Name Description
Data Source Name A name of your choice.
TCP/IP Server Enter the Hostname specified in the Atlas connect dialog.
Port Enter the Port specified in the Atlas connect dialog.

Enter either the user specified in the Atlas connect dialog or a different MongoDB user for the cluster.

The user is specified in the format:


where the <database-name> is the authentication database for the user. If admin is the authentication database, you can omit ?source=<database-name>.

Password Enter the password corresponding to the entered User.
Database The name of an existing database to which you want to connect.

For example, populating the fields using the Atlas provided information:

ODBC driver configuration.

Click the Test button to test the ODBC connection.

If the connection is successful, click OK to add the DSN. If the connection fails, check the MongoDB user credentials and the IP whitelist.

Connect from Microsoft Excel


Start Microsoft Excel.

Start Microsoft Excel and open a blank worksheet.


Use the Data Connection Wizard to set up the connection.

Microsoft Excel Data Connection Wizard.
  1. Click the Data tab.

  2. Select From Other Sources >

    From Data Connection Wizard option.

  3. Select ODBC DSN from the list of data source options and click Next.

  4. Select the DSN created for your Atlas cluster and click Next.

  5. Select a database and collection from which to import data and click Next.

  6. Save the data connection file and click Finish.

    If you wish to re-use this connection in the future, you can select it from the Data > Get External Data > Existing Connections menu.

  7. In the final wizard window,specify a format for your worksheet. Click OK when finished.

Additional Reference

For more information on the MongoDB Connector for Business Intelligence, see MongoDB Connector for BI Manual.