Forum Discussion
Updating SharePoint List from Excel
Sylvie_in_France I've been searching for something like however, I have encountered a syntax error when adding the formula in the excel sheet. Any chance you have a video of this?
Also just to clarify, update the SharePoint List will be done via the Excel Button Sheet?
Thank you in advance for any help!
Hi Ryuojiin,
Could you copy paste the formula and the error message so that I can help you?
To update the SharePoint list from Excel, you have to click on the "Edit" hyperlink on any row/item to modify. This hyperlink open the "edit item" page on SharePoint. Modify the item and Save it. Go back to Excel and refresh the table. Your data is updated in Excel.
You can of course modify serval items one by one, using their respective "Edit" hyperlink, and update the Excel file from times to times.
No video yet, sorry!
Keep me updated 🙂
- SusanSRGJun 04, 2023Copper ContributorThis article too seems to do the opposite. It allows for SharePoint list data to come into an Excel spreadsheet. We want our Excel spreadsheet to update our SharePoint list 😞
- SusanSRGJun 04, 2023Copper ContributorThis appears to export the SharePoint list items to the Excel table. That is not what we want. We want to export our Excel table to a SharePoint list and then update SharePoint list from the Excel table whenever the Excel table is updated.
- Sylvie_in_FranceAug 04, 2021Brass ContributorHi Laura,
Updat
inge SharePoint from Excel is possible but more complicated. You have to use VBA and ado.net.
Here is an article I used a few years ago to do that : http://depressedpress.com/2014/04/05/accessing-sharepoint-lists-with-visual-basic-for-applications/ - LauraB1858Aug 04, 2021Copper Contributor
Thanks very much for this. Adding the edit link is really helpful, so I learned a new trick 🙂 I was trying to do several items at a time in excel because it is easier to manipulate data than in the SP list, and then have those changes synch with the SP. But if I have to click on each edit link one by one it does not help me much with the "mass updates". But thanks again for sharing your tip, it does work beautifully when we need to update a few records. Less scrolling than when making edits in SP directly.
- Sylvie_in_FranceAug 02, 2021Brass Contributor
Hi Laura,
When you create a connection from SharePoint to Excel, it is a one way link, from SharePoint to Excel. By default the synchronisation is done on demand, when you do "Refresh" the table on Excel side (you could change the settings on Excel side to deactivate or force the synchro when opening the Excel file, automate it on a regular basis, integrate it or not in the "Refresh all", etc.).
Each "Refresh" reloads all the data from SharePoint to Excel. Any new item is added, anys items modified override data previously loaded and any deleted item disappears from Excel. Any modification made directly in Excel is overrided.
Adding the hyperlinks "Edit" on Excel side as I explained allows you to open each item on Edit mode in SharePoint. There is one "Edit" button for each row in the Excel table, each row corresponding to a unique item in SharePoint. When you click "Edit" for a row, the Edit form opens in a browser and you can make changes on the item. Once saved (in SharePoint), go back to Excel and Refresh the table to load the modification. Of course, if there are lots of items in the SharePoint list and the refresh process is quite long, there is no need to refresh the Excel table immediately. You can make changes on several items and refresh the Excel file from times to times, when needed.
Hope that helps!
- LauraB1858Jul 29, 2021Copper Contributor
Hi Sylvie, if I were to follow these steps, can I ensure that my excel would not be overriding any NEW items that are loaded in the SharePoint list and did not make it to my excel because of timing? I understand that my edits in excel will affect the items I am working on, but will new items that were not in SP at the time I exported the excel be overridden? The SharePoint is a live site with lots of users, so unless I shut down the site while I make the edits in excel there would be new traffic coming in and I want to make sure I don't delete them when I synch my excel back... Thanks!
- Sylvie_in_FranceMay 07, 2021Brass ContributorThe closing square braket is missing: [@ID]
If you're not used to working with data tables and structured references, you should watch a video about it, for example https://youtu.be/C6f3_gCNz-U.
I don't know the answer of the other question.
Best - RyuojiinMay 07, 2021Copper Contributor
Sylvie_in_France Here's my formula -HYPERLINK(urlEdit&[@ID,"Edit") I put on the cell and I do have the 2 of the urls and named them as you told like urlNew and urlEdit.
I get the error:
The syntax if this name isn't correct.
Verify that the name:
- Starts with a letter or underscore (_)
- Doesn't include a space or character that isn't allowed
- Doesn't conflict with an existing name in the workbook.
Also another question, one of my fields in the sharepoint gets info from a distribution list, will doing this affect updating the list?