![]() |
VOOZH | about |
The CData Excel Add-In for CSV provides formulas that can query CSV data. The following three steps show how you can automate the following task: Search CSV data for a user-specified value and then organize the results into an Excel spreadsheet.
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 CSVConnection1, or a connection string. The connection string consists of the required properties for connecting to CSV data, separated by semicolons.
CData Drivers let you work with CSV files stored locally and stored in cloud storage services like Box, Amazon S3, Google Drive, or SharePoint, right where they are.
Set the URI property to local folder path.
To connect to CSV file(s) within Amazon S3, set the URI property to the URI of the Bucket and Folder where the intended CSV files exist. In addition, at least set these properties:
To connect to CSV file(s) within Box, set the URI property to the URI of the folder that includes the intended CSV file(s). Use the OAuth authentication method to connect to Box.
To connect to CSV file(s) within Dropbox, set the URI proprerty to the URI of the folder that includes the intended CSV file(s). Use the OAuth authentication method to connect to Dropbox. Either User Account or Service Account can be used to authenticate.
To connect to CSV file(s) within SharePoint with SOAP Schema, set the URI proprerty to the URI of the document library that includes the intended CSV file. Set User, Password, and StorageBaseURL.
To connect to CSV file(s) within SharePoint with REST Schema, set the URI proprerty to the URI of the document library that includes the intended CSV file. StorageBaseURL is optional. If not set, the driver will use the root drive. OAuth is used to authenticate.
To connect to CSV file(s) within Google Drive, set the URI property to the URI of the folder that includes the intended CSV file(s). Use the OAuth authentication method to connect and set InitiateOAuth to GETANDREFRESH.
The procedure below results in a spreadsheet that organizes all the formula inputs in the first column.
=CDATAQUERY("SELECT * FROM Customer WHERE FirstName = '"&B2&"'","URI="&B1&";Provider=CSV",B3)
👁 Formula inputs used in this example. (Google Apps is shown.)Download a free trial of the Excel Add-In for CSV to get started:
Download NowLearn more:
👁 CSV/TSV Files IconThe CSV Excel Add-In is a powerful tool that allows you to connect with flat-file delimited data (CSV/TSV files) directly from Microsoft Excel.
Use Excel to search, aggregate, and read flat-file documents directly. Perfect for mass exports, Excel-based data analysis, and more!