Export to Excel - two lists into 1 Excel table

Hello SharePoint experts,
I have two lists with the exact same columns of data. The reason I have two lists is because they each represent a single year of data where the list contains 5,000+ items. We found we had
to "archive" old year items into a new list, otherwise we were not able to appropriately export to Excel (it wouldn't work) as well as make updates to the InfoPath from when the count was too high.
These lists are exported into Excel to leverage pivot tables and run metrics based on the data in the lists. I can bring both data connections into the same Excel file, but I am not sure if
there is a way to merge the lists so I can simply apply a filter to the pivot tables to select the appropriate year.
Any input is greatly appreciated.
Mark G.
MG

If you have both data connection files, I think you just need to make a join/merge. I think this may help:
http://office.microsoft.com/en-us/excel-help/combine-data-from-multiple-data-sources-HA103993145.aspx
Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

Similar Messages

  • Insert items from two different Multiple Select Lists into a single table

    I need help. I have a training tracking system that tracks the courses taken by employees.
    I have created two multiple select lists, one is SelectEmployees and the other is SelectCourses. I want to insert
    the selected item from those two multiple select lists into Training_Record table.
    Note, SelectEmployees" is from Employee table and SelectCourses is from Courses table. Those two table has no intersetion.
    Train_Record is the table that joins those two together.
    Please advice and your help is appreciate.

    Thank you for your help.
    I tried your code and changed the table/field name to my actual table/field name and the iitem name to actual item name.
    declare
    cursor c_Employees is
    select PERSONNEL_NEW.EMPLOYEEID from PERSONNEL_NEW where PERSONNEL_NEW.EMPLOYEEID in (:P15_SELECTEDEMP);
    cursor c_Courses is
    select COURSES.COURSE_ID from COURSES where COURSES.COURSE_ID in
    (:P15_SELECTEDCOUR);
    begin
    foreach :=r_employee in c_Employees loop
    foreach :=r_course in c_Courses loop
    insert
    into COPYOFTRAINREC ( EMPLOYEEID, COURSEID )
    values ( r_employee.EMPLOYEEID, r_course.COURSE_ID );
    end loop;
    end loop;
    end;
    I got error message as :
    ORA-06550: line 12, column 25: PLS-00103: Encountered the symbol "C_EMPLOYEES" when expecting one of the following: (
    Error
    OK

  • Problem in consolidating two list into a single list ! ! !

    hi guys,
    I have 3 list with each list containing many Object[] like,
    List 1 = [ [1,aaa,bb], [2,bbb,xxx], [3,aaa,yyy], ]
    List 2 = [ [2,bbb,xxx], [4,bbb,zzz]]
    List 3 = [ [1,aaa,bb], [3,aaa,yyy],[5,ccc,www]]
    Now i want to consolidate these list into a single list as below
    List consolidated_list = [ [1,aaa,bb], [2,bbb,xxx], [3,aaa,yyy], [4,bbb,zzz],[5,ccc,www]]
    I can do that by using nested looping statements. But i want to do that in a more optimized way.
    Is there collection set/map that avoids the duplication in its objects.
    How do that? Can anyone help in this issue??
    --Subbu                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi peter,
    You are exactly correct. you got exactly what i need.
    Now my doubt is there any readymade collection classes to acheive this without many iterations and looping statements.
    --subbu                                                                                                                                                                                                                                                                                                                                                                                                   

  • Collecting spool list into internal table.

    Hey guys,
    Could you pls help me in how to take the output in spool list and collec the list into one internal table?
    i guess using GET_PRINT_PARAMETER does that? how to collect the list from the spool list.
    ambichan.

    Hi ambi,
    e.g.:
    SUBMIT y123...
                    EXPORTING LIST TO MEMORY
                    AND RETURN.
    CALL FUNCTION 'LIST_FROM_MEMORY'
         TABLES
              listobject = liste
         EXCEPTIONS
              not_found  = 1
              OTHERS     = 2.
    CALL FUNCTION 'LIST_TO_ASCI'
         EXPORTING
              list_index         = -1
         TABLES
              listasci           = tab
              listobject         = liste
         EXCEPTIONS
              empty_list         = 1
              list_index_invalid = 2
              OTHERS             = 3.
    LOOP AT tab.
    append tab to tab_total.
    endloop.
    free tab.
    regards Andreas

  • Export Custom List into Excel through custom Ribbon

    Hi i have a requirement, in that i need to export custom list into EXCEL through custom Ribbon. For Example in my list, i have Col1, Col2, Col3. Col3 has multiple values (allow mutiple values) and when export this into excel all values in Col3 should
    come as new rows and rest of the column values should duplicate. please helpout from this requirement.
    List View
    Col1   Col2      Col3
    v1        v2    v31,v32,v33
    Excel View
    Col1  Col2  Col3
    v1      v2      v31
    v1      v2      v32
    v1      v2      v33
    Nihath

    Hello Nihath,
    As per your description, you have to read each and every items in list with column value then only you can generate excel. There is direct way to export datatable to excel but in your case you will also need to iterate Col3 value to create new row in excel.
    I would suggest to use CAML query to get all items then check Col3 value. If there are multiple value then add them as new datatable row and finally export full datatable to excel.
    Here is link for CAML:
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spquery.listitemcollectionposition.aspx
    Export datatable to excel:
    http://stackoverflow.com/questions/12533626/export-datatable-to-excel
    Finally add this feature in ribbon:
    http://ankurmadaan.blogspot.in/2012/10/custom-ribbon-action-for-specific-list.html
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How do i export my entire address book into excel.  I want to send the list to lady who writes a newsletter for me and she would like it in excel.  I know I did this last christmas, but cannot remember how i did it.  Please help.

    How do i export my entire address book into excel.  I want to send the list to lady who writes a newsletter for me and she would like it in excel.  I know I did this last christmas, but cannot remember how i did it.  Please help.

    export and import to csv
    or here are other options
    http://www.google.dk/search?source=ig&hl=da&rlz=1G1TSEH_ENDK367&q=ohm+law&oq=ohm +law&aq=0&aqi=g3&aql=&gs_sm=e&gs_upl=848060l852340l0l853488l7l7l0l1l1l0l216l774l 1.2.2l5l0#sclient=psy-ab&hl=da&rlz=1G1TSEH_ENDK367&source=hp&q=export%20contacts %20to%20excel%20outlook%202010&pbx=1&oq=export%20contacts%20to%20exc&aq=1L&aqi=g -L4&aql=&gs_sm=sc&gs_upl=1097767l1103601l0l1106743l22l11l0l10l10l0l288l2210l1.4. 6l21l0&bav=on.2,or.r_gc.r_pw.,cf.osb&fp=a68934164527e931&biw=1631&bih=731&pf=p&p dl=300

  • Adding "Filter Criteria" to the XSLT List View Web Part impact on "Export to Excel" functionality within Document Library

    Hi there,
    XSLT List View displaying all the list items within the Document Library. In order to implement the Search functionality within Document library out of box "Text Filter" web part is configured as explained below. The solution is similar to
    the one suggested at
    http://www.wonderlaura.com/Lists/Posts/Post.aspx?ID=77
    "Text Filter" Web Part added to the page.
    Filter Criteria (i.e., XSLT List View columns) added to the XSLT List View where the filter parameters take the input from the "Text Filter" Web Part .
      3. Both Web Parts (XSLT List View and the Text Filter) are connected.
    When the search criteria is entered into the "Text Filter" Web Part, it is passed to the relevant Columns of the XSLT List View and the documents (List Items) that match the search criteria are shown within XSLT List View.
    Search functionality working as expected.
    Query: Selecting the "Export to Excel" icon from the ribbon generates the excel spread sheet with no data except Column Titles from the Document library. In the investigation it is
    found that adding the 'Filter Criteria' on XSLT List View is causing this bug. When the Filter Criteria is removed, then "Export to Excel" functionality is working as expected.
    But it is mandatory to add "Filter Criteria" to implement the search functionality with in the document library.
    Help: Help/input appreciated on the work around to get the "Export to Excel" functionality work when the "Filter Criteria"
    exist on the XSLT List View.
    Regards,

    Once again thanks very much for your help Scott. very much appreciated.
    In the investigation it is found that removing the 'Filter Criteria' on XSLT List View makes the "Export to Excel" functionality work. But the 'Filter Criteria' is mandatory to get the 'Document Search' functionality.
    I think that due to technical limitations it should be concluded that 'only custom development can make all work, no code solutions using the SharePoint Designer can meet all the requirements.
    If you can think of any alternative solution that could help in resolving the current issue or fix the issue without any custom implementation please inform. Otherwise this issue would be marked as resolved with your suggested response.
    Regards,

  • How to convert alv list into excel file?

    Hi Experts,
            i have created one report for Due Date Analysis.
    Now My output is displaying in ALV list. But I need to convert the data which in alv list into Excel File. then only i have to send the Excel File to the Customer Thro Email.
         So i need the Function Module to Convert the Data into Excel File.
    Thanks,
    Neptune.M

    Hi,
      U can use function module gui_download.
      CALL FUNCTION 'GUI_DOWNLOAD'
         EXPORTING
        BIN_FILESIZE       =
          filename           = 'C:\Transportaionlane.XLS'
          filetype                       = 'DAT'
        WRITE_FIELD_SEPARATOR           = ' '
        HEADER                          = '00'
        TABLES
          ata_tab                       = t_trans_lane_dis[]
           OTHERS                          = 22
    if u want with header then pass the header.
    regards
    Ahasan

  • How do I get a list of albums by artist and export to Excel etc?

    How do I get a list of albums ONLY by artist and export to Excel etc? I do not want the songs as generally know the songs on the album.

    You can get it directly out of iTunes by the command Print > Album Listing > List of Albums.
    Also, if you are good at Excel, you can paste your iTunes library listing into Excel and use the Excel filtering and sorting capabilities to get whatever view you want.

  • VF05 report(Billing doc list) exporting to excel sheet

    Hi
    I would like to export the VF05 report( Billing doc list) into the predefined layout of Excel sheet. How can we do this.
    Can anyone of you explain me this. It is the business requirement and they do not want to go for SAP scripts or zprogram.
    IT IS URGENT. PLEASE HELP ON...

    List -> Save -> File -> Spreadsheet (from the output screen)
    Give the location where you want to save the file and the file name and press "Generate".
    BTW, Welcome to SDN.

  • How to export a dynamically generated datatable into excel sheet 2013?

    I have one data table and in that data table i am fetching data from sharepoint 2013 lists.
    When I export that data table into excel sheet, what ever data is static will be shown but the data which I fetch from lists are not coming.
    How should I get that data in my excel sheet from that data table?
    This is the code for Export to Excel:
    public void ExportToExcel(DataTable dt)
    if (dt.Rows.Count > 0)
    string filename = "WebTrafficReport.xls";
    System.IO.StringWriter tw = new System.IO.StringWriter();
    System.Web.UI.HtmlTextWriter hw = new System.Web.UI.HtmlTextWriter(tw);
    DataGrid dgGrid = new DataGrid();
    dgGrid.DataSource = dt;
    dgGrid.DataBind();
    //Get the HTML for the control.
    dgGrid.RenderControl(hw);
    //Write the HTML back to the browser.
    //Response.ContentType = application/vnd.ms-excel;
    Response.ContentType = "application/vnd.ms-excel";
    Response.AppendHeader("Content-Disposition", "attachment; filename=" + filename + "");
    this.EnableViewState = false;
    Response.Write(tw.ToString());
    Response.End();
    Thanks in Advance.

    ublic void ExportToExcel(DataTable dt)
    if (dt.Rows.Count > 0)
    string filename = "WebTrafficReport.xls";
    System.IO.StringWriter tw = new System.IO.StringWriter();
    System.Web.UI.HtmlTextWriter hw = new System.Web.UI.HtmlTextWriter(tw);
    DataGrid dgGrid = new DataGrid();
    dgGrid.DataSource = dt;
    dgGrid.DataBind();
    //Get the HTML for the control.
    dgGrid.RenderControl(hw);
    //Write the HTML back to the browser.
    //Response.ContentType = application/vnd.ms-excel;
    Response.ContentType = "application/vnd.ms-excel";
    Response.AppendHeader("Content-Disposition", "attachment; filename=" + filename + "");
    this.EnableViewState = false;
    HttpContext.Current.Response.Write(sw.ToString());
                        HttpContext.Current.Response.Flush();
                        HttpContext.Current.Response.End();
    }}try this should help

  • ALV List export to Excel when program is run in background

    Hello,
    I am running into an issue with a custom ALV report which contains an export to Excel option on the input screen. However, when I attempt to run the report in background due to high volume of records/expected performance constraints, the job fails to produce a spool when the "export to Excel" option is selected. When I deselect that option, the background job successfully generates a spool, which I can then export to Excel (albeit the formatting will not look the same).
    Is the above an accurate statement or does anyone know of a way where either;
    1) The background job can create and store the Excel output into a cached directory?
    2) The spool generated, when exported to Excel, can match the format of the foreground Excel output?
    Thanks in advancce.

    Check out the sample program of the provided link ..
    http://www.sap-img.com/abap/download-in-background-in-excel-format.htm

  • How can I export multiple PDF fillable forms into a spreadsheet (Excel) using VBA?

    Hi guys,
    I never used VBA with with Adobe Acrobat. I would like a tip to start doing that. What I would like to do know is:
    1 - I have multiple PDF Forms that are filled.
    2 - I want all the data from those forms to be exported to Excel via VBA code.
    3 - Adobe Acrobat already have an option to do that manually (Forms > Merge Data Files Into Spreadsheet) and it works perfectly.
    4 - I would like to access that feature using VBA, then generate a spreadsheet.
    Any tips? How can I start?
    Thanks!

    A good place to start is Karl Heinz Kremer's blog, where he has a few examples:
    http://khkonsulting.com/2010/09/reading-pdf-form-fields-with-vba/

  • Error when exporting to Excel for SharePoint 2010 List

    We have few users who are getting the following error message when they try to export to Excel from the SharePoint list:
    "An operation that uses the database driver could not be completed. If the driver is a Microsoft driver, make sure the driver file isn’t damaged, and if it is, reinstall the driver by reinstalling Microsoft Query. For other drivers, contact
    your database administrator or driver vendor.‘
    The export option works for me on my machine and also tested it out on other users' machines without issues. The list is currently holds 29763 items.
    1. Created a view that filter the list to show few items, and the user was able to export without issues.
    2. Followed the steps in the following Blog:
    http://www.sharepointserverrecovery.com/blog/troubleshooting-problems-when-exporting-sharepoint-list-data-to-excel-spreadsheet-and-fixing-database-corruption/ and the user was able to export the original list.
    3. My colleagues and I don't have any issues exporting to Excel. (Note: even my test account, that does not have any special permissions or members of any SharePoint group(s)).
    4. Some Blog/Forums suggest to increase Threshold limit in Central Admin, which we don't want to do, since the issue only affect certain users.
    Any idea on how to troubleshoot/resolve the issue?
    Thanks,
    Yassar

    Do they have to export all the information or is a subset of it ok? 
    Creating an index on the columns that your users interact with the most and then creating views that limit the returned results will be useful.  This will then allow an export.

  • Export to Excel is not working for List View Web Part after filtering using Query String parameters in SharePoint 2010

    Hi, 
    I am filtering SharePoint list view web part based on Query string parameter and I am doing Export to Excel by using following code.
    <a href="#" onclick="javascript:window.location='../_vti_bin/owssvr.dll?CS=109&Using=_layouts/query.iqy&List=0DC67399-BE11-48F3-ADFC-E911FB8B5845&View=54671412-3EFE-4281-835A-9EF747AE774E&CacheControl=1'"><img
    alt="Excel" src="/_layouts/images/icxlsx.gif" border="0"/>&nbsp;Export to Excel</a>
    Issue: Able to do Export to Excel when there are no filters applied on list view web part but if applied filters on web part and do export to excel , only header fields are displaying in the excel sheet.
    I don't know why owssvr.dll is behaving like that .
    Please share your ideas.
    Thanks in Advance.

    Hi,
    According to your post, my understanding is that you wanted to create hyperlink to export to excel.
    The URL to execute the export is as follows:
    {Site URL}/_vti_bin/owssvr.dll?CS=109&Using=_layouts/query.iqy&List={List GUID}&View={View GUID}&CacheControl=1
    After getting the GUID, you  need to “decode” the list GUID.
    Replace %7B with {
    Replace %2D with –
    Replace %7D with }
    More information:
    Create Link to Export Library Contents to Excel
    SharePoint - Create a link to export to Excel
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

Maybe you are looking for