Skip to main content
Trans Am

Todd Klindt's SharePoint Admin Blog

Go Search
Home
Blog
Netcast homepage
SharePoint Terminology Wiki
  

Todd Klindt's home page > Todd Klindt's SharePoint Admin Blog > Posts > Creating a SharePoint list from an Excel spreadsheet
Creating a SharePoint list from an Excel spreadsheet

Last week a friend of mine asked a fairly innocent question, "Can I import a spreadsheet into SharePoint?" My answer to almost all SharePoint questions is, "Of course you can, and it'll rock!" Of course this is no exception. I thought I'd write up a quick blog post to show some of the ways it rocks.

I started out with this spreadsheet:

Pretty simple. Of course he could have just uploaded this spreadsheet to a document library, but then anyone that wanted to add vales would need to have Excel installed to open it. Plus there would be the added complexity of check in and check out to deal with, which aren't necessary for this. Instead, we're going to import this spreadsheet into a list in SharePoint. To do that go to the home page of the site where you want to create the list and click Site Actions > Create like below:

 

Under Custom Lists choose "Import Spreadsheet."

You'll get have to enter a list name and choose the XLSX file you want to import. This will fire up Excel and you'll get to choose which parts of your spreadsheet you want to import. In this example I lassoed the relevant information:

Click okay and let SharePoint work its magic. SharePoint generates a list like this:

SharePoint took pretty good care of this, and even used the header row for the column names. Pretty cool. But it made some general assumptions about the data. It added everything as a single line of text as shown here:

This doesn't work well. Fortunately you have a lot of flexibility. Let's go in and change the birthdate field to a date field. Go into the list settings and change the type.

These settings look appropriate for the data in the column. When I hit okay I got this dialog box:

Being the adventurous sort, I hit OK. Here's what was waiting for me:

Of course there was not a big pink question mark, but the Birthdate was missing for Harry. How come? If you look back to my original spreadsheet you'll notice the value for Harry's date was 12/31/174. Since it's not a valid date, SharePoint kicked it to the curb. Even though we lost a value, it was understandable and I considered it a success. I decided to try the Rank column and see what SharePoint could do. It made sense to make it a choice value. I opened of the list settings and changed the Rank column to a choice type. Look what SharePoint did for me:

It went ahead and populated the existing values into the dropdown choices. All that for no extra cost. Sweet.

Hopefully this blog will help if you want to move some spreadsheets into SharePoint lists.

tk

Comments

Thanks

Was wondering how that worked.
at 12/2/2008 12:30 PM

share point

Many thanks! It worked perfectly on my blog
at 1/1/2009 2:22 AM

Can I add new records from Excelsheet in the previously created list using "Import SpreadSheet" under Custom List

Hi,
I have created one list using "Import SpreadSheet" under Custom List. At the time of list creation, I have 10 records in the ExcelSheet.
Now I added another 10 records in the Excel Sheet.
Can I import this updated sheet in the previously created List?
Please let me know if you have any thoughts on this.

Thanks in advance.

S
at 3/9/2009 6:57 AM

Yes you can

Hi S

copy the new rows from within Excel and open the old list in Sharepoint with Actions, Edit in datasheet, paste there the new rows, save the sheet...et voila!

Markus
at 3/25/2009 9:41 AM

Importing more complex spreadsheets

Many users I work with have complex spreadsheets - multiple worksheets, calculations, even color coding.  Are there best practices about moving this type of data to SharePoint via custom lists and maintaining links, calculations, etc? Thanks.
at 3/31/2009 9:52 AM

Can I change the linking column aftter the import

I have performed an import and only one of the columns is the edit/view item url - how can I change this link to either another column AND/OR add in another linking column?

Thanks
at 4/8/2009 8:59 PM

One Problem

What if "Import Spreadsheet is not available  from the Custom List Menu?
at 5/1/2009 11:23 AM

Excel header list not importing

I performed all the correct actions, however, when I select import of the spreasheet, the import feature creates column headings in the Excel Spreadsheet.  When it imports into SharePoint, I get Column 1,aolumn2,etc. as headers not the headers in Excel.  Why is this?  How can I correct it?  I formatted the 1st Excel row as Text and the other rows as General.

Thanks in advance for assistance.
at 6/3/2009 2:43 PM

Defining Excel Column Settings before importing to a SharePoint list

I successfully imported an Excel spreadsheet to SharePoint creating a custom list.  Somewhere in the import process, SharePoint defined the column settings as either mulitple or single lines of text. I am unable to edit those defined as "Multiple lines of text".  I need to change these to "Single lines of text", however, this isn't an option.  Is there a way to define the column settings in Excel (multiple or single lines of text) prior to importing the spreadsheet to SharePoint?  What criteria defines the column settings when using the "Import spreadsheet" function?


at 7/28/2009 5:47 PM

Importing Excel data into an existing custom list

Is it possible to import data into an existing custom SharePoint list??
at 8/4/2009 1:51 PM

using common list for my drop down in an InfoPath form

My common list has 2000+ items. When Used this list for my info path drop down field, it only exported the first page of the common list items but it did not include the rest. How can I export the succeeding pages so that it will appear in my drop down choices?
at 10/14/2009 10:41 AM

Creating Sharepoint list from uploaded EXCEL sheet

how do I make the uploaded excel sheet list default to display in Datasheet view - I don't see how to switch the default view on the list I just created from the excel.

Nor did create new list, begin from existing list work, didn't see the option to switch the view of list to "datasheet" (faster updating.

thanks, love you site/blog/books.
at 11/6/2009 10:28 AM

RE: Excel header list not importing

I had this same problem and I found the answer. I was importing a very large spreadsheet and I did not pay close enough attention to the names in the first row. I went back and renamed all of the empty cells (ex.  ?(1), ?(2), etc... ) and I split any merged cells back apart so there weren't any spanning multiple columns.

Hope that helps,
Profmuggs
at 12/14/2009 12:31 PM

RE: Excel header list not importing

Thanks for sharing your solution.

tk
Todd O. Klindt at 12/15/2009 8:25 PM

Re: Creating a SharePoint list from an Excel spreadsheet

THANK YOU! I've been looking for this solution.
at 1/14/2010 11:57 AM

Hyperlink becomes just text after import

I've got a problem with hyperlinks, being transformed into plain text after I imported the worksheet into Sharepoint.

Does anybody know how I can get the hyperlink in the list?
at 2/3/2010 7:52 AM

Validations not getting imported

When i import an excel sheet with validations into a sharepoint list, it doesn gets impoeted....it geives Validations cannot be importad or some error. Kindly help.

TIA
at 2/9/2010 11:04 PM

Error encountered : While selecting range

Error encountered when selecting the range for importing into SharePoint list   "Selected Range Cannot be converted to a tabel before publishing or the existing table is invalid"
at 2/9/2010 11:22 PM

Monthly import to same list

Can I make a monthly import to same list from an excel?
at 2/23/2010 1:19 AM

Standard Edition

Import spreadsheet , will it work with standard edition..?
at 3/30/2010 9:27 AM

Error encountering when selecting range

I'm getting the same error as above "Selected range cnanot be converted to a table before publishing or the existing table is invalid"

Please advise.
at 4/30/2010 4:05 PM

importing Excel data with numbers

One of the columns in my excel file contains a list of employee IDs, which i do not wish to covert them into number with commas in between numbers.  However, when the list gets uploaded into sharepoint, the numbers are automatically set to numbers with commas in between numbers.  any suggestion? 
at 5/10/2010 9:33 AM

Changing the type of information in the Column

Is there any way we can change the Column type to Person or Group  after importing the contents or is there any way we can predefine that before importing.
at 5/17/2010 9:42 AM

Change Type of information after importing the excel sheet

Hi ,

 Is there a way to Change Type of information for a field from single line of text to People or Groups.

Any idea, please let me know.

Thanks!
at 5/18/2010 9:31 AM

Additional columns

Ya
at 5/20/2010 7:01 AM

How can you update an existing calendar list from excel/word?

This is great for creating a new list but what if you have one existing and want to add to it via excel/sharepoint?
Thanks!

at 5/24/2010 9:14 AM

Synchronisation of Sharepoint page with Excel

Hello,

Suppose I have both excel sheet inside the sharepoint and a sharepoint page too for the same excel sheet. Is there any way for a synchronization between them.i.e if I update the excel sheet then the sharepoint page too should automatically get updated.
Please advice if there are ways for this

Thanks,
at 6/29/2010 3:18 PM

How do you export SharePoint List with hyperlinks included

Hi Todd,

Great site and podcasts. 

Do you know of a way to export sharepoint list with hyperlinks to a spreadsheet?  By default, hyperlinks are not included when exported to spreadsheet via ootb SharePoint 2007.

Do you know a way? 

Thanks, Rox
at 7/20/2010 7:55 PM

Export spreadsheets with hyperlink attached within a List

Not sure if my comment was sent as I was using Google Chrome.

Is it possible to export to spreadsheets with hyperlink attached?  The default export to SharePoint only exports text rather than hyperlinks (mainly View Properties screen). 

Can you please assist?

Thanks, Rox

at 7/20/2010 11:31 PM

Add Comment

Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights. More information on content approval.

Title


Body *


Today's date *

Please enter today's date so I know you are a real person
Attachments