How to copy Excel sheet data to SharePoint 2010 List?

Hi,
   I need to export excel data to SharePoint 2010 list. I have created 22 columns in list which are of following Column types:
Single line of text,
Multiple line of text,
Choice
Number,
Date,
Person or Group.
Now i need to export the excel data to SharePoint list.
When iam trying to copy data from excel to List , it is showing as "The selected cells are read only".
can someone guide on this to export spread sheet data to SharePoint list without importing Spreadsheet.
Thanks in advance.
Badri

I've updated the example of using PowerShell to include a Person field (user field) and a choice field.
The CSV file has the following columns:
TRIP_NO
VESSEL_NAME
FLAG
AGENT_NAME
CURRENT_LOCATION
RPT_DATE
EMPLOYEE
EMPLOYEE_TYPE
#Get the CSV file and connect to the SharePoint list
$vessellist = import-csv -Path C:\Temp\VesselInPortReport.csv
$l = (Get-Spweb "http://devmy101").GetList("http://devmy101/Lists/smarInPort")
#Get the lists EmployeeType field (choice)
$employeeType = $l.Fields["EmployeeType"] -as [Microsoft.SharePoint.SPFieldChoice]
#Loop through the items and add them to the list
$r = 1;
foreach($item in $vessellist)
$ni = $l.items.Add();
#Add the Title, using the rows VESSEL_NAME column
$ni["Title"] = $item.VESSEL_NAME;
#Add the "Date Recorded" field, using the csv rows "RPT_DATE" column
[DateTime]$rd = New-Object System.DateTime;
if([DateTime]::TryParse($item.RPT_DATE, [ref]$rd)){
$ni["Date Recorded"] = $rd;
#Add the csv rows "TRIP_NO" column to the new list items "Trip Id" field (SPFieldNumber)
[Int64]$tn = New-Object System.Int64;
if([Int64]::TryParse($item.TRIP_NO, [ref] $tn)){
$ni["Trip Id"] = $tn;
#Add some other text properties
$ni["Flag"] = $item.FLAG;
$ni["Agent Name"] = $item.AGENT_NAME;
$ni["Current Location"] = $item.CURRENT_LOCATION;
#Add user information
$ni["employee"] = $w.EnsureUser($item.EMPLOYEE); #In this case, the $item.EMPLOYEE value from the spreadsheet is a persons name. Eg. "Matthew Yarlett"
$employeeType.ParseAndSetValue($ni,$item.EMPLOYEE_TYPE); #In this case, the $item.EMPLOYEE_TYPE value from the spreadsheet is valid choice present in the EmployeeType list field. Eg. "Manager"
#Update the item
$ni.Update()
Write-Host ([String]::Format("Added record:{0}",$r));
$r++;
Regards, Matthew
MCPD | MCITP
My Blog
Please remember to click "Mark As Answer" if a post solves your problem or "Vote As Helpful" if it was useful.
I just added a webpart to the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
Upload and Crop User Profile Photos

Similar Messages

  • Append excel sheet data to sharepoint list

    HI,
    I have an excel sheet and i have publshed this list on sharepoint 2010.
    Now i want to append some more records to the same list on sharepoint.
    So is it possible in sharepoint?
    Please help to solve the issue.
    Thanks & Regards
    Rajni

    Hi,
    I think there is no other method to update an existing list with Excel. It is only possible to create a new list based on an Excel-Sheet.
    To save an Excel sheet to a list, click Site Actions->More options->Import Spreadsheet.
    Browse for an appropriate file to import. The file will be imported as a list.
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Use sumif() with Excel 2010 sheets stored on SharePoint 2010

    Hello everyone,
    I am experiencing an issue with two Excel sheets stored on SharePoint 2010 in a simple document library within a team site. One of the files contains the source data (data.xlsx) and the second file contains the formulas calculating different things (summary.xlsx),
    based on what is stored in data.xlsx. This basically works fine and we are able to do things like
    =SUM('http://sharepoint.demo.tld/Shared Documents/[data.xlsx]Sheet1'!$X$122:$X$123)
    and also complex things. That formula for example works fine even with only the summary.xlsx file opened. Means the reference to the data.xlsx file is working properly and I get the correct results. But as soon as the formula becomes more complex like
    =SUMIF('http://sharepoint.demo.tld/Shared Documents/[data.xlsx]Sheet1'!$L:$L;A2;'http://sharepoint.demo.tld/Shared Documents/[data.xlsx]Sheet1'!$X:$X)
    the formula only works fine when the source sheet (data.xlsx) is opened, too. I was expecting the summary.xlsx to store the last value in it and only recalculate the formulars when I force it to recalculate the formular. But as soon as I open summary.xlsx
    without data.xlsx being opened it displays #Value! - with and without recalculating the formulas. Seems as soon as the reference file is not opened this kind of formula gets broken. But I don't get it because SUM() does work fine even without the source file
    opened.
    Additionally, it becomes more strange. As soon as I open up the data.xlsx and enable editing the fields containing #Value! in summary.xlsx immediately represent the correct values.
    Does anyone know why this happens and whether there is a way to solve this? We will require this kind of formula for that kind of sheets.
    Thank you very much and kind regards,
    Chris

    Hi Chris,
    It is by design that the SUMIF function can only work when the source sheet is opened and the SUM function can work 
    without the opening the source sheet in Excel files.
    This issue will occur on all excel files no matter if they are stored in SharePoint or not, and it is not an issue in SharePoint.
    So if you want to make the SUMIF function to work, you need to keep the source sheet open.
    Here is a similar issue for your reference:
    http://www.mrexcel.com/forum/excel-questions/8335-error-sumif-formula-links-another-workbook.html
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • SharePoint 2010 list to SQL 2008 table

    I would like export the data from SharePoint 2010 list to SQL 2008 table.
    At work we don't have SQL integration Services.
    What is the best way to export the data without copying and paste into the table?
    Any help will be appreciated.
    simam

    Follow the article for step by step web part creation in SP 2010.
    http://www.codeproject.com/Articles/136857/Developing-Web-Parts-for-Sharepoint-2010
    http://msdn.microsoft.com/en-us/library/ms415817(v=office.14).aspx
    You use GetDataTable method to get the datatable from SPListItemCollection.
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitemcollection.getdatatable.aspx
    Amit

  • Read and write excel sheet data from uploded file in sharepoint site programmatically 2013

    hi team,
    I am working on sharepoint 2013.I want to read and write data in excel sheet (micrsoft excel) from stored file in shrepoint docoumnt library .please suggest me
    vijay

    Hi
    Vijay,
    check those links
    http://www.sharepointwithattitude.com/archives/61
    https://social.technet.microsoft.com/Forums/en-US/e760051b-a92f-473c-9ec9-0f0c36c99e40/read-and-write-excel-sheet-data-from-uploded-file-in-sharepoint-site-programmatically-2013?forum=sharepointdevelopment
    Kind Regards, John Naguib Technical Consultant/Architect MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation. Please remember to mark the reply as answer if it helps.

  • Upload excel sheet data through sqlloader into oracle tables

    hi everyone,
    i am working with excel sheet with following records
    8501      Jacob Marshall      15000      21/10/2009      Finance
    8502      Chris Campell      50000      13/06/2008      R&D
    8503      Simon Dough      50000      3/07/2008      Engineering
    8504      Mark Haggai      75000      9/3/2006      Product Management
    8505      Verica Beverley      45000      7/2/2008      HR
    and i saved it in emp_details.csv
    after that when i write following code to make control file
    load data
    infile 'C:\Documents and Settings\prashant_dabral\Desktop\a.txt'
    into table tmp
    field terminated by','optionally enclosed by" "
    (emp_no,emp_name,salary,doj,dept_name)
    after this pl\sqldev returning me error message that ORA-00900:invalid sql statement
    can anybody tell me how to resolve issue
    or
    another method to Upload excel sheet data through sqlloader into oracle tables

    A control file is a file located on the operating system, not some SQL or PL/SQL code you try and execute.
    Create the control file as a file and then use that to load your data with SQL*Loader from the command line.
    http://www.morganslibrary.org/reference/sqlloader.html
    Or better still, create it as an external table and then you don't need a seperate control file or need to use sql loader from the command line...
    http://www.morganslibrary.org/reference/externaltab.html

  • Uploading  Excel sheet  data into internal table

    Hi All,
    I want to upload Excel file data into internal table. My problem is that my excel file  having more than one sheets. I want to upload  the data of particula Excel sheet..
    Please suggest me how can I upload particulat Excel sheet data .
    Thanks and regards
    Praveen

    check this link
    Uploading multiple excel sheets
    You can check Satish's answer in the above link
    Re: uploading data from excel sheets through BDC's into sap system
    <b>Award points if found helpful</b>

  • Uploading an excel sheet data using Oracle APEX 3.2

    Hi All,
    Please help me out to upload excel sheet data using oracle APEX 3.2.
    Am following the steps mentioned in the below link, but even after that am getting an error saying no data found
    http://avdeo.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/
    Please help me to proceed further.
    Regards,
    Sakthi

    Hi Andy,
    Thank you very much for looking into my thread.
    Actually i followed everything that is been mentioned in "http://avdeo.com/2008/05/21/uploading-excel-sheet- using-oracle-application-express-apex/" and i got a successful result.
    But, with the above process I can only upload a .csv format excel and not a .xls format excel file.
    Thats where i got stucked and unable to find any clue on how to move further to achieve in uploading .xls file.
    It would be very great if you guide me through in this process.
    Shiva

  • How to genetare reports(ssrs) with form library's data in sharepoint 2010

    Hi,
    How to genetare reports (ssrs) with form library's data in sharepoint 2010.I am saving infopath(2010) xml form data in form library.I have 500 and more forms in the form library( more forms can come in future).How to generate reports from this xml data (i
    want to make it automate)? Reports should get updated automatically when any changes made to data and if new form entered in the library.
    Please suggest possible solutions.I can not go for code base solution.( somthing SSIS, BCS or web service ....etc or anything else will be fine)
    Thanks in advance.

    Hi,
    According to your post, my understanding is that you wanted to generate SSRS report with form library in SharePoint 2010.
     In order to use the data stored on the InfoPath form, you need to add the controls on the form to be columns in SharePoint(This is the OOTB way without code).
    You can add the control during the publish process:
    Then when you create the SSRS report using the form library as the data source, you can use the fields just as the fields created in SharePoint.
    There is a tool called InfoPath DB in codeplex, you can have a look at it.
    http://infopathdb.codeplex.com/
    More reference:
    http://sharepoint.stackexchange.com/questions/28825/how-to-query-a-form-library-in-sharepoint-2010
    http://sharepoint.stackexchange.com/questions/38492/reporting-against-a-form-library
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • Firefox hangs when opening excel sheet in microsoft sharepoint

    When opening a excel sheet in Microsoft sharepoint Firefox hangs / freezes. (not responding)
    Only solution is to select end task in task manager.
    This is with version 3.6.8 ( there is no problem with 3.6.4)
    == URL of affected sites ==
    http://

    The problem here is, you have setted the content type as excel sheet and you are writing some String content into the output stream. when excel tries to read the String content it will surely throw some error. Lot of excel APIs are available in the market to generate excel sheets.
    you can find one in the below URL.
    http://www.teamdev.com/downloads/jexcel/docs/JExcel-PGuide.html

  • How to create a recurring event in SharePoint 2010

    Hi there,
    I want to know how to create a recurring event that is 2 weeks long and start Monday. I want this event to recur every 4 weeks. I'm trying to create a schedule for two guys who work in the field.
    One guy works for 2 weeks in every 4 weeks starting on Monday.
    Thanks a million.
    Joe

    http://office.microsoft.com/en-in/sharepoint-server-help/sharepoint-calendars-i-make-the-most-of-your-team-calendar-RZ010255072.aspx?section=5
    You'll add items one at a time by clicking New Item on the
    New menu. Then you'll enter the item's details in a form. One other thing we should mention: It's easy to create recurring items, such as a weekly staff meeting. You do this by selecting the
    Make this a repeating event check box and then setting the item's recurrence pattern (for example, for a weekly lunch meeting you would set the pattern to weekly).
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/e3b81c14-3217-4450-89ea-627620c126c2/recurring-events-in-calendar-view-of-sharepoint-2010-lists
    The Recurrence Data field is unique to the Event Content Type. I don't see any way to add it to an existing list. You would need to recreate your list using Calendar list as the base if you were to use this approach.
    http://blogs.technet.com/b/sharepointdevelopersupport/archive/2013/04/11/how-to-make-the-sharepoint-calendar-events-recurring-by-default.aspx

  • How to populate a sharepoint 2010 list from the active directory. How to populate a sharepoint 2010 list with all sharepoint user profiles

    How to populate a sharepoint 2010 from the active directory.
    I want a list of all the computers in the active directory,
    another one with all users.
    I want also to populate a sharepoint 2010 list from the sharepoint user profiles.
    Thanks
    sz

    While
    the contacts list is usually filled out for contacts that are outside the company, there are times when you would use a contacts list to store internal and external resources.  Wouldn’t it be nice if you didn’t have to re-type your internal contacts’
    information that are already in the system?  Now you can with a little InfoPath customization on the contacts list. 
    Here’s our plan:
    Create the contacts list, and open in InfoPath
    Create a data connection to the User Profile web service
    Customize the form adding some text, a people picker and a button
    Create InfoPath rules that will populate the contact fields from the user fields in the User Profile store
    Let’s get going!  Before we begin, make sure you have InfoPath 2010 installed locally on your computer.  I also want to give credit Laura
    Rogers and Darvish Shadravan’s book Using
    Microsoft InfoPath 2010 with Microsoft SharePoint 2010 Step by Step.  I know it looks like a lot of steps, but it’s easy once you get the hang of it.
    So obviously we need a contacts list.  If you don’t already have one, go to the SharePoint site where it will live, and create a contacts list.
    From the list, click the List tab on the ribbon, then click Customize form:
    So now we have our form open in InfoPath 2010.  Let’s add our elements to the form. 
    Above all the fields, let’s add some text instructing users what to do with the the field we’re about to add (.e.g To enter an existing user’s information, choose the user below).
    Insert a people picker control by clicking the Person/Group Picker control in the Controls section of the ribbon.  This will add a column to the contacts list called group.
    Below the people picker, insert a button control from the same section of the ribbon as above.  With the button still highlighted, click the Control Tools|Properties tab on the ribbon. 
    Then in the Label box, change the text to something more appropriate to our task (e.g. Click here to load user data!).
    You can drag the button control a little larger to account for the text.
    We should end up with something like this:
    Before we can populate the fields with user data, we need to create a connection to the User Profile Service.
    Add a data connection to the User Profile Service
    Click the Data tab on the ribbon, and click the option From Web Service, and From SOAP Web Service.
    For the location, enter the URL of your SharePoint site in the following format – http://<site url>/_vti_bin/UserProfileService.asmx?WSDL.  Click Next.
    Note - for the URL, it can be any SharePoint site URL, not just to the site where your list is.
    For the operation, choose GetUserProfileByName.  Click Next.
    Click Next on the next two screens.
    On the final screen, uncheck the box for “Automatically retrieve data when form is opened”. This is because we are going to retrieve the data when the button is clicked, also for performance reasons.
    Now we need to wire up the actions on our button to populate the fields with the information for the user in the people picker control.
    Tell the form to read the user from the people picker control
    Click the Home tab on the ribbon.
    Click the button control we created, and under the Rules section of the ribbon, click Manage Rules. Notice the pane appear on the far right.
    In the Rules pane, click New –> Action. Change the name to something like “Query and load user data”.
    Leave the condition to default (none – rule runs when button is clicked).
    Click the Add button next to “Run these actions:”, and choose “Set a field’s value”.
    For Field, click the button on the right to load the select a field dialog.  Click the Show advanced view on the bottom.  At the top, click the drop down and choose the GetUserProfileByName
    (Secondary) option.  Expand myFields and queryFields to the last option and highlightAccountName.  Click ok. 
    For Value, click the formula icon. On the formula screen, click the Insert Field or Group button. Again click the show advanced view link, but this time leave the data
    connection as Main. Expand dataFields, then mySharePointListItem_RW.  At the bottom you should see a folder called group (the people picker control we just added to the form).  Expand this, then pc:Person,
    and highlightAccountId.  Click Ok twice to get back to the Rules pane.
    If we didn’t do this and just queried the user profile service, it would load the data of the currently logged in user.  So we need to tell the form what user to load the data for.  We take the AccountID field from the people
    picker control and inject into the AccountName query field of the User Profile Service data connection. 
    Load the user profile service information for the chosen user
    Click the Add button next to “Run these actions:”, and choose Query for data.
    In the popup, for Data connection, click the one we created earlier – GetUserProfileByName and clickOk.
    We’re closing in on our goal.  Let’s see our progress.  We should see something like this:
    Now that we have the user’s data read into the form, we can populate the fields in the contact form.  The number of steps to complete will depend on how many fields you want to populate.  We need to add an action step for
    each field.  I’ll show you one example and then you will just repeat the steps for the other fields.  Let’s update the Job Title field.
    Populate the contact form fields with existing user’s data
    Click the Add button next to “Run these actions:”, and choose “Set a field’s value”.
    For Field, click the button on the right to load the select a field dialog.  Highlight the field Job Title.
    For Value, click the formula icon. On the formula screen, click the Insert Field or Group button.  Click the Show advanced view on the bottom. At the top, click the
    drop down and choose theGetUserProfileByName (Secondary) option.  Expand the fields all the way down until you see the Value field.  Highlight it but don’t click ok, but click the Filter
    Data button, then Add. 
    For the first dropdown that says Value, choose Select a field or group.   The value field will be highlighted, but click the field Name field
    under PropertyData.  Click Ok. 
    In the blank field after “is equal to”, click in the box and choose Type text.  Then type the text Title. 
    Click ok until you get back to the Manage Rules pane.  The last previous screen will look like this.
    We’re going to update common fields that are in the user’s profile, and likely from Active Directory.  You can update fields like first and last name, company, mobile and work phone number, etc.  For the other fields, the
    steps are the same except the Field you choose to update from the form, and the very last step where you enter the text will change.  Here’s what the rules look like when we’re done:
    We’re all done, good work!  You can preview the form and try it now.  Click Ctrl+Shift+B to preview the form.  Once you’re satisfied, you can publish the form back to the library.  Click File –> Quick
    Publish.  Once it’s done, you will get confirmation:
    Now open your form in SharePoint.  From the contact list, click Add new item.  Type in a name, and click the button and watch the magic happen!

  • How to design SSRS report using SharePoint 2010 List Version History

    Hello,
    I am using  Sharepoint 2010 list, i need to design SSRS report using Sharepoint List Version History. Could please let me know how to design.
    Thank you.
    Kind Regards

    You could do that with SQL Server Reporting Services, Please follow the instructions from the link below:
    http://www.mssqltips.com/sqlservertip/2068/using-a-sharepoint-list-as-a-data-source-in-sql-server-reporting-services-2008-r2/
    Hope that would work fro you.
    Please Mark as Answer, if the post works for you.
    Cheers,
    Amar Deep Singh

  • SharePoint 2010 list view - How to filter on a multiline text box field - the view filter does not allow me to select it.

    Hi there,
    Does someone know in SharePoint 2010 list view - How to filter on a multiline text box field - the view filter does not allow me to select it.
    Thanks,

    Hi,
    Per my knowledge,
    it is by design that the data type multiple lines of text can only use “contains” and “begins with” operators.
    You can also filter the list view using SharePoint Designer,
    Open your list AllItem.aspx page in SPD ->click “Filter” > in “Field Name” select your multipe line of text field, in “Comparison” will displayed four choices.
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Create an InfoPath Form to Auto Populate Data in SharePoint 2010

    In Anne Stenberg's Blog from 2 Nov 2011 3:00 PM "How to Create an InfoPath Form to Auto Populate Data in SharePoint 2010" she artfully steps through how to create an InfoPath Form to Auto Populate Data. It works but... Jason, another user, 
    wrote whenever the form is opened again either to view or edit, it displays the current users information instead of the value of the person who completed the form in the first place.
    Anne's response was "Hi Jason - I had forgotten I had that problem, too. Change the Form Load rule's condition to
    DisplayName is blank and that should work."
    My problem is I can't find anything other than AccountName in "Select a Field or Group" [GetUserProfileByName (Secondary)] to use in the Condition statement that will correct the problem.
    Any help will be very appreciated.
    Thanks,
    Joe

    Hi Joe,
    I recommend to add one more condition in Form Load to make the form not be populated with current user’s information (You can change Title to another column which should not be blank when users create a new item).
    Best regards,
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for

  • Web Service receives no data from Stored Procedure call.

    Issue: When calling a Stored Procedure from a Web Service no data is returned. Lead up: I can call the SP 100 times a day for 3-4 days then for some reason the Web Service no longer get the data from SQL. I have ran a trace and I can see the SP runni

  • Initial Load of DNL_CUST_BASIS2

    I am working through the MySAP CRM System Configuration Guide - Replicating Customizing Ojects In CRM I have replicated 28 objects without problems, the only object I am struggling with is DNL_CUST_BASIS2 - the object loads no problem, viewing the in

  • The bottom part of my iphone4 screen cannot tap.. restored 2 times with latest firmware and yet still the same..is it possible to fix this?how?

    The bottom part of my iphone4 screen cannot tap.. I restored it 2 times with the latest firmware and yet still the same..is it possible to fix this?how? please guys help me =(

  • How to get the class name

    when a class(A) call another class(B),how to get B's classname. e.g. class A{ public void test(){ B b = new B(); how to use a program find Class A call Class B or more ? Class C{ public static void main(String[] args){ A a = new A(); s = //how to get

  • Trouble exporting to Windows Media

    Hi -- I'm hoping someone can help me with this problem. I have two .mov files that I need to export to .wmv. The exports complete successfully, but the resulting .wmv files are cut off. One cuts off at 29 seconds even though the .mov clip is 49 secon