![]() |
VOOZH | about |
The CData Excel Add-In for MongoDB provides formulas that can edit, save, and delete MongoDB data. The following three steps show how you can automate the following task: Search MongoDB data for a user-specified value and then organize the results into an Excel spreadsheet.
Accessing and integrating live data from MongoDB has never been easier with CData. Customers rely on CData connectivity to:
MongoDB's flexibility means that it can be used as a transactional, operational, or analytical database. That means CData customers use our solutions to integrate their business data with MongoDB or integrate their MongoDB data with their data warehouse (or both). Customers also leverage our live connectivity options to analyze and report on MongoDB directly from their preferred tools, like Power BI and Tableau.
For more details on MongoDB use case and how CData enhances your MongoDB experience, check out our blog post: The Top 10 Real-World MongoDB Use Cases You Should Know in 2024.
The syntax of the CDATAQUERY formula is the following:
=CDATAQUERY(Query, [Connection], [Parameters], [ResultLocation]);
This formula requires three inputs:
Connection: Either the connection name, such as MongoDBConnection1, or a connection string. The connection string consists of the required properties for connecting to MongoDB data, separated by semicolons.
Set the Server, Database, User, and Password connection properties to connect to MongoDB. To access MongoDB collections as tables you can use automatic schema discovery or write your own schema definitions. Schemas are defined in .rsd files, which have a simple format. You can also execute free-form queries that are not tied to the schema.
The procedure below results in a spreadsheet that organizes all the formula inputs in the first column.
=CDATAQUERY("SELECT * FROM restaurants WHERE Name = '"&B6&"'","Server="&B1&";Port="&B2&";Database="&B3&";User="&B4&";Password="&B5&";Provider=MongoDB",B7)
👁 Formula inputs used in this example. (Google Apps is shown.)Download a free trial of the Excel Add-In for MongoDB to get started:
Download NowLearn more:
👁 MongoDB IconThe MongoDB Excel Add-In is a powerful tool that allows you to connect with live MongoDB document databases, directly from Microsoft Excel.
Use Excel to read, write, and update MongoDB. Perfect for mass imports / exports / updates, data cleansing & de-duplication, Excel based data analysis, and more!