15 Jun 2010
Import and export data between Excel 2010 and SharePoint 2010
SharePoint 2010 offers functionality to export data to Excel 2010 while a link is maintained to the original data. This will allow you to use data from SharePoint in such a matter that suites your business. Whenever the data changes in SharePoint 2010 you are able to refresh that data in Excel. It is also possible to import data from Excel into SharePoint 2010 very easily. It allows you to import business data into a custom list and use it in your business processes defined in SharePoint 2010. This could involve BI related processes or just other lists and views linked to the custom list.
In the following examples i will show you how to export data to and import data from Excel into SharePoint 2010. We start with exporting data to Excel. When you browse to a list in SharePoint 2010 and choose from the ribbon “List” under “List Tools” you will notice an option called “Export to Excel”.

By clicking on the option in the ribbon, it tries to download an iqy file. This file contains the information needed for Excel to get the data from. Click “Open” to open de lin into Excel.

The Excel application opens the link and shows the data from SharePoint in a Workbook sheet. Currently the data is linked which means that whenever data in SharePoint is changed the data can be refreshed in Excel again. This is only possible when the link is still there. As soon as “Unlink” option is clicked the link is gone and you need to do an export again. As long as the link is there you will see a square around the data which is linked to SharePoint.
Note: Data changed in Excel is NOT updated in the SharePoint list.

Because you now have the data in Excel you are able to use all the Excel functionality like generating nice graphs based on the data.

What if the the data is changed in SharePoint? For example we change the percentage of “Taak 4″ in SharePoint. After the percentage is changed to 90% the “Save” button is clicked.

To reflect the change in Excel (while we are still linked) we use the “Refresh” menu command in the “Table Tools” ribbon.

This will refresh the data and the depending graphs.

Lets say we want to import data from Excel into SharePoint 2010. We have the following Excel containing usage data of different browsers over the months.

Go into SharePoint 2010 and select the option “More options…” under “Site actions”.

This will open the create dialog of SharePoint 2010 which normally allows you to create content like sites, pages and lists. Look for something called “Import spreadsheet” and press the “Create” button.

“Import spreadsheet” will create a custom list from an Excel data file. Give the custom list a name and use the browse functionality to select the earlier mentioned xlsx file. Click on the “Import” button to start the import.

This will open Excel and let you select the range of cells to import into the custom list of SharePoint 2010. The first row in the Excel sheet will define the column names.

When the “Import” button is clicked the Excel sheet is closed and the new custom list is opened in SharePoint 2010. As you can see the columns are based on the first row of the selected data. The data is not linked in any way back to Excel. So you will need to export it again to get linked data. The custom list is standard SharePoint and will allow you to do anything with this list what would be possible in SharePoint 2010.





Hi,
I tried importing the excel Spreadsheet CountryList into my application. I want item to be linked to name of the country. I tried giving the column name in excel sheet as ‘Title’. But the Sharepoint keeps importing it with default Column name ‘Column1′ and keeps title column as link but is blank.
Rupesh
December 2nd, 2010 at 8:30 ampermalink
This information heled me to solve may problem. My problrm was how to move some lists from SharePoint 2003 to 2010 and this is the way I will do a migration.
There is one thing I will add to your post. What I liked with this procedure is the fact, that the import function automatically finds the right data type for columns (text, number). Only with the text columns it alway selects “more lines of text”.
Andrej
December 9th, 2010 at 12:20 pmpermalink
[...] Import and export data between Excel 2010 and SharePoint 2010 [...]
How to import data into SharePoint 2010 List « amavs
December 9th, 2010 at 12:37 pmpermalink
Needed this..thanx a lot
AmitI
December 29th, 2010 at 4:44 pmpermalink