We are proud to share our inclusion in the 2024 Gartner Magic Quadrant for Data Integration Tools. We believe this recognition reflects the differentiated business outcomes CData delivers to our customers.
Get the Report →How to update SharePoint from Excel
This article explains how to transfer data from Excel to SharePoint using the Excel Add-In for SharePoint.
The CData Excel Add-In for SharePoint enables you to edit and save SharePoint data directly from Excel. This article explains how to transfer data from Excel to SharePoint. This technique is useful if you want to work on SharePoint data in Excel and update changes, or if you have a whole spreadsheet you want to import into SharePoint. In this example, you will use the MyCustomList table; however, the same process will work for any table that can be retrieved by the CData Excel Add-In.
About SharePoint Data Integration
Accessing and integrating live data from SharePoint has never been easier with CData. Customers rely on CData connectivity to:
- Access data from a wide range of SharePoint versions, including Windows SharePoint Services 3.0, Microsoft Office SharePoint Server 2007 and above, and SharePoint Online.
- Access all of SharePoint thanks to support for Hidden and Lookup columns.
- Recursively scan folders to create a relational model of all SharePoint data.
- Use SQL stored procedures to upload and download documents and attachments.
Most customers rely on CData solutions to integrate SharePoint data into their database or data warehouse, while others integrate their SharePoint data with preferred data tools, like Power BI, Tableau, or Excel.
For more information on how customers are solving problems with CData's SharePoint solutions, refer to our blog: Drivers in Focus: Collaboration Tools.
Getting Started
Establish a Connection
If you have not already done so, create a new SharePoint connection by clicking From SharePoint on the ribbon.
Set the URL property to the base SharePoint site or to a sub-site. This allows you to query any lists and other SharePoint entities defined for the site or sub-site.
The User and Password properties, under the Authentication section, must be set to valid SharePoint user credentials when using SharePoint On-Premise.
If you are connecting to SharePoint Online, set the SharePointEdition to SHAREPOINTONLINE along with the User and Password connection string properties. For more details on connecting to SharePoint Online, see the "Getting Started" chapter of the help documentation
Retrieve Data from SharePoint
To insert data into SharePoint, you will first need to retrieve data from the SharePoint table you want to add to. This links the Excel spreadsheet to the SharePoint table selected: After you retrieve data, any changes you make to the data are highlighted in red.
- Click the From SharePoint button on the CData ribbon. The Data Selection wizard is displayed.
- In the Table or View menu, select the MyCustomList table.
- In the Maximum Rows menu, select the number of rows you want to retrieve. If you want to insert rows, you need to retrieve only one row. The Query box will then display the SQL query that corresponds to your request.
- In the Sheet Name box, enter the name for the sheet that will be populated. By default the add-in will create a new sheet with the name of the table.
Insert Rows to SharePoint
After retrieving data, you can add data from an existing spreadsheet in Excel.
- In a cell after the last row, enter a formula referencing the corresponding cell from the other spreadsheet; for example, =MyMyCustomListSheetInExcel!A1.
- After using a formula to reference the cells you want to add to SharePoint, select the cells that you are inserting data into and drag the formula down as far as needed. The referenced values you want to add will be displayed on the MyCustomList sheet.
- Highlight the rows you want to insert and click the Update Rows button.
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.