Answered by:
Read from Multiple excel sheet & insert in to list

Question
-
Hi,
I have multiple excel sheets which is located in document library, all those excel sheets are formatted identically. need excel values pulled from all excel sheets & inserted in to sharepoint list.
Currently im using Nintex, is thr any other way to achieve
Thanks
- Edited by vickychinna Tuesday, November 11, 2014 9:00 PM
Tuesday, November 11, 2014 8:53 PM
Answers
-
The considerable way I would suggest is to use code to read the excel file row by row, and insert them into list.
you can use event receiver ItemAdded/ItemUpdated method to trigger the file added/updated event, then read the content of the file, do the insert action.
http://www.codeproject.com/Tips/813187/Csharp-Read-and-Write-Excel-xls-and-xlsx-Files-Con
Qiao Wei <br/> My blog:<a href="http://blog.goobol.com">http://blog.goobol.com</a>
- Proposed as answer by John NaguibMVP Wednesday, November 12, 2014 8:10 AM
- Marked as answer by Dennis Guo Friday, November 21, 2014 8:54 AM
Wednesday, November 12, 2014 1:45 AM -
Hi,
According to your description, you might want to extract values from Excel files and insert into SharePoint List.
As there is no such OOTB feature can meet your requirement, I would suggest you use custom code with Excel Web Service.
Excel Web Service will enable us access data of the Excel files which store in SharePoint Libraries:
http://msdn.microsoft.com/en-us/library/office/ff640648(v=office.14).aspx
http://msdn.microsoft.com/en-us/library/office/ms572330(v=office.14).aspx
To insert the retrieved data from Excel files into SharePoint List, SharePoint Object Model would be a good choice:
Add, Update and Delete List Items Programmatically in SharePoint
More information about SharePoint Object Model:
http://msdn.microsoft.com/en-us/library/ms473633.ASPX
Best regards,
Patrick
Patrick Liang
TechNet Community Support- Proposed as answer by John NaguibMVP Wednesday, November 12, 2014 8:10 AM
- Marked as answer by Dennis Guo Friday, November 21, 2014 8:54 AM
Wednesday, November 12, 2014 7:48 AM
All replies
-
The considerable way I would suggest is to use code to read the excel file row by row, and insert them into list.
you can use event receiver ItemAdded/ItemUpdated method to trigger the file added/updated event, then read the content of the file, do the insert action.
http://www.codeproject.com/Tips/813187/Csharp-Read-and-Write-Excel-xls-and-xlsx-Files-Con
Qiao Wei <br/> My blog:<a href="http://blog.goobol.com">http://blog.goobol.com</a>
- Proposed as answer by John NaguibMVP Wednesday, November 12, 2014 8:10 AM
- Marked as answer by Dennis Guo Friday, November 21, 2014 8:54 AM
Wednesday, November 12, 2014 1:45 AM -
Hi,
According to your description, you might want to extract values from Excel files and insert into SharePoint List.
As there is no such OOTB feature can meet your requirement, I would suggest you use custom code with Excel Web Service.
Excel Web Service will enable us access data of the Excel files which store in SharePoint Libraries:
http://msdn.microsoft.com/en-us/library/office/ff640648(v=office.14).aspx
http://msdn.microsoft.com/en-us/library/office/ms572330(v=office.14).aspx
To insert the retrieved data from Excel files into SharePoint List, SharePoint Object Model would be a good choice:
Add, Update and Delete List Items Programmatically in SharePoint
More information about SharePoint Object Model:
http://msdn.microsoft.com/en-us/library/ms473633.ASPX
Best regards,
Patrick
Patrick Liang
TechNet Community Support- Proposed as answer by John NaguibMVP Wednesday, November 12, 2014 8:10 AM
- Marked as answer by Dennis Guo Friday, November 21, 2014 8:54 AM
Wednesday, November 12, 2014 7:48 AM