![]() |
VOOZH | about |
The CData Excel Add-In for Cosmos DB enables you to edit and save Cosmos DB data directly from Excel. This article explains how to transfer data from Excel to Cosmos DB. This technique is useful if you want to work on Cosmos DB data in Excel and update changes, or if you have a whole spreadsheet you want to import into Cosmos DB. In this example, you will use the Customers table; however, the same process will work for any table that can be retrieved by the CData Excel Add-In.
If you have not already done so, create a new Cosmos DB connection by clicking From Cosmos DB on the ribbon.
To obtain the connection string needed to connect to a Cosmos DB account using the SQL API, log in to the Azure Portal, select Azure Cosmos DB, and select your account. In the Settings section, click Connection String and set the following values:
To insert data into Cosmos DB, you will first need to retrieve data from the Cosmos DB table you want to add to. This links the Excel spreadsheet to the Cosmos DB table selected: After you retrieve data, any changes you make to the data are highlighted in red.
After retrieving data, you can add data from an existing spreadsheet in Excel.
As each row is inserted, the Id value will appear in the Id column and the row's text will change to black, indicating that the record has been inserted.
👁 The changes applied. (QuickBooks is shown.)Download a free trial of the Excel Add-In for Cosmos DB to get started:
Download NowLearn more:
👁 Cosmos DB IconThe Cosmos DB Excel Add-In is a powerful tool that allows you to connect with live Cosmos DB document databases, directly from Microsoft Excel.
Use Excel to read, write, and update Cosmos DB. Perfect for mass imports / exports / updates, data cleansing & de-duplication, Excel based data analysis, and more!