Navigation

Connect from Microsoft Excel

You can import data from a MongoDB collection into a Microsoft Excel spreadsheet with the MongoDB Connector for BI and an ODBC data connection.

To connect Excel to the MongoDB Connector for BI, you must first create a system Data Source Name (DSN).

Before beginning this tutorial, make sure you have a running mongosqld instance.

1

Start Microsoft Excel and open a blank worksheet.

2

Select the Data tab to open the Data toolbar.

3
  1. Click the Get External Data button on the left side of the toolbar.
  2. Click From Other Sources.
  3. Select the From Data Connection Wizard option.
Screenshot of the Data Connection Wizard option
4

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

Screenshot of data source options selection box
5

Select the DSN which connects to your BI Connector instance and click Next.

Screenshot of DSN list
6

Select a database from the dropdown list and a collection from which to import data. Click Next when finished.

Screenshot of database and table list
7

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.

8

In the final dialog window you can specify a format for your worksheet. Click OK when finished.

Give Feedback