Reading multiple excel workbooks

Hi all,
LabView noobie here.  I want to apologize in advance if I have posted this in the wrong spot or if I have not properly searched the forum for existing threads on this issue.  My initial search returned tips with excel but nothing I found immediately useful. 
I am an engineer who uses labview to run life cycle testing on our products.  I did not create the current program we are using, I just inhereted it when the guy who did got let go
We currently measure: time in one column, then amps, volts, and temp in the following columns for each cycle (up or down) and save the runs as seperate excel files.  We test our products anywere from 200 to 10000 cycles and record every 10 and 100 cycles (runs) respectively.  On average we record over 1000 rows of data for each of the 4 columns for one run.  Basically, we record approximately 4000 bits of raw data (in 4000 cells) in each seperate spreadsheet and have upto 500 spreadsheets for one complete test. 
Currently, I take a sample of X different spreadsheets and copy/paste the raw data measured by labview into an existing excel template with X different sheets that has been created to perform the calcualtions I require. 
What I would like to do is make a VI that can open X different spreadsheets, chosen at my discression, read/copy/paste them into the existing template and save that template with a unique file name based off of some constants that can be entered by the user.  For example, If I want to choose the following "runs" to analyze: 1000, 2000, 3000, 4000, and 5000 I would either be prompted to choose those files specifically or (more preferably) I could just type in those numbers into the VI and it would go to those runs and open/copy/paste them into the template.  Ultimately, I am trying to make a button on the front panel that when you press it, it prompts the user for either the files or "runs" that you want to compare and saves them to a workbook that can be viewed as a report. 
Any and all ideas on getting started would be appreciated. 

I would like to read/copy from multiple excel files and paste them into a single template with the same amount of sheets as there are files I am reading from.  So if I am reading from 10 files I would have 10 sheets in the template so that all of the data from each file can be pasted onto its corresponding sheet in the template.
I have some questions that correspond to the steps you listed (1-5):
1.  on the "New Report" VI can the path I provide just be the folder where all of these raw data files are stored and can I make it prompt me for which specific files to choose (or how do I tell it which ones to pull); or am I providing a path to the template? 
2.  Can the "Excel Easy Table" VI dump the seperate files containing my raw data in the same location but on different sheets of my template?  Also, where is this VI located.
3.  I do not want it to generate a report for every file that we save.  I want to take a sample size of all the runs for a test and compare them to each other to analyze the current draw and time, etc to check for overall performance and degredation.  So it will be one report based on let's say 10 of the 500 files for each test.  If I only wanted it to read from the cycles I stated earlier (1000,2000,3000,4000,5000) how could a loop handle picking those specific runs opposed to just going through all of them?
4.  It would be fine if it saved it after each time data is dumped but I would want 1 file name for all of the sample data that is being saved/dumped on the various sheets of the template (report).
5.  When you say "save and dispose to the original spreadsheet" I think you are thinking that I want to just save one file of data on the template, save/close it ,and open a fresh template in order to repeat the process with a different raw data file.  What I would like to do is open a raw data file, dump that data into sheet 1 of the template, open another data file, dump that data into sheet 2 of the template, etc until I have 10 sheets worth of data on my template.  Afterwards the template can be saved as one single report that can be viewed to determine if a part passes life cycle testing.
I think we are more or less on the same page but you weren't sure if I was using multiple templates and I think you wrote your response under the impression that I was.  I am using one template that needs to receive data from more than one file.  I hope this helps clarify the issue a little more.

Similar Messages

  • Read multiple excel sheets using dataset...

    Hello Experts,
    I've searched the forums and I cannot find any suitable threads for regarding my question. Anyway, I wanto to read and .XLS file residing in the application server using the DATASET commands.However, I am having a shortdump saying "An exception with the type CX_SY_CONVERSION_CODEPAGE".

    Continue.......
    IF iref_error->has_failed = 'X'.
        CALL METHOD iref_error->raise_message
          EXPORTING
            type = 'I'.
        LEAVE LIST-PROCESSING.
      ENDIF.
      CALL METHOD iref_document->release_document
    *  EXPORTING
    *    no_flush = ' '
         IMPORTING
           error    = iref_error
    *    retcode  =
      IF iref_error->has_failed = 'X'.
        CALL METHOD iref_error->raise_message
          EXPORTING
            type = 'I'.
        LEAVE LIST-PROCESSING.
      ENDIF.
    *&      Form  SUB_FILE_F4
    *       F4 help for file path
    FORM sub_file_f4 .
      DATA:
      l_desktop       TYPE string,
      l_i_files       TYPE filetable,
      l_wa_files      TYPE file_table,
      l_rcode         TYPE int4.
    * Finding desktop
      CALL METHOD cl_gui_frontend_services=>get_desktop_directory
        CHANGING
          desktop_directory    = l_desktop
        EXCEPTIONS
          cntl_error           = 1
          error_no_gui         = 2
          not_supported_by_gui = 3
          OTHERS               = 4.
      IF sy-subrc <> 0.
        MESSAGE e001(00) WITH
            'Desktop not found'.
      ENDIF.
    * Update View
      CALL METHOD cl_gui_cfw=>update_view
        EXCEPTIONS
          cntl_system_error = 1
          cntl_error        = 2
          OTHERS            = 3.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
         EXPORTING
           window_title            = 'Select Excel file'
           default_extension       = '.xls'
    *      default_filename        =
           file_filter             = '.xls'
    *      with_encoding           =
           initial_directory       = l_desktop
    *      multiselection          =
        CHANGING
          file_table              = l_i_files
          rc                      = l_rcode
    *     user_action             =
    *     file_encoding           =
        EXCEPTIONS
          file_open_dialog_failed = 1
          cntl_error              = 2
          error_no_gui            = 3
          not_supported_by_gui    = 4
          OTHERS                  = 5
      IF sy-subrc <> 0.
        MESSAGE e001(00) WITH 'Error while opening file'.
      ENDIF.
      READ TABLE l_i_files INDEX 1 INTO l_wa_files.
      IF sy-subrc = 0.
        p_file = l_wa_files-filename.
      ELSE.
        MESSAGE e001(00) WITH 'Error while opening file'.
      ENDIF.

  • Read multiple worksheets

    Hi,
      How to read a excel workbook with multiple sheets into different itabs.
    using ole2 objects but it is always accessing the 1 active sheet. not moving to the other one.

    Hi,
    Check the following link:
    http://www.sap-img.com/abap/uploading-multiple-multitab-excel-sheets-or-ranges.htm
    Regards,
    Bhaskar

  • Uploading multiple EXCEL Worksheets to SAP

    hello everyone.
    i am new to SAP, and i wanted to create a program that would read multiple excel worksheets and appened the values of the file to an internal table.
    can somebody help me with this?
    here's what i wanted to do exactly:
    excel tab:
    worksheet 1:
    pernr  |  begda | endda |
    worksheet 2:
    pernr  |  begda | endda |  address line 1 | address line 2 | phone number
    worksheet 3:
    pernr  |  begda | endda |  Annual salary |
    i wanted those data to be in the following internal tables:
    for worksheet 1: >>>> i_pa0002.
    for worksheet 2: >>>> i_pa0006.
    for worksheet 3: >>>> i_pa0008.
    thanks a lot for future replies.
    Mark

    hi,
    you can use  fm
    ALSM_EXCEL_TO_INTERNAL_TABLE
    call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      exporting
        filename                      = 'File Path\File name.xlsx'
        i_begin_col                   = 'A'
        i_begin_row                   = 1
        i_end_col                     = 'E'
        i_end_row                     = 3
      tables
        intern                        = itab
    EXCEPTIONS
      INCONSISTENT_PARAMETERS       = 1
      UPLOAD_OLE                    = 2
      OTHERS                        = 3
    if sy-subrc  0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    thanks

  • How to download multiple sheets in one excel workbook

    Hi All,
            I have requirement to download multiple sheets in excel workbook. I had
    successfully downloaded multiple sheets in excel. But it was downloaded only in
    my desktop. My requirement is user selects the path and i have to download the
    data in specified path.
    Could you please help me on this?
    Thanks in Advance,
    Basha Shaik

    >>My requirement is user selects the path and i have to download the
    data in specified path.
    For this..use CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG
      EXPORTING
        WINDOW_TITLE         = TITLE
       DEFAULT_EXTENSION    =
       DEFAULT_FILE_NAME    =
       WITH_ENCODING        =
        FILE_FILTER          = '.|.'
       INITIAL_DIRECTORY    =
       PROMPT_ON_OVERWRITE  = 'X'
      CHANGING
        FILENAME             = W_FNAME
        PATH                 = W_FILEPATH
        FULLPATH             = W_FULLPATH
       USER_ACTION          =
       FILE_ENCODING        =
      EXCEPTIONS
        CNTL_ERROR           = 1
        ERROR_NO_GUI         = 2
        NOT_SUPPORTED_BY_GUI = 3
        others               = 4.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IF NOT W_FULLPATH IS INITIAL.
      FILE_NAME = W_FULLPATH.
    ENDIF.
    regards,
    priya.

  • How to read an excel file which contains multiple tabs using File adapter

    Hi BPEL gurus,
    I have a requirement where i need to read an EXCEL file, which has three tabs inside the file. All the three tabs has data in it. I have seen few examples where file adapter reads an excel file with data present inside a single tab but not with multiple tabs.
    If anyone has worked on this scenario, please provide your suggestions/inputs/links etc.
    Thanks in advance

    hi Sathish,
    this might help
    PI/XI: Reading MS Excel's XLSX and XLSM files with standard PI modules - easily...
    thanks and regards,
    Praveen T

  • Multiple Excel Sheets Compiled to One Workbook

    I have a program that currently creates three separate spreadsheets simultaneously during the experiment.  Is there a way I can create one file with the separate spreadsheets as worksheets in Excel?
    Thanks.
    LabVIEW 2012 - Windows 7
    CLAD

    Look into the built-in example VI 'Write Table To XL.vi'. This VI opens an excel workbook, creates a new sheet and writes a table onto that sheet. You can use the 'Open Sheet' subvi multiple times to create new sheets and write your data into it. If your data already exists in other Excel files, you can simply use the 'Copy' and 'Paste' methods of the _Worksheet object right after you created the new sheet.
    Does this answer your question?
    Malosh

  • How to read multiple tab Excel

    HI All,
    Is it possible to read multiple tab of a Excel using ABAP ?  Can any one provide any solution or link for help me out.
    Thnnks a lot.
    Regards
    Marko

    HI,
    please check this thread. Hope it will solve your problem.
    [url] Upload multiple tab of a excel into Different internal table [url]
    Regards
    Satrajit

  • Excel read multiple cells

    Hi all,
    I want to read multiple cells from excel C1:C2 but I get the variant result:
    Value -> Array(Non Displayable) 
    When I removed string C2 to read cell C1 the result is OK.
    Does anybody know the solution?  
    Thanks in advance. 
    NacNud
    Using LabVIEW 8.5
    Sorry for the duplicate image. Don't know how to remove this.
    Attachments:
    Movie strip path.vi ‏13 KB
    Movie excel edit.vi ‏53 KB
    Movie date.xls ‏16 KB

    Hmmm...
    Solved it myself. The variant is not represented with a probe.
    The solution was to convert the variant data to an 2D array and then probe it.
    See attachement for the solution.
    NaNud
    Message Edited by excel read multiple cells on 05-18-2010 11:44 AM
    Attachments:
    Movie excel edit.vi ‏54 KB

  • Collaborate on Excel workbooks with Sharepoint Foundation

    My company recently implemented SharePoint Foundation 2013 and our shared Excel workbooks are no longer allowing multiple users to collaborate at the same time. We have verified that all the settings and permissions are correct and that checking in and
    checking out is not required. Is this something that is not available with SharePoint Foundation? We are using Office 2013 installed on the clients, not Office online. Thank you.

    Co-authoring of Excel workbooks is only supported when all the editors are using the Excel web application, not the Excel client application.
    From
    Microsoft's overview of co-authoring in SharePoint 2013:
    >"Co-authoring is easy to use from the end user’s point of view. When a user wants to work on a document in Word 2013, PowerPoint 2013, OneNote 2013, Visio 2013 or one of the Office Web Apps, he or she merely opens it from SharePoint 2013 or SharePoint
    Online, as usual. If another user already has the document open, both users can edit the document at the same time.
    One exception to this is that users can co-author in Excel Web App only if everyone uses the Excel Web App to access the workbook. If anyone uses Excel 2013 or Excel 2010 (the client application)
    to access the workbook, co-authoring in Excel Web App will be disabled for that workbook while it is open in the client application."
    >"The Excel 2013 client application does not support co-authoring workbooks in SharePoint 2013 or SharePoint Online. But, the Excel client application uses the Shared Workbook feature to support non-real-time co-authoring workbooks that are stored
    locally or on network (UNC) paths."

  • How can I make Numbers respect the row and column locks in an Excel workbook opened in Numbers???

    I have a Windows server app that generates Excel workbooks to be emailed to political campaign volunteers to be loaded into Numbers on an iPad, edited, then emailed back to be posted to the server database.  There are two problems encountered:
    1.  The Excel workbook has the first row (column headings) and first column (route identifier) of cells locked, so that they will not scroll off the screen, but Numbers doesn't respect the locks, so when the user scrolls horizontally or vertically, the column headings and/or the route identifier scroll off the screen.
    2.  The Excel workbook has pop-up "tool-tip" type comments in certain column headings in order to provide the user with the acceptable entries for those columns, but Numbers does not respect those.  When the user touches any of the commented column heading cells, a context menu appears instead of the comment.
    What must I do in the Excel workbook sheets, or what settings can be made in Numbers to correct the above?

    I imported a Numbers '09 file into Numbers on the iPad.  All comments were removed during import. Frozen header row and column were retained.
    Thank you for your responses I must ask, however, when you refer to "importing" the Excel file, are you referring to a two step process whereby the Excel file is first converted by some other process into Numbers format, then opened in the Numbers application - which is what I have to do in my PC application to generate the Excel file, and reverse that process to convert the Excel back into my database format - or are you simply referring to opening the file in Numbers as "importing" it?  And please excuse any ignorance, as I'm not at all familiar with Apple's terminologies.  In fact, I don't own an iPad myself, but rather I have to depend on one of my clients to do the testing for me.
    I imported an XLSX file into Numbers on the iPad.  The file used "freeze panes" to "freeze" the first column and row. Only warning on import was that it changed fonts. It imported without the first row and column frozen and with no comments. Nothing I can do about the missing comments but it was a simple matter to turn the first column & row into headers and freeze them.
    Unfortunately this would not be an efficient  solution, since the end users are, for the most part, elderly political campaign volunteers who are fairly computer illiterate.  These workbooks are actually canvassing lists - known as walklists.  Their purpose is for the volunteers to interview voters, record the results of the interviews, and post the results to a database, which provides the campaigns with valuable strategizing capabilities.  Also, these workbooks have multiple pages - as many as 10 or more.  and from what I infer from the above, the setting changes would have to be made on each page.
    My whole intent in developing this iPad/Tablet methodology was to significantly reduce volunteer's work - which is a recruitment benefit - and eliminate paper.  While the latter would be accomplished, the former would not, and in fact would tend to increase it.  It's necessary to keep the first row - column headings - and the first column - the route identifier - from scrolling off the page, so that the volunteer won't have to keep scrolling up and down and right and left to know what the data are.
    Conclusion: Comments are not supported on the iPad version of Numbers.  Frozen headers are not imported from Excel but can be recreated easily.
    I was previously directed to the Apple website  http://www.apple.com/ipad/from-the-app-store/apps-by-apple/numbers.html which extols the wonders of the Numbers application.  About halfway down the page there's a section regarding, "Sliders steppers and pop-ups".  The web page states that pop-ups can be set up but, being a marketing site, gives no indication whatsoever as to how it's done.  I was hoping someone could tell my if there's any way to carry them over from an Excel file.

  • Export in multiple excel sheets

    Hi,
    I am using crystal XI and need to export in multiple excel sheets from crystal. How can I do that, please help me.
    Thanks,
    Sagarika.

    One of the 3rd-party Crystal Reports desktop schedulers listed at http://kenhamady.com/bookmarks.html allows you to burst a report so that each group level 1 becomes a separate excel worksheet in a single workbook.  It also allows you to export a report to a worksheet inside an existing workbook.

  • Import Multiple Excel Into Sql Server

    I have 4 Excel spreadsheets all with different formatting and column names that I want to use powershell to import into ONE Sql Server Table that I will want to create with powershell.  I have found several instances of importing one workbook, but I
    haven't found one where you can import multiple workbooks into the same table.  Can someone show sample code for a reference on how to import multiple spreadsheets into the same table with powershell please?  I found this link which looks like a
    GREAT starting point, but unfortunately it is only showing how to do one table, and I am WAY new to powershell so can't tweak it on my own to set it to import multiple
    http://www.sqlserver-dba.com/2013/01/sql-server-export-excel-data-to-sql-server-with-powershell.html

    Hi IndigoMontoya,
    As a workaroud, how about merge mutiple excel files into one file, then import this excel file to sql table?
    To merge excel files, please refer to this script:
    $Files = 'd:\merge1.xlsx','d:\merge2.xlsx'
    #Launch Excel, and make it do as its told (supress confirmations)
    $Excel = New-Object -ComObject Excel.Application
    $Excel.Visible = $True
    $Excel.DisplayAlerts = $False
    #Open up a new workbook
    $Dest = $Excel.Workbooks.Add()
    #Loop through files, opening each, selecting the Used range, and only grabbing the first 6 columns of it. Then find next available row on the destination worksheet and paste the data
    ForEach($File in $Files[0..4]){
    $Source = $Excel.Workbooks.Open($File,$true,$true)
    If(($Dest.ActiveSheet.UsedRange.Count -eq 1) -and ([String]::IsNullOrEmpty($Dest.ActiveSheet.Range("A1").Value2))){ #If there is only 1 used cell and it is blank select A1
    [void]$source.ActiveSheet.Range("A1","F$(($Source.ActiveSheet.UsedRange.Rows|Select -Last 1).Row)").Copy()
    [void]$Dest.Activate()
    [void]$Dest.ActiveSheet.Range("A1").Select()
    }Else{ #If there is data go to the next empty row and select Column A
    [void]$source.ActiveSheet.Range("A1","F$(($Source.ActiveSheet.UsedRange.Rows|Select -Last 1).Row)").Copy()
    [void]$Dest.Activate()
    [void]$Dest.ActiveSheet.Range("A$(($Dest.ActiveSheet.UsedRange.Rows|Select -last 1).row+1)").Select()
    [void]$Dest.ActiveSheet.Paste()
    $Source.Close()
    $Dest.SaveAs("d:\merge3.xlsx",51)
    $Dest.close()
    $Excel.Quit()
    Reference from:
    How to use powershell to copy several excel worksheets and make a new one?
    I hope this helps.

  • Creating multiple Excel worksheet

    Gurus,
    I am downloading data into Excel from my web page by using the following:
    Response.setContentType("application/vnd.ms-excel");
    HtmlWriter out = aResponse.getWriter();
    out.print(
    I am able to view all the data in one Excel worksheet. Does anyone know of a way to create multiple worksheets?
    Thanks in advance for your help.

    Look at POI at http://jakarta.apache.org/poi/ for an open source library to write Excel with Java.
    If you just want to produce a one-off, you can save an Excel workbook as XML and look at that to see how the sheets are produced in XML.
    There are also commercial products like Formula One that provide support for reading and writing directly to/from Excel from Java.

  • Multiple sheet workbook

    how do I eprint a multiple sheet workbook so that the entire workbook prints?

    hi, unfortunately, current ePrint does not support printing multiple worksheets from an Excel file. Only the default worksheet will be printed.
    I am an HP employee, but I am speaking for myself.

Maybe you are looking for